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

Game.LambdaHack.Client.AI

Description

Ways for the client to use AI to produce server requests, based on the client's view of the game state.

Synopsis

Documentation

queryAI :: MonadClient m => ActorId -> m RequestAI Source #

Handle the move of an actor under AI control (regardless if the whole faction is under human or computer control).

Internal operations

pickActorAndAction :: MonadClient m => [(ActorId, Actor)] -> [(ActorId, Actor)] -> Maybe ActorId -> ActorId -> m (ActorId, RequestTimed, Maybe (Point, Time)) Source #

Pick an actor to move and an action for him to perform, given an optional previous candidate actor and action and the server-proposed actor.