| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #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;
- bool _wireframe;
- };
- #endif
|