LambdaHack-0.4.9.0: A game engine library for roguelike dungeon crawlers

Safe HaskellNone

Game.LambdaHack.Server.EndServer

Description

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

Synopsis

Documentation

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).