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

Safe HaskellNone

Game.Antisplice.Events

Description

Provides setters for the various events

Synopsis

Documentation

class OnEnter e whereSource

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 whereSource

Triggered when the user enters a room the first time.

Methods

onFirstEnter :: Handler -> e ()Source

Instances

class OnLook e whereSource

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 whereSource

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 whereSource

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 whereSource

Triggered when the user sees the object the first time.

Methods

onFirstSight :: Handler -> e ()Source

Instances

class OnAcquire e whereSource

Triggered when the user acquires the object.

Methods

onAcquire :: Handler -> e ()Source

Instances

class OnFirstAcquire e whereSource

Triggered when the user acquires the object the first time.

Methods

onFirstAcquire :: Handler -> e ()Source

Instances

class OnInspection e whereSource

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

Methods

onInspection :: Handler -> e ()Source

Instances

class OnFirstInspection e whereSource

Triggered when the user inspects the object the first time.

Instances

class OnLookInto e whereSource

Triggered when the user looks into a specific object.

Methods

onLookInto :: Handler -> e ()Source

Instances

class OnRead e whereSource

Triggered when the user reads the object.

Methods

onRead :: Handler -> e ()Source

Instances

Monad m => OnRead (ObjectT m) 

class OnRoomEnter e whereSource

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 whereSource

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 whereSource

Triggered when the object takes damage.

Methods

onTakeDamage :: Handler -> e ()Source

Instances

class OnDie e whereSource

Triggered when the object dies.

Methods

onDie :: Handler -> e ()Source

Instances

Monad m => OnDie (ObjectT m) 

class OnEat e whereSource

Triggered when the object is eaten

Methods

onEat :: Handler -> e ()Source

Instances

Monad m => OnEat (ObjectT m) 

class OnDrink e whereSource

Triggered when the object is drunk.

Methods

onDrink :: Handler -> e ()Source

Instances

Monad m => OnDrink (ObjectT m) 

class OnUse e whereSource

Triggered when the object is used

Methods

onUse :: Handler -> e ()Source

Instances

Monad m => OnUse (ObjectT m)