include/book2/book2-ship.hpp

00001 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
00002 /*
00003  * frpuniverse
00004  * Copyright (C) Peter L. Berghold 2008 <Peter@Berghold.net>
00005  * 
00006  * frpuniverse is free software.
00007  * 
00008  * You may redistribute it and/or modify it under the terms of the
00009  * GNU General Public License, as published by the Free Software
00010  * Foundation; either version 2 of the License, or (at your option)
00011  * any later version.
00012  * 
00013  * frpuniverse is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00016  * See the GNU General Public License for more details.
00017  * 
00018  * You should have received a copy of the GNU General Public License
00019  * along with frpuniverse.  If not, write to:
00020  *      The Free Software Foundation, Inc.,
00021  *      51 Franklin Street, Fifth Floor
00022  *      Boston, MA  02110-1301, USA.
00023  * 
00024  * $Id: book2-ship.hpp,v 1.2 2008/02/21 22:32:42 plankowner Exp $
00025  *
00026  * $Log: book2-ship.hpp,v $
00027  * Revision 1.2  2008/02/21 22:32:42  plankowner
00028  * housekeeping on the files.
00029  *
00030  *
00031  */
00032 
00033 #include "ship-obj.hpp"
00034 #include "book2/book2-ship-hull.hpp"
00035 #include "traveller-constants.hpp"
00036 #include "book2/book2-drive-compartment.hpp"
00037 
00038 #ifndef _BOOK2_SHIP_HPP_
00039 #define _BOOK2_SHIP_HPP_
00040 
00041 
00042 
00048 class book2Ship: public shipObj 
00049 {
00050 public:
00057         book2Ship();
00058         
00066         book2Ship(int ix);
00067         
00068         
00074         void addHull(book2ShipHull* h);
00075         
00082         void addHull(int ix);
00083         
00093         void addHull(double m, double d);
00094 
00095         
00104         void addDrives(char p,char m,char j);
00105         
00106         
00107 protected:
00108 
00109 private:
00110         
00111         char*               name;
00112         
00113         double              costNew;
00114         
00115         book2ShipHull*      hull;
00116         double              cargo;
00117         
00118         book2DriveCompartment* drives;
00119         
00120         
00121         
00122 };
00123 
00124 #endif // _BOOK2_SHIP_HPP_

Generated on Fri Mar 7 16:40:52 2008 for frpuniverse by  doxygen 1.4.7