SRules.hxx

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 # include "SMatch.hh"
00018 
00019 inline void SRules::sendIllegal(int token, int from, enum eError error)
00020 {
00021   MsgIllegal pkt(from);
00022   pkt.was_token = token;
00023   pkt.error = error;
00024   sendPacket(pkt);
00025 }
00026 
00027 inline OpStack* SRules::getOpStack()
00028 {
00029   return op_stack_;
00030 }
00031 
00032 inline App* SRules::getApp()
00033 {
00034   return app_;
00035 }
00036 
00037 inline SMatch* SRules::getMatch()
00038 {
00039   return match_;
00040 }
00041 
00042 inline SPlayerMsg* SRules::getPlayerMsg()
00043 {
00044   return player_msg_;
00045 }
00046 
00047 inline STeamMsg* SRules::getTeamMsg()
00048 {
00049   return team_msg_;
00050 }
00051 
00052 inline std::ostream& operator<< (std::ostream& os, const SRules& r)
00053 {
00054   return os << *r.match_;
00055 }
00056 
Generated on Mon Apr 5 21:17:13 2010 for Stechec/TBT by  doxygen 1.6.3