Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
- data Action
- type ActionChoice = UnitState -> [Action] -> GameState -> Action
- type Strategy = UnitType -> ActionChoice
- data Team
- data GameType
- data Result
- type TileID = (Int, Int)
- data Tile = Tile {}
- data TileOccupant
- data EnvUnit
- type UnitID = Int
- type TileMap = Map TileID Tile
- type UnitMap = Map UnitID UnitState
- data UnitState = UnitState {}
- data UnitType
- data GameState = GameState {}
- defaultGameState :: GameState
- justElem :: Ord a => Map a b -> a -> b
- occupantAt :: TileID -> GameState -> TileOccupant
- tileEmpty :: TileID -> GameState -> Bool
- unitByID :: UnitID -> GameState -> UnitState
- getUnitState :: GameState -> UnitID -> UnitState
- getUnitPos :: GameState -> UnitID -> (Int, Int)
- getUnitTeam :: GameState -> UnitID -> Team
- getUnitType :: GameState -> UnitID -> UnitType
- getUnitHealth :: GameState -> UnitID -> Int
- type GameTime = Float
Documentation
type Strategy = UnitType -> ActionChoice Source
data TileOccupant Source
occupantAt :: TileID -> GameState -> TileOccupant Source
getUnitState :: GameState -> UnitID -> UnitState Source
getUnitTeam :: GameState -> UnitID -> Team Source
getUnitType :: GameState -> UnitID -> UnitType Source
getUnitHealth :: GameState -> UnitID -> Int Source