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 #ifndef SENDING_QUEUE_HH_ 00018 # define SENDING_QUEUE_HH_ 00019 00020 # include "Player.hh" 00021 # include "tools.hh" 00022 00023 class CRules; 00024 00029 class SendingQueue 00030 { 00031 public: 00032 SendingQueue(CRules* r); 00033 ~SendingQueue(); 00034 00036 void cancelMoves(); 00038 void push(const MsgMove* m); 00041 bool sendNextMove(); 00042 00044 void cancelBlockDiceChoice(); 00047 bool sendBlockDiceChoice(); 00049 void storeBlockDiceChoice(int dice); 00050 00051 private: 00052 CRules* r_; 00053 00054 std::queue<const MsgMove*> moves_; 00055 int dice_; 00056 }; 00057 00058 # include "SendingQueue.hxx" 00059 00060 #endif /* !SENDING_QUEUE_HH_ */
1.6.3