antisplice-0.17.1.0: An engine for text-based dungeons.

Safe HaskellNone
LanguageHaskell2010

Game.Antisplice.Events

Description

Provides setters for the various events

Synopsis

Documentation

class OnEnter e where Source

Triggered when the user enters a room or object.

Methods

onEnter :: Handler -> e () Source

Instances

Monad m => OnEnter (ObjectT m) 
Monad m => OnEnter (RoomT m) 

class OnFirstEnter e where Source

Triggered when the user enters a room the first time.

Methods

onFirstEnter :: Handler -> e () Source

Instances

class OnLook e where Source

Triggered when the user looks around or looks at a specific object.

Methods

onLook :: Handler -> e () Source

Instances

Monad m => OnLook (ObjectT m) 
Monad m => OnLook (RoomT m) 

class OnAnnounce e where Source

Triggered when (a) the room is announced (e.g. when entered), (b) the user looks around in the room containing the object.

Methods

onAnnounce :: Handler -> e () Source

Instances

class OnSight e where Source

Triggered when the user sees the object (e.g. he enters its room).

Methods

onSight :: Handler -> e () Source

Instances

Monad m => OnSight (ObjectT m) 

class OnFirstSight e where Source

Triggered when the user sees the object the first time.

Methods

onFirstSight :: Handler -> e () Source

Instances

class OnAcquire e where Source

Triggered when the user acquires the object.

Methods

onAcquire :: Handler -> e () Source

Instances

class OnFirstAcquire e where Source

Triggered when the user acquires the object the first time.

Methods

onFirstAcquire :: Handler -> e () Source

Instances

class OnInspection e where Source

Triggered when the user inspects the object (looks at/into it, listens to it, ...)

Methods

onInspection :: Handler -> e () Source

Instances

class OnFirstInspection e where Source

Triggered when the user inspects the object the first time.

Methods

onFirstInspection :: Handler -> e () Source

Instances

class OnLookInto e where Source

Triggered when the user looks into a specific object.

Methods

onLookInto :: Handler -> e () Source

Instances

class OnRead e where Source

Triggered when the user reads the object.

Methods

onRead :: Handler -> e () Source

Instances

Monad m => OnRead (ObjectT m) 

class OnRoomEnter e where Source

Triggered when the object (e.g. a mob with a route) enters the room of the user.

Methods

onRoomEnter :: Handler -> e () Source

Instances

class OnRoomLeave e where Source

Triggered when the object (e.g. a mob with a route) leaves the room of the user.

Methods

onRoomLeave :: Handler -> e () Source

Instances

class OnTakeDamage e where Source

Triggered when the object takes damage.

Methods

onTakeDamage :: Handler -> e () Source

Instances

class OnDie e where Source

Triggered when the object dies.

Methods

onDie :: Handler -> e () Source

Instances

Monad m => OnDie (ObjectT m) 

class OnEat e where Source

Triggered when the object is eaten

Methods

onEat :: Handler -> e () Source

Instances

Monad m => OnEat (ObjectT m) 

class OnDrink e where Source

Triggered when the object is drunk.

Methods

onDrink :: Handler -> e () Source

Instances

Monad m => OnDrink (ObjectT m) 

class OnUse e where Source

Triggered when the object is used

Methods

onUse :: Handler -> e () Source

Instances

Monad m => OnUse (ObjectT m)