STeamMsg.hh

00001 /*
00002 ** TowBowlTactics, a turn-based strategy football game.
00003 ** 
00004 ** Copyright (C) 2007-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 STEAMMSG_HH_
00018 # define STEAMMSG_HH_
00019 
00020 # include "Player.hh"
00021 # include "Team.hh"
00022 
00023 class SRules;
00024 class STeam;
00025 
00036 class STeamMsg
00037 {
00038 public:
00039   STeamMsg(SRules *r);
00040   ~STeamMsg();
00041 
00042   void setTeam(int team_id, STeam* t);
00043 
00044 private:
00045   STeam* getTeam(int token, int team_id);
00046 
00047   void msgTeamInfo(const MsgTeamInfo* m);
00048   void msgPlayerCreate(const MsgPlayerCreate* m);
00049   void msgReroll(const MsgReroll* m);
00050   void msgBlockDice(const MsgBlockDice* m);
00051   void msgFollow(const MsgFollow* m);
00052   void msgBlockPush(const MsgBlockPush* m);
00053   
00054   SRules* r_;
00055   STeam* t_[2];
00056 };
00057 
00058 # include "STeamMsg.hxx"
00059 
00060 #endif /* !STEAMMSG_HH_ */
Generated on Mon Apr 5 21:17:13 2010 for Stechec/TBT by  doxygen 1.6.3