LambdaHack-0.9.5.0: A game engine library for tactical squad ASCII roguelike dungeon crawlers
Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Common.State

Description

The common server and client basic game state type and its operations.

Synopsis

Basic game state, local or global

data State Source #

View on the basic game state. The remembered fields, in client copies of the state, carry only a subset of the full information that the server keeps. Clients never directly change their State, but apply atomic actions sent by the server to do so (and/or the server applies the actions to each client state in turn).

Instances

Instances details
Eq State Source # 
Instance details

Defined in Game.LambdaHack.Common.State

Methods

(==) :: State -> State -> Bool Source #

(/=) :: State -> State -> Bool Source #

Show State Source # 
Instance details

Defined in Game.LambdaHack.Common.State

Binary State Source # 
Instance details

Defined in Game.LambdaHack.Common.State

State components

State construction

defStateGlobal :: Dungeon -> AbsDepth -> FactionDict -> COps -> ScoreDict -> ContentId ModeKind -> DiscoveryKind -> State Source #

Initial complete global game state.

emptyState :: State Source #

Initial empty state.