1 | // define event types by enumerating them here |
|
|
2 | |
|
|
3 | // global events |
|
|
4 | def(GLOBAL, CLOCK) |
1 | def (GLOBAL, CLOCK) // ( ) |
5 | |
2 | def (PLAYER, REATTACH) // (player) |
6 | // per-player |
3 | def (PLAYER, BIRTH) // (player) |
7 | def(PLAYER, BIRTH) // called as very first thing after creating a player |
4 | def (PLAYER, QUIT) // (player) |
8 | def(PLAYER, QUIT) // called after logout |
5 | def (PLAYER, LOAD) // (player) |
9 | def(PLAYER, LOAD) |
6 | def (PLAYER, SAVE) // (player) |
10 | def(PLAYER, SAVE) |
7 | def (PLAYER, LOGIN) // (player) |
11 | def(PLAYER, LOGIN) |
8 | def (PLAYER, LOGOUT) // (player) |
12 | def(PLAYER, LOGOUT) |
9 | def (PLAYER, DEATH) // (player) |
13 | def(PLAYER, DEATH) |
10 | def (PLAYER, MAP_CHANGE) // (player oldmap newmap) |
14 | def(PLAYER, ENTER) |
11 | def (PLAYER, EXTCMD) // (player string) |
15 | def(PLAYER, LEAVE) |
12 | def (PLAYER, PRAY_ALTAR) // (player altar skill -- ) |
16 | |
13 | def (PLAYER, TELL) // (player -- ) |
17 | // per-object events |
14 | def (PLAYER, SAY) // (player --) |
18 | def(OBJECT, APPLY) |
15 | def (PLAYER, SHOUT) // (player --) |
19 | |
16 | def (OBJECT, INSTANTIATE) // (object init-args...) |
20 | // per-map |
17 | def (OBJECT, REATTACH) // (object) |
21 | def(MAP, LOAD) // Original map has been loaded |
18 | def (OBJECT, CLONE) // (object destination) |
22 | def(MAP, SWAPIN) // Temporary map has been swapped in |
19 | def (OBJECT, TICK) // (object) |
23 | def(MAP, SWAPOUT) // Map has been swapped out |
20 | def (OBJECT, KILL) // (object hitter -- ) |
24 | def(MAP, RESET) // A map is resetting |
21 | def (OBJECT, APPLY) // (object who -- applytype) |
25 | def(MAP, CLEAN) // Temporary map will be deleted |
22 | def (OBJECT, USE_SKILL) // (skill who part direction strignarg -- ) |
26 | |
23 | def (OBJECT, CAST_SPELL) // (spell casting_object owner direction stringarg -- ) |
|
|
24 | def (OBJECT, DROP) // (object who -- ) |
|
|
25 | def (OBJECT, DROP_ON) // (floor object who -- ) |
|
|
26 | def (OBJECT, LISTEN) // |
|
|
27 | def (OBJECT, MOVE) // (monster enemy -- ) |
|
|
28 | def (OBJECT, ATTACK) // (object hitter -- damage) |
|
|
29 | def (OBJECT, ATTACKS) // (weapon hitter victim) |
|
|
30 | def (OBJECT, INSCRIBE_NOTE) // (book pl message skill -- ) |
|
|
31 | def (OBJECT, TRIGGER) // (object who -- ) |
|
|
32 | def (OBJECT, MOVE_TRIGGER) // (object victim originator -- ) |
|
|
33 | def (OBJECT, CLOSE) // (container -- ) |
|
|
34 | def (MAP, REATTACH) // (map) |
|
|
35 | def (MAP, INSTANTIATE) // (map) |
|
|
36 | def (MAP, SWAPIN) // (map) |
|
|
37 | def (MAP, SWAPOUT) // (map) |
|
|
38 | def (MAP, RESET) // (map) |
|
|
39 | def (MAP, CLEAN) // (map) |
|
|
40 | def (MAP, ENTER) // (map player) |
|
|
41 | def (MAP, LEAVE) // (map player) |
|
|
42 | def (MAP, UPGRADE) // (map) |