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

Hull.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(Hull_h)
00031 #define Hull_h
00032 
00033 #include <deque>
00034 using namespace std;
00035 
00036 class TiXmlNode;
00037 
00038 #include "Component.h"
00039 #include "Slot.h"
00040 
00046 class Hull : public Component {
00047 public:
00048         Hull();
00049         virtual ~Hull();
00050         bool LoadSlot(const TiXmlNode * node);
00051         bool CheckSlots();
00052         const Slot & GetSlot(int i) const       { return Slots[i]; }
00053         unsigned int GetNumberSlots() const                     { return Slots.size(); }
00054         void SetCargoLeft(long v)       { mCargoLeft = v; }
00055         void SetCargoTop(long v)        { mCargoTop = v; }
00056         void SetCargoWidth(long v)      { mCargoWidth = v; }
00057         void SetCargoHeight(long v)     { mCargoHeight = v; }
00058         long GetCargoLeft() const       { return mCargoLeft; }
00059         long GetCargoTop() const        { return mCargoTop; }
00060         long GetCargoWidth() const      { return mCargoWidth; }
00061         long GetCargoHeight() const     { return mCargoHeight; }
00062 
00063 protected:
00064         // display settings
00065         long mCargoLeft;
00066         long mCargoTop;
00067         long mCargoWidth;
00068         long mCargoHeight;
00069 
00070         deque<Slot> Slots;
00071 };
00072 
00073 #endif // !defined(Component_h)

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