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