LambdaHack-0.8.3.0: A game engine library for tactical squad ASCII roguelike dungeon crawlers

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.State

Description

Client-specific game state components.

Synopsis

Documentation

data StateClient #

Client state, belonging to a single faction.

Constructors

StateClient 

Fields

data BfsAndPath #

Pathfinding distances to all reachable positions of an actor and a shortest paths to some of the positions.

Instances
Show BfsAndPath # 
Instance details

Defined in Game.LambdaHack.Client.State

data TgtAndPath #

Actor's target and a path to it, if any.

Constructors

TgtAndPath 

Fields

Instances
Show TgtAndPath # 
Instance details

Defined in Game.LambdaHack.Client.State

Generic TgtAndPath # 
Instance details

Defined in Game.LambdaHack.Client.State

Associated Types

type Rep TgtAndPath :: Type -> Type #

Binary TgtAndPath # 
Instance details

Defined in Game.LambdaHack.Client.State

type Rep TgtAndPath # 
Instance details

Defined in Game.LambdaHack.Client.State

type Rep TgtAndPath = D1 (MetaData "TgtAndPath" "Game.LambdaHack.Client.State" "LambdaHack-0.8.3.0-1NVXOytHwux3AEZcvJHaGA" False) (C1 (MetaCons "TgtAndPath" PrefixI True) (S1 (MetaSel (Just "tapTgt") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Target) :*: S1 (MetaSel (Just "tapPath") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 AndPath)))

emptyStateClient :: FactionId -> StateClient #

Initial empty game client state.

updateTarget :: ActorId -> (Maybe Target -> Maybe Target) -> StateClient -> StateClient #

Update target parameters within client state.

getTarget :: ActorId -> StateClient -> Maybe Target #

Get target parameters from client state.

updateLeader :: ActorId -> State -> StateClient -> StateClient #

Update picked leader within state. Verify actor's faction.