LambdaHack-0.2.10.6: A roguelike game engine in early and active development

Safe HaskellNone

Game.LambdaHack.Client.RunAction

Description

Running and disturbance.

Synopsis

Documentation

continueRunDir :: MonadClientAbort m => ActorId -> (Vector, Int) -> m (Vector, Int)Source

This function implements the actual logic of running. It checks if we have to stop running because something interesting cropped up, it ajusts the direction given by the vector if we reached a corridor's corner (we never change direction except in corridors) and it increments the counter of traversed tiles.