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