LambdaHack-0.4.101.0: A game engine library for 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 AI player.

pongAI :: MonadClient m => m RequestAI Source

Client signals to the server that it's still online.

Internal operations

refreshTarget Source

Arguments

:: MonadClient m 
=> (ActorId, Actor)

the actor to refresh

-> m (Maybe (Target, PathEtc)) 

Verify and possibly change the target of an actor. This function both updates the target in the client state and returns the new target explicitly.

pickAction :: MonadClient m => (ActorId, Actor) -> m RequestAnyAbility Source

Pick an action the actor will perfrom this turn.