Copyright | (c) Henry J. Wylde, 2015 |
---|---|
License | BSD3 |
Maintainer | public@hjwylde.com |
Safe Haskell | None |
Language | Haskell2010 |
Game and stage data structures.
- data Game = Game {}
- stage :: Lens' Game Stage
- players :: Lens' Game [Player]
- events :: Lens' Game [Event]
- passes :: Lens' Game [Text]
- heal :: Lens' Game Bool
- healUsed :: Lens' Game Bool
- poison :: Lens' Game (Maybe Text)
- poisonUsed :: Lens' Game Bool
- see :: Lens' Game (Maybe Text)
- votes :: Lens' Game (Map Text Text)
- newGame :: [Player] -> Game
- killPlayer :: Game -> Player -> Game
- isGameOver :: Game -> Bool
- isSeersTurn :: Game -> Bool
- isSunrise :: Game -> Bool
- isSunset :: Game -> Bool
- isVillagesTurn :: Game -> Bool
- isWerewolvesTurn :: Game -> Bool
- isWitchsTurn :: Game -> Bool
- getPassers :: Game -> [Player]
- getPlayerVote :: Text -> Game -> Maybe Text
- getPendingVoters :: Game -> [Player]
- getVoteResult :: Game -> [Player]
- data Stage
- stageCycle :: [Stage]
- stageAvailable :: Game -> Stage -> Bool
- data Event
- getDevourEvent :: Game -> Maybe Event
Game
Manipulations
killPlayer :: Game -> Player -> Game Source
Queries
isGameOver :: Game -> Bool Source
isSeersTurn :: Game -> Bool Source
isVillagesTurn :: Game -> Bool Source
isWerewolvesTurn :: Game -> Bool Source
isWitchsTurn :: Game -> Bool Source
getPassers :: Game -> [Player] Source
getPendingVoters :: Game -> [Player] Source
getVoteResult :: Game -> [Player] Source
Stage
stageCycle :: [Stage] Source
stageAvailable :: Game -> Stage -> Bool Source
Event
Queries
getDevourEvent :: Game -> Maybe Event Source