Safe Haskell | None |
---|---|
Language | Haskell2010 |
Server and client game state types and operations.
Synopsis
- data StateServer = StateServer {
- sactorTime :: ActorTime
- sactorStasis :: EnumSet ActorId
- sdiscoKindRev :: DiscoveryKindRev
- suniqueSet :: UniqueSet
- sitemSeedD :: ItemSeedDict
- sitemRev :: ItemRev
- sflavour :: FlavourMap
- sacounter :: ActorId
- sicounter :: ItemId
- snumSpawned :: EnumMap LevelId Int
- sundo :: [CmdAtomic]
- sclientStates :: EnumMap FactionId State
- sperFid :: PerFid
- sperValidFid :: PerValidFid
- sperCacheFid :: PerCacheFid
- sfovLucidLid :: FovLucidLid
- sfovClearLid :: FovClearLid
- sfovLitLid :: FovLitLid
- sarenas :: [LevelId]
- svalidArenas :: Bool
- srandom :: StdGen
- srngs :: RNGs
- sbreakLoop :: Bool
- sbreakASAP :: Bool
- swriteSave :: Bool
- soptions :: ServerOptions
- soptionsNxt :: ServerOptions
- type ActorTime = EnumMap FactionId (EnumMap LevelId (EnumMap ActorId Time))
- emptyStateServer :: StateServer
- updateActorTime :: FactionId -> LevelId -> ActorId -> Time -> ActorTime -> ActorTime
- ageActor :: FactionId -> LevelId -> ActorId -> Delta Time -> ActorTime -> ActorTime
Documentation
data StateServer Source #
State with server-specific data, including a copy of each client's basic game state, but not the server's basic state.
StateServer | |
|
Instances
Show StateServer Source # | |
Defined in Game.LambdaHack.Server.State showsPrec :: Int -> StateServer -> ShowS # show :: StateServer -> String # showList :: [StateServer] -> ShowS # | |
Binary StateServer Source # | |
Defined in Game.LambdaHack.Server.State |
type ActorTime = EnumMap FactionId (EnumMap LevelId (EnumMap ActorId Time)) Source #
Position in time for each actor, grouped by level and by faction.
emptyStateServer :: StateServer Source #
Initial, empty game server state.