Safe Haskell | None |
---|---|
Language | Haskell2010 |
Ways for the client to use AI to produce server requests, based on the client's view of the game state.
- queryAI :: MonadClient m => ActorId -> m RequestAI
- pongAI :: MonadClient m => m RequestAI
- refreshTarget :: MonadClient m => (ActorId, Actor) -> m (Maybe (Target, PathEtc))
- pickAction :: MonadClient m => (ActorId, Actor) -> m RequestAnyAbility
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
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.