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 "VirtualSurface.hh"
00021 # include "Sprite.hh"
00022 # include "TextSurface.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
00039 void displayPlayerInfo(int team_id, int player_id);
00040
00042 void hidePlayerInfo();
00043
00044 void setTurn(int player_id, int cur_turn);
00045
00046 virtual void update();
00047
00048 private:
00049 Game& g_;
00050
00051 Surface bg_;
00052 Sprite wheel_;
00053
00054
00055 bool showing_player_info_;
00056 Surface player_picture_;
00057 TextSurface name_;
00058 TextSurface position_;
00059 TextSurface ma_;
00060 TextSurface mar_;
00061 TextSurface st_;
00062 TextSurface ag_;
00063 TextSurface av_;
00064 TextSurface misc_;
00065 TextSurface skills_;
00066 Sprite digit_score_[2];
00067 Sprite digit_reroll_[2];
00068 Sprite digit_time_[3];
00069
00070 Surface turn_[2];
00071 };
00072
00073 END_NS(sdlvisu);
00074
00075 #endif