| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef TEMPLATEGAME_H_
- #define TEMPLATEGAME_H_
- #include "gameplay.h"
- using namespace gameplay;
- /**
- * Main game class.
- */
- class TemplateGame: public Game
- {
- public:
- /**
- * Constructor.
- */
- TemplateGame();
- /**
- * @see Game::keyEvent
- */
- void keyEvent(Keyboard::KeyEvent evt, int key);
-
- /**
- * @see Game::touchEvent
- */
- void touchEvent(Touch::TouchEvent evt, int x, int y, unsigned int contactIndex);
- protected:
- /**
- * @see Game::initialize
- */
- void initialize();
- /**
- * @see Game::finalize
- */
- void finalize();
- /**
- * @see Game::update
- */
- void update(float elapsedTime);
- /**
- * @see Game::render
- */
- void render(float elapsedTime);
- private:
- /**
- * Draws the scene each frame.
- */
- bool drawScene(Node* node);
- Scene* _scene;
- };
- #endif
|