Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PlayingField
- {
- public:
- PlayingField(Ogre::SceneManager* mSceneMgr, Ogre::Vector3 startPos,
- int width, int height);
- ~PlayingField(void);
- void start();
- void stop();
- void pause();
- namespace Controls
- {
- //Move block 1 unit left or right
- void right();
- void left();
- //Rotate block -90 degrees
- void rotate();
- //Make block fall faster (down key, usually)
- void fallFaster(bool makeBlocksFallFaster);
- //Make the block fall down one unit
- void tick();
- }
- namespace Options
- {
- double getScore();
- }
- private:
- //Update graphical representation
- void update();
- //Parent node of frame-, and game blocks
- Ogre::SceneNode* fieldNode;
- //Map of game blocks 0 = air, 1 = I, 2 = J, 3 = L, 4 = Cube, 5 = S, 6 = T, 7 = Z
- int** blockMap;
- //Player score
- double score;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement