Panel.hh

00001 /*
00002 ** TowBowlTactics, an adaptation of the tabletop game Blood Bowl.
00003 **
00004 ** Copyright (C) 2006 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 "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   // Player information
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 /* !PANEL_HH_ */

Generated on Sat Jun 23 16:07:23 2007 for Stechec/TBT by  doxygen 1.4.7