Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
- queryAI :: MonadClient m => ActorId -> m RequestAI
- pickActorAndAction :: MonadClient m => [(ActorId, Actor)] -> [(ActorId, Actor)] -> Maybe ActorId -> ActorId -> m (ActorId, RequestTimed, Maybe (Point, Time))
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.