Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

game.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           game.h  -  description
00003                              -------------------
00004     begin                : Thu Jul 19 2001
00005     copyright            : (C) 2001 by T Kontkanen
00006     email                : tkontkanen@mail.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 #ifndef GAME_H
00018 #define GAME_H
00019 
00020 
00021 #include "SDL/SDL.h"
00022 #include <tgl.h>
00023 
00024 // own stuff
00025 #include "allincludes.h"
00026 #include "gamedefs.h"
00027 
00028 #include "input.h"
00029 #include "vector.h"
00030 #include "color.h"
00031 
00032 class Player;
00033 class Unit;
00034 class Renderer;
00035 class Ground;
00036 class BFont;
00037 class GUIButton;
00038 class GameGUI;
00039 
00040 class Game
00041 {
00042 public:
00043     Game();
00044     ~Game();
00046     int initGame();
00048     int mainLoop();
00050     void render();
00051     
00053     int screenW();
00055     int screenH();
00056     
00057     Ground *ground;
00058     Renderer *renderer;
00059     Player *players[MAX_PLAYERS];
00060     GameGUI *gui;
00061     
00062     Texture *minimap;
00063     BFont *defaultFont;
00064     BFont *tooltipFont;
00065     BFont *buttonFont;
00066     
00067 private:
00068     int init();
00069     int unInit();
00070 
00071     Input input;
00072 //  Vector sel_p1, sel_p2;
00073 
00074 //  GUIButton *movebutt, *testbutt;
00075 
00076     friend Ground;
00077     friend Renderer;
00078     friend Player;
00079     friend BFont;
00080     friend GUIButton;
00081     friend GameGUI;
00082     
00083     float fps,framecounter, fpstime, camerasmooth;
00084 };
00085 
00086 
00087 #endif
00088 

Generated at Fri Oct 5 20:23:52 2001 for Executor by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001