LambdaHack-0.11.0.1: A game engine library for tactical squad ASCII roguelike dungeon crawlers
Safe HaskellSafe-Inferred
LanguageHaskell2010

Game.LambdaHack.Server.State

Description

Server and client game state types and operations.

Synopsis

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.

Constructors

StateServer 

Fields

Instances

Instances details
Show StateServer Source # 
Instance details

Defined in Game.LambdaHack.Server.State

Binary StateServer Source # 
Instance details

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.

type ActorPushedBy = EnumMap ActorId ActorId Source #

Record who last propelled a given actor with trajectory.

emptyStateServer :: StateServer Source #

Initial, empty game server state.

type GearOfTeams = EnumMap TeamContinuity (IntMap [(GroupName ItemKind, ContentId ItemKind)]) Source #

Per-team, per-actor metagame persistent favourite organs and gear.