예제 #1
0
void Person::DeclareEvents(Environment &env) {
	env.DeclareEvent("Person::Entering");
	env.DeclareEvent("Person::Entered");
	env.DeclareEvent("Person::Exiting");
	env.DeclareEvent("Person::Exited");
	env.DeclareEvent("Person::Canceled");
}
예제 #2
0
void Elevator::DeclareEvents(Environment &env) {
	env.DeclareEvent("Elevator::Up");
	env.DeclareEvent("Elevator::Down");
	env.DeclareEvent("Elevator::Moving");
	env.DeclareEvent("Elevator::Stop");
	env.DeclareEvent("Elevator::Stopped");
	env.DeclareEvent("Elevator::Open");
	env.DeclareEvent("Elevator::Opening");
	env.DeclareEvent("Elevator::Opened");
	env.DeclareEvent("Elevator::Close");
	env.DeclareEvent("Elevator::Closing");
	env.DeclareEvent("Elevator::Closed");
	env.DeclareEvent("Elevator::Beep");
	env.DeclareEvent("Elevator::Beeping");
	env.DeclareEvent("Elevator::StopBeep");
	env.DeclareEvent("Elevator::Beeped");
	env.DeclareEvent("Elevator::Malfunction", true);
	env.DeclareEvent("Elevator::Fixed", true);
}