Advertisement
Guest User

Game.h

a guest
Jun 21st, 2012
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.05 KB | None | 0 0
  1. /******************************************************************************************
  2.  *  Chili DirectX Framework Version 11.12.17                                              *
  3.  *  Game.h                                                                                *
  4.  *  Copyright 2011 PlanetChili.net                                                        *
  5.  *                                                                                        *
  6.  *  This file is part of The Chili DirectX Framework.                                     *
  7.  *                                                                                        *
  8.  *  The Chili DirectX Framework is free software: you can redistribute it and/or modify   *
  9.  *  it under the terms of the GNU General Public License as published by                  *
  10.  *  the Free Software Foundation, either version 3 of the License, or                     *
  11.  *  (at your option) any later version.                                                   *
  12.  *                                                                                        *
  13.  *  The Chili DirectX Framework is distributed in the hope that it will be useful,        *
  14.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of                        *
  15.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                         *
  16.  *  GNU General Public License for more details.                                          *
  17.  *                                                                                        *
  18.  *  You should have received a copy of the GNU General Public License                     *
  19.  *  along with The Chili DirectX Framework.  If not, see <http://www.gnu.org/licenses/>.  *
  20.  ******************************************************************************************/
  21. #pragma once
  22.  
  23. #include "D3DGraphics.h"
  24. #include "Keyboard.h"
  25.  
  26. class Game
  27. {
  28. public:
  29.     Game( HWND hWnd,const KeyboardServer& kServer );
  30.     void Go();
  31. private:
  32.     void ComposeFrame();
  33.     /********************************/
  34.     /*  User Functions              */
  35.     void DrawFace( int x,int y );
  36.     void DrawPoo( int x,int y );
  37.     void DrawGameOver( int x,int y );
  38.  
  39.     // TODO: User functions go here
  40.  
  41.     /********************************/
  42. private:
  43.     D3DGraphics gfx;
  44.     KeyboardClient kbd;
  45.     /********************************/
  46.     /*  User Variables              */
  47.  
  48.     int faceX;
  49.     int faceY;
  50.  
  51.     int poo1X;
  52.     int poo1Y;
  53.     bool poo1IsEaten;
  54.  
  55.     int poo2X;
  56.     int poo2Y;
  57.     bool poo2IsEaten;
  58.  
  59.     int poo3X;
  60.     int poo3Y;
  61.     bool poo3IsEaten;
  62.  
  63.     // TODO: User variables go here
  64.  
  65.     /********************************/
  66. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement