CPlayerMsg.hh

00001 /*
00002 ** TowBowlTactics, an adaptation of the tabletop game Blood Bowl.
00003 **
00004 ** Copyright (C) 2007 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 CPLAYERMSG_HH_
00018 # define CPLAYERMSG_HH_
00019 
00020 # include "CPlayer.hh"
00021 
00029 class CPlayerMsg
00030 {
00031 public:
00032   CPlayerMsg(CRules* r);
00033   ~CPlayerMsg();
00034 
00035   void setPlayer(int team_id, int player_id, CPlayer* p);
00036   
00037 private:
00038   CPlayer* getPlayer(int token_id, int team_id, int player_id);
00039   
00040   void msgDeclareAction(const MsgDeclare* m);
00041   void msgPlayerPos(const MsgPlayerPos* m);
00042   void msgPlayerMove(const MsgMove* m);
00043   void msgBlock(const MsgBlock* m);
00044   void msgPlayerKnocked(const MsgPlayerKnocked* m);
00045   void msgPlayerStatus(const MsgPlayerStatus* m);
00046   void msgPlayerKO(const MsgPlayerKO* m);
00047   void msgSkill(const MsgSkill* m);
00048 
00049   CRules* r_;
00050   CPlayer* p_[2][MAX_PLAYER];
00051 };
00052 
00053 #endif /* !CPLAYERMSG_HH_ */

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