activate.c
ds2.10/lib/lib/events/activate.c · 416 B
From the archive ds2.10.zip
Download the archive « Back to the archive contents
#include <lib.h>
inherit LIB_TURN;
int direct_activate_obj(object target){
return turn::CanTurnOn(this_player());
}
int direct_deactivate_obj(object target){
return turn::CanTurnOff(this_player());
}
int direct_activate_obj_on_obj(object target){
return turn::CanTurnOn(this_player(), target);
}
int direct_deactivate_obj_on_obj(object target){
return turn::CanTurnOff(this_player(), target);
}