ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/cf.schmorp.de/server/include/eventinc.h
Revision: 1.7
Committed: Sun Aug 27 13:02:03 2006 UTC (20 years, 1 month ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.6: +22 -20 lines
Log Message:
some more fixes and refinements

File Contents

# User Rev Content
1 root 1.1 // define event types by enumerating them here
2    
3 root 1.2 // global events
4 root 1.3 def (GLOBAL, CLOCK) // NYI
5 root 1.2
6     // per-player
7 root 1.7 def (PLAYER, REATTACH) // (pl -- )
8     def (PLAYER, BIRTH) // (pl -- ) called as very first thing after creating a player
9     def (PLAYER, QUIT) // (pl -- ) called after logout
10 root 1.3 def (PLAYER, LOAD)
11     def (PLAYER, SAVE)
12     def (PLAYER, LOGIN)
13     def (PLAYER, LOGOUT)
14     def (PLAYER, DEATH)
15 root 1.7 def (PLAYER, ENTER) // (pl, map -- )
16     def (PLAYER, LEAVE) // (pl, map -- )
17 root 1.3 def (PLAYER, USE_SKILL)
18 root 1.7 def (PLAYER, EXTCMD) // (pl, string -- )
19 root 1.3 def (PLAYER, PRAY_ALTAR)
20 root 1.4 def (PLAYER, TELL) //NYI
21     def (PLAYER, SAY) //NYI
22     def (PLAYER, SHOUT) //NYI
23 root 1.2
24 root 1.7 // plug-in attachment
25     def (OBJECT, INSTANTIATE) // (object -- ) an archetype was instantiated into an object
26     def (OBJECT, REATTACH) // (object -- ) an object was loaded _and_ had extensions
27     def (OBJECT, CLONE) // (object destination -- ) an object with _attached extension_ is cloned
28    
29 root 1.2 // per-object events
30 root 1.5 def (OBJECT, TICK)
31 root 1.3 def (OBJECT, KILL)
32     def (OBJECT, APPLY)
33     def (OBJECT, USE_SKILL)
34     def (OBJECT, CAST_SPELL)
35 root 1.4 def (OBJECT, DROP_ON) // NYI
36     def (OBJECT, LISTEN) //NYI
37 root 1.7 def (OBJECT, MOVE) // (object, enemy -- ) called when a monster tries to move
38     def (OBJECT, ATTACK) // (object, hitter -- damage) object gets attacked
39     def (OBJECT, ATTACKS) // (weapon, hitter, victim -- ) object gets used as weapon
40 root 1.2
41     // per-map
42 root 1.7 def (MAP, REATTACH) // (map -- )
43     def (MAP, LOAD) // (map -- ) Original map has been loaded
44     def (MAP, SWAPIN) // (map -- ) Temporary map has been swapped in
45     def (MAP, SWAPOUT) // (map -- ) Map has been swapped out
46     def (MAP, RESET) // (map -- ) A map is resetting
47     def (MAP, CLEAN) // (map -- ) Temporary map will be deleted
48     def (MAP, ENTER) // (map, pl -- )
49     def (MAP, LEAVE) // (map, pl -- )
50 root 1.2