BaseSRules.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 BASESRULES_HH_
00018 # define BASESRULES_HH_
00019 
00020 # include "BaseRules.hh"
00021 
00022 class ClientStatistic;
00023 class CoachErrorCustom;
00024 
00025 class BaseSRules : public BaseRules
00026 {
00027 public:
00028   BaseSRules();
00029   virtual ~BaseSRules();
00030 
00034   void          sendPacket(const Packet& p);
00035 
00037   int           getViewerState() const;
00039   void          setViewerState(int value);
00040 
00043   virtual void  serverStartup() {}
00045   virtual void  serverProcess() {}
00046 
00051   virtual void  addPlayer(int client_id, int league_id);
00052 
00058   virtual bool  coachKilled(int coach_id, CoachErrorCustom*& cec);
00059 
00063   virtual void  outputStat(int coach_id, ClientStatistic& client_stat);
00064 
00065 private:
00066   int           viewer_state_;
00067 };
00068 
00069 inline void BaseSRules::addPlayer(int, int) {}
00070 
00071 #endif /* !BASESRULES_HH_ */
Generated on Mon Apr 5 21:17:11 2010 for Stechec/TBT by  doxygen 1.6.3