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

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.AI

Contents

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 => Maybe (ActorId, RequestAnyAbility) -> ActorId -> m (ActorId, RequestAnyAbility, Maybe Point) 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.