Example #1
0
void Application::handleInputKeyPress(const InputKeyPress *input) {
	switch (input->key) {
	case SDLK_q: {
		ActionApplicationQuit action;
		sendGlobalAction(&action);
	}
	break;
	
	case SDLK_F11:
		takeScreenShot("screen");
		break;
	}
}
Example #2
0
void ComponentExplodeAfterTimeout::broadcastDeleteActor() {
	ActionDeleteActor m(getActorID());
	sendGlobalAction(&m);
}
Example #3
0
void ComponentDestroySelfOnCollision::broadcastDeleteSelfActor() {
	ActionDeleteActor m(getActorID());
	sendGlobalAction(&m);
}