Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List

WayOrderList.h

Go to the documentation of this file.
00001 /*
00002 Copyright 2003 - 2005 Elliott Kleinrock, Dan Neely, Kurt W. Over, Damon Domjan
00003 
00004 This file is part of FreeStars, a free clone of the Stars! game.
00005 
00006 FreeStars is free software; you can redistribute it and/or modify
00007 it under the terms of the GNU General Public License as published by
00008 the Free Software Foundation; either version 2 of the License, or
00009 (at your option) any later version.
00010 
00011 FreeStars is distributed in the hope that it will be useful,
00012 but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 GNU General Public License for more details.
00015 
00016 You should have received a copy of the GNU General Public License
00017 along with FreeStars; if not, write to the Free Software
00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 
00020 The full GPL Copyright notice should be in the file COPYING.txt
00021 
00022 Contact:
00023 Email Elliott at 9jm0tjj02@sneakemail.com
00024 */
00025 
00030 #if !defined(WayOrderList_h)
00031 #define WayOrderList_h
00032 
00033 class Player;
00034 class WayOrder;
00035 class Fleet;
00036 class TiXmlNode;
00037 
00041 class WayOrderList {
00042 public:
00043         WayOrderList() : nPlayer(0), nFleet(0), mNoDelete(false) {}
00044         ~WayOrderList();
00045 
00046         bool ParseNode(const TiXmlNode * node, Player * player);
00047         const deque<WayOrder *> & GetOrders() const     { return orders; }
00048         void SetFleet(long fleet)               { nFleet = fleet; }
00049         long GetPlayer() const                  { return nPlayer; }
00050         long GetFleet() const                   { return nFleet; }
00051         void SetNoDelete()                              { mNoDelete = true; }
00052 
00053 protected:
00054         unsigned long nPlayer;
00055         unsigned long nFleet;
00056         deque<Fleet *> chasing;
00057         deque<WayOrder *> orders;
00058         bool mNoDelete;
00059 };
00060 
00061 #endif // !defined(WayOrderList_h)

Generated on Mon Aug 8 21:33:45 2005 for Freestars by  doxygen 1.4.2-20050421