00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
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
00065 long mCargoLeft;
00066 long mCargoTop;
00067 long mCargoWidth;
00068 long mCargoHeight;
00069
00070 deque<Slot> Slots;
00071 };
00072
00073 #endif // !defined(Component_h)