BaseCRules.hxx

00001 /* -*- c++ -*-
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 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   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 }

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