1 module switchTrap is "switch" "Trap";
10 // setup actor properties
11 public void initialize (Actor me) {
15 void doThink (Actor me) {
16 int d = me.switchGetD();
18 int a = me.switchGetA();
19 int b = me.switchGetB();
20 if (mapGetTypeTile(a, b) != TILE_DOORC) {
33 public void think (Actor me) {
39 me.atm = 0; // just in case
42 auto toucher = me.switchWhoTouched();
43 if (toucher) switchShutTrap(me);