BaseSRules.hh

00001 /*
00002 ** TowBowlTactics, an adaptation of the tabletop game Blood Bowl.
00003 **
00004 ** Copyright (C) 2006, 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 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 
00032   int           getViewerState() const;
00034   void          setViewerState(int value);
00035 
00038   virtual void  serverStartup() {}
00040   virtual void  serverProcess() {}
00041 
00046   virtual void  addPlayer(int client_id, int league_id);
00047 
00053   virtual bool  coachKilled(int coach_id, CoachErrorCustom*& cec);
00054 
00058   virtual void  outputStat(int coach_id, ClientStatistic& client_stat);
00059 
00060 private:
00061   int           viewer_state_;
00062 };
00063 
00064 inline void BaseSRules::addPlayer(int, int) {}
00065 
00066 #endif /* !BASESRULES_HH_ */

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