示例#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;
	}
}
示例#2
0
void ComponentExplodeAfterTimeout::broadcastDeleteActor() {
	ActionDeleteActor m(getActorID());
	sendGlobalAction(&m);
}
示例#3
0
void ComponentDestroySelfOnCollision::broadcastDeleteSelfActor() {
	ActionDeleteActor m(getActorID());
	sendGlobalAction(&m);
}