Copyright | (c) Alexander Vieth 2015 |
---|---|
License | BSD3 |
Maintainer | aovieth@gmail.com |
Stability | experimental |
Portability | non-portable (GHC only) |
Safe Haskell | Safe |
Language | Haskell2010 |
- data OrderObject phase order where
- MoveObject :: ProvinceTarget -> OrderObject Typical Move
- SupportObject :: Subject -> ProvinceTarget -> OrderObject Typical Support
- ConvoyObject :: Subject -> ProvinceTarget -> OrderObject Typical Convoy
- WithdrawObject :: ProvinceTarget -> OrderObject Retreat Withdraw
- SurrenderObject :: OrderObject Retreat Surrender
- DisbandObject :: OrderObject Adjust Disband
- BuildObject :: OrderObject Adjust Build
- ContinueObject :: OrderObject Adjust Continue
- orderObjectEqual :: OrderObject phase order -> OrderObject phase' order' -> Bool
- data SomeOrderObject phase where
- SomeOrderObject :: OrderObject phase order -> SomeOrderObject phase
- moveTarget :: OrderObject Typical Move -> ProvinceTarget
- supportedSubject :: OrderObject Typical Support -> Subject
- supportTarget :: OrderObject Typical Support -> ProvinceTarget
- convoySubject :: OrderObject Typical Convoy -> Subject
- convoyTarget :: OrderObject Typical Convoy -> ProvinceTarget
- withdrawTarget :: OrderObject Retreat Withdraw -> ProvinceTarget
Documentation
data OrderObject phase order where Source #
The objective of an order. Together with an Subject and a GreatPower, this makes a complete order.
Eq (OrderObject phase order) Source # | |
Eq (SomeResolved OrderObject phase) # | |
Ord (OrderObject phase order) Source # | |
Show (OrderObject phase order) Source # | |
Show (SomeResolved OrderObject phase) # | |
orderObjectEqual :: OrderObject phase order -> OrderObject phase' order' -> Bool Source #
data SomeOrderObject phase where Source #
SomeOrderObject :: OrderObject phase order -> SomeOrderObject phase |
Show (SomeOrderObject phase) Source # | |