SRules.hxx
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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