Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

/home/rdbrown/doxygen/cse125g1/src/game/client/hud.h

00001 #include "client.h"
00002 #include "menu/menu.h"
00003 #include "net/MMNet.h"
00004 
00005 class Hud {
00006         bool valid;
00007     public:
00008                 Hud(MMNet::Player *player);
00009                 void draw();
00010                 void update(); //updates all the textfields to player's info
00011                 bool isValid();
00012                 bool init(); //recalculates the pixels where the items should go
00013                 void setPositions(); //sets the pixels of the items
00014     private:
00015                 int stuff[8];
00016                 char buffer[1000];
00017                 //Meter * healthMeter;
00018                 JMenu::HMeter * healthMeter;
00019                 JMenu::Textfield * kills;
00020                 JMenu::Textfield * deaths;
00021 
00022                 MMNet::Player *player;
00023                 JMenu::Textfield * status_textfield;
00024                 JMenu::Textfield * health_textfield;
00025                 JMenu::Textfield * player_textfield;
00026                 JMenu::Textfield * team_textfield;
00027                 JMenu::Label * rangeWeapon;
00028                 JMenu::Label * meleeWeapon;
00029 
00030                 //lowest right corner
00031                 int MAX_PANEL_X;
00032                 int MAX_PANEL_Y;
00033                 //upper left corner
00034                 int MIN_PANEL_X;
00035                 int MIN_PANEL_Y;
00036 
00037                 int HEALTH_X;
00038                 int HEALTH_Y;
00039                 int HEALTH_HEIGHT;
00040                 int HEALTH_WIDTH;
00041 
00042                 int TEAM_X;
00043                 int TEAM_Y;
00044                 int TEAM_HEIGHT;
00045                 int TEAM_WIDTH;
00046 
00047                 int STATUS_X;
00048                 int STATUS_Y;
00049                 int STATUS_HEIGHT;
00050                 int STATUS_WIDTH;
00051 
00052                 int KILLS_X;
00053                 int KILLS_Y;
00054                 int KILLS_HEIGHT;
00055                 int KILLS_WIDTH;
00056 
00057                 int WEAPON_X;
00058                 int WEAPON_Y;
00059                 int WEAPON_HEIGHT;
00060                 int WEAPON_WIDTH;
00061 };
00062 
00063 

Generated on Thu Aug 18 16:03:08 2005 for Robin Hood: Thieves & Knights by doxygen1.2.18