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 #ifndef _BOOK2_SHIP_HULL_HPP_
00026 #define _BOOK2_SHIP_HULL_HPP_
00027
00028
00033 #define SH100 0
00034 #define SH200 1
00035 #define SH400 2
00036 #define SH600 3
00037 #define SH800 4
00038 #define SH1000 5
00039
00040 typedef enum {
00041 standard,custom
00042 } typeHull;
00043
00044
00045 class book2ShipHull
00046 {
00047 public:
00052 book2ShipHull();
00053
00060 book2ShipHull(int ix);
00061
00073 book2ShipHull(double m, double d);
00074
00080 typeHull getHullType();
00081
00087 void setHullType(typeHull t);
00088
00089
00090
00091
00092
00093
00094
00095 double getSize();
00096
00102 void setSize(double s);
00103
00109 double getMainCompartment();
00110
00116 void setMainCompartment(double s);
00117
00124 double getDriveCompartment();
00125
00131 void setDriveCompartment(double s);
00132
00133
00139 double getCost();
00140
00146 void setCost(double c);
00147
00148
00154 int isStreamlined();
00155
00161 void isStreamlined(int s);
00162
00163 protected:
00164
00165 private:
00166 typeHull hullType;
00167 double size;
00168 double mainCompartment;
00169 double driveCompartment;
00170 double cost;
00171 double totalCost;
00172 int streamlined;
00173
00174 };
00175
00176 #endif // _BOOK2_SHIP_HULL_HPP_