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

Safe HaskellNone

Game.LambdaHack.Server.CommonServer

Description

Server operations common to many modules.

Synopsis

Documentation

resetFidPerception :: MonadServer m => PersLit -> FactionId -> LevelId -> m PerceptionSource

Update the cached perception for the selected level, for a faction. The assumption is the level, and only the level, has changed since the previous perception calculation.

projectFailSource

Arguments

:: (MonadAtomic m, MonadServer m) 
=> ActorId

actor projecting the item (is on current lvl)

-> Point

target position of the projectile

-> Int

digital line parameter

-> ItemId

the item to be projected

-> CStore

whether the items comes from floor or inventory

-> Bool

whether the item is a shrapnel

-> m (Maybe ReqFailure)