LambdaHack- A game engine library for roguelike dungeon crawlers

Safe HaskellNone



The main loop of the server, processing human and computer player moves turn by turn.



endOrLoop :: (MonadAtomic m, MonadServer m) => m () -> m () -> m () -> m () -> m ()Source

Continue or exit or restart the game.

dropEqpItems :: (MonadAtomic m, MonadServer m) => ActorId -> Actor -> Bool -> m ()Source

Drop all actor's items. If the actor hits another actor and this collision results in all item being dropped, all items are destroyed. If the actor does not hit, but dies, only fragile items are destroyed and only if the actor was a projectile (and so died by dropping to the ground due to exceeded range or bumping off an obstacle).