Panel.hh
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef PANEL_HH_
00018 # define PANEL_HH_
00019
00020 # include "Sprite.hh"
00021 # include "TextSurface.hh"
00022 # include "VirtualSurface.hh"
00023
00024 BEGIN_NS(sdlvisu);
00025
00026 class Game;
00027
00032 class Panel : public VirtualSurface
00033 {
00034 public:
00035 Panel(Game& g);
00036 virtual ~Panel();
00037
00040 void setDefaultPlayerInfo(int team_id, int player_id);
00044 void unsetDefaultPlayerInfo();
00045
00048 void setPlayerInfo(int team_id, int player_id);
00052 void unsetPlayerInfo(int team_id, int player_id);
00053
00055 void setHalf(int cur_half);
00057 void setTurn(int team_id, int cur_turn);
00059 void unsetTurnCursor();
00060
00061 virtual void update();
00062
00063 private:
00064 void updatePlayerInfoDisplay();
00065 void hidePlayerInfo();
00066
00067 Game& g_;
00068
00069 Surface bg_;
00070 Sprite wheel_;
00071
00072
00073 int default_team_id_;
00074 int default_player_id_;
00075 int current_team_id_;
00076 int current_player_id_;
00077 Surface player_picture_;
00078 TextSurface name_;
00079 TextSurface position_;
00080 TextSurface ma_;
00081 TextSurface st_;
00082 TextSurface ag_;
00083 TextSurface av_;
00084 TextSurface period_;
00085 TextSurface skills_[7];
00086
00087 bool time_to_zero_;
00088 Sprite digit_score_[2];
00089 Sprite digit_reroll_[2];
00090 Sprite digit_turn_[2];
00091 Sprite digit_time_[3];
00092
00093 Sprite turn_cursor_;
00094 };
00095
00096 END_NS(sdlvisu);
00097
00098 #endif