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

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.AI.PickTargetM

Contents

Description

Let AI pick the best target for an actor.

Synopsis

Documentation

refreshTarget :: MonadClient m => (ActorId, Actor) -> m (Maybe TgtAndPath) Source #

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.

Internal operations