00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 inline int BaseCRules::getCoachId() const
00018 {
00019 return coach_id_;
00020 }
00021
00022 inline int BaseCRules::getLeagueId() const
00023 {
00024 return league_id_;
00025 }
00026
00027 inline bool BaseCRules::isBusy() const
00028 {
00029 return false;
00030 return busy_count_ > 0;
00031 }
00032
00033 inline void BaseCRules::sendPacket(const Packet& p) const
00034 {
00035 assert(packet_sender_ != NULL);
00036 packet_sender_->sendPacket(p);
00037 busy_count_++;
00038 }
00039
00040 inline void BaseCRules::setEventHandler(Event* evp)
00041 {
00042 evp_.setEventHandler(evp);
00043 }