LambdaHack-0.6.2.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 actor under AI control (of UI or AI player).

Internal operations

pickAction :: MonadClient m => ActorId -> Bool -> m RequestAnyAbility Source #

Pick an action the actor will perform this turn.

condInMeleeM :: MonadClient m => Actor -> m Bool Source #

Check if any non-dying foe (projectile or not) is adjacent to any of our normal actors (whether they can melee or just need to flee, in which case alert is needed so that they are not slowed down by others).