00001 /*************************************************************************** 00002 gamegui.h - description 00003 ------------------- 00004 begin : Sun Sep 9 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 00018 #ifndef GAMEGUI_H 00019 #define GAMEGUI_H 00020 00021 00022 00023 #include "game.h" 00024 #include "font.h" 00025 00026 class Game; 00027 00032 class GameGUI { 00033 public: 00035 GameGUI( Game *parent ); 00036 ~GameGUI(); 00037 00039 void render(); 00041 void refreshGUI(); 00043 void updateFrame(); 00044 00045 private: 00046 void renderHUD(); 00047 void renderButtons(); 00048 void initButtons(); 00049 00050 Game *game; 00051 Renderer *renderer; 00052 Player **players; 00053 Input *input; //shortcut to game->input 00054 00055 //button stuff 00056 GUIButton *buttons[MAX_GUIBUTTONS]; 00057 int buttcount; //count of buttons created 00058 Vector buttonbase; //base position 00059 Color buttonpanelcol; 00060 00061 // selection 00062 Vector select_p1, select_p2; 00063 00064 //camera stuff 00065 float cameraspeed; // multiplier for camera speed, default 1.0 00066 tgl_object *marker; 00067 }; 00068 00069 #endif