LambdaHack-0.2.14: A roguelike game engine in early development

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Server.State

Description

Server and client game state types and operations.

Synopsis

Documentation

data StateServer Source

Global, server state.

Constructors

StateServer 

Fields

sdisco :: !Discovery

full item discoveries data

sdiscoRev :: !DiscoRev

reverse disco map, used for item creation

sdiscoAE :: !DiscoAE

full item aspect and effect data

sitemSeedD :: !ItemSeedDict

map from item ids to item seeds

sitemRev :: !ItemRev

reverse id map, used for item creation

sflavour :: !FlavourMap

association of flavour to items

sacounter :: !ActorId

stores next actor index

sicounter :: !ItemId

stores next item index

sprocessed :: !(EnumMap LevelId Time)

actors are processed up to this time

sundo :: ![CmdAtomic]

atomic commands performed to date

sper :: !Pers

perception of all factions

srandom :: !StdGen

current random generator

srngs :: !RNGs

initial random generators

squit :: !Bool

exit the game loop

sbkpSave :: !Bool

make backup savefile now

sstart :: !ClockTime

this session start time

sgstart :: !ClockTime

this game start time

sallTime :: !Time

clips since the start of the session

sheroNames :: !(EnumMap FactionId [(Int, (Text, Text))])

hero names sent by clients

sdebugSer :: !DebugModeSer

current debugging mode

sdebugNxt :: !DebugModeSer

debugging mode for the next game

emptyStateServer :: StateServer Source

Initial, empty game server state.