Panel.hh

00001 /*
00002 ** TowBowlTactics, a turn-based strategy football game.
00003 **
00004 ** Copyright (C) 2006-2010 The TBT Team.
00005 **
00006 ** This program is free software; you can redistribute it and/or
00007 ** modify it under the terms of the GNU General Public License
00008 ** as published by the Free Software Foundation; either version 2
00009 ** of the License, or (at your option) any later version.
00010 **
00011 ** The complete GNU General Public Licence Notice can be found as the
00012 ** `NOTICE' file in the root directory.
00013 **
00014 ** The TBT Team consists of people listed in the `AUTHORS' file.
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   // Player information
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 /* !PANEL_HH_ */
Generated on Mon Apr 5 21:17:12 2010 for Stechec/TBT by  doxygen 1.6.3