00001 /* 00002 ** TowBowlTactics, a turn-based strategy football game. 00003 ** 00004 ** Copyright (C) 2008-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 void SendingQueue::push(const MsgMove* m) 00018 { 00019 moves_.push(m); 00020 } 00021 00022 inline void SendingQueue::cancelMoves() 00023 { 00024 const MsgMove* m; 00025 while (!moves_.empty()) 00026 { 00027 m = moves_.front(); 00028 moves_.pop(); 00029 delete m; 00030 } 00031 } 00032 00033 inline void SendingQueue::storeBlockDiceChoice(int dice) 00034 { 00035 assert(dice != -1); 00036 dice_ = dice; 00037 } 00038 00039 inline void SendingQueue::cancelBlockDiceChoice() 00040 { 00041 if (dice_ != -1) 00042 dice_ = -1; 00043 } 00044
1.6.3