75 |
if (action == "callback") { |
if (action == "callback") { |
76 |
lua::CallFunc(target.c_str(), Value(onoff)); |
lua::CallFunc(target.c_str(), Value(onoff)); |
77 |
} |
} |
78 |
|
else if (action == "oxydsignal") { |
79 |
|
|
80 |
|
} |
81 |
else if (Object *o = GetNamedObject(target)) { |
else if (Object *o = GetNamedObject(target)) { |
82 |
SendMessage(o, action); |
SendMessage(o, action); |
83 |
} |
} |
2790 |
GridPos p = get_pos(); |
GridPos p = get_pos(); |
2791 |
switch (st) { |
switch (st) { |
2792 |
case PULSING: |
case PULSING: |
2793 |
|
if (state != IDLE) |
2794 |
|
return; // do not set new state |
2795 |
play_sound("impulse"); |
play_sound("impulse"); |
2796 |
break; |
break; |
2797 |
case CLOSING: |
case CLOSING: |
2835 |
else if (st==CLOSING) set_anim("st-stoneimpulse-anim2"); |
else if (st==CLOSING) set_anim("st-stoneimpulse-anim2"); |
2836 |
} |
} |
2837 |
|
|
2838 |
void actor_hit(const StoneContact &sc) {change_state(PULSING);} |
void actor_hit(const StoneContact &sc) { |
2839 |
|
change_state(PULSING); |
2840 |
|
} |
2841 |
|
|
2842 |
bool on_laserhit(Direction) { |
bool on_laserhit(Direction) { |
2843 |
change_state(PULSING); |
change_state(PULSING); |