Safe Haskell | None |
---|
Provides setters for the various events
- class OnEnter e where
- class OnFirstEnter e where
- onFirstEnter :: Handler -> e ()
- class OnLook e where
- class OnAnnounce e where
- onAnnounce :: Handler -> e ()
- class OnSight e where
- class OnFirstSight e where
- onFirstSight :: Handler -> e ()
- class OnAcquire e where
- class OnFirstAcquire e where
- onFirstAcquire :: Handler -> e ()
- class OnInspection e where
- onInspection :: Handler -> e ()
- class OnFirstInspection e where
- onFirstInspection :: Handler -> e ()
- class OnLookInto e where
- onLookInto :: Handler -> e ()
- class OnRead e where
- class OnRoomEnter e where
- onRoomEnter :: Handler -> e ()
- class OnRoomLeave e where
- onRoomLeave :: Handler -> e ()
- class OnTakeDamage e where
- onTakeDamage :: Handler -> e ()
- class OnDie e where
- class OnEat e where
- class OnDrink e where
- class OnUse e where
Documentation
Triggered when the user enters a room or object.
class OnFirstEnter e whereSource
Triggered when the user enters a room the first time.
onFirstEnter :: Handler -> e ()Source
Monad m => OnFirstEnter (RoomT m) |
Triggered when the user looks around or looks at a specific object.
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.
onAnnounce :: Handler -> e ()Source
Monad m => OnAnnounce (ObjectT m) | |
Monad m => OnAnnounce (RoomT m) |
Triggered when the user sees the object (e.g. he enters its room).
class OnFirstSight e whereSource
Triggered when the user sees the object the first time.
onFirstSight :: Handler -> e ()Source
Monad m => OnFirstSight (ObjectT m) |
Triggered when the user acquires the object.
class OnFirstAcquire e whereSource
Triggered when the user acquires the object the first time.
onFirstAcquire :: Handler -> e ()Source
Monad m => OnFirstAcquire (ObjectT m) |
class OnInspection e whereSource
Triggered when the user inspects the object (looks at/into it, listens to it, ...)
onInspection :: Handler -> e ()Source
Monad m => OnInspection (ObjectT m) |
class OnFirstInspection e whereSource
Triggered when the user inspects the object the first time.
onFirstInspection :: Handler -> e ()Source
Monad m => OnFirstInspection (ObjectT m) |
class OnLookInto e whereSource
Triggered when the user looks into a specific object.
onLookInto :: Handler -> e ()Source
Monad m => OnLookInto (ObjectT m) |
Triggered when the user reads the object.
class OnRoomEnter e whereSource
Triggered when the object (e.g. a mob with a route) enters the room of the user.
onRoomEnter :: Handler -> e ()Source
Monad m => OnRoomEnter (ObjectT m) |
class OnRoomLeave e whereSource
Triggered when the object (e.g. a mob with a route) leaves the room of the user.
onRoomLeave :: Handler -> e ()Source
Monad m => OnRoomLeave (ObjectT m) |
class OnTakeDamage e whereSource
Triggered when the object takes damage.
onTakeDamage :: Handler -> e ()Source
Monad m => OnTakeDamage (ObjectT m) |
Triggered when the object dies.
Triggered when the object is eaten
Triggered when the object is drunk.