00001 /* -*- c++ -*- 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 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; // XXXX 00030 return busy_count_ > 0; 00031 } 00032 00033 inline void BaseCRules::sendPacket(const Packet& p) const 00034 { 00035 BaseRules::sendPacket(p); 00036 busy_count_++; 00037 } 00038 00039 inline void BaseCRules::setEventHandler(Event* evp) 00040 { 00041 evp_.setEventHandler(evp); 00042 }
1.6.3