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

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Server.PeriodicM

Contents

Description

Server operations performed periodically in the game loop and related operations.

Synopsis

Documentation

spawnMonster :: MonadServerAtomic m => m () Source #

Spawn, possibly, a monster according to the level's actor groups. We assume heroes are never spawned.

advanceTime :: MonadServerAtomic m => ActorId -> Int -> m () Source #

Advance the move time for the given actor

swapTime :: MonadServerAtomic m => ActorId -> ActorId -> m () Source #

Swap the relative move times of two actors (e.g., when switching a UI leader).

Internal operations