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 00025 #include "book2/book2-power-plant.hpp" 00026 #include "book2/book2-jump-drive.hpp" 00027 #include "book2/book2-maneuver-drive.hpp" 00028 00029 #ifndef _BOOK2_DRIVE_COMPARTMENT_HPP_ 00030 #define _BOOK2_DRIVE_COMPARTMENT_HPP_ 00031 00032 class book2DriveCompartment 00033 { 00034 public: 00038 book2DriveCompartment(); 00039 00047 book2DriveCompartment(char p,char m,char j); 00048 00054 double totalMass(); 00055 00056 protected: 00057 00058 private: 00059 book2JumpDrive* jump; 00060 book2PowerPlant* powerPlant; 00061 book2ManeuverDrive* maneuver; 00062 00063 }; 00064 00065 #endif // _BOOK2_DRIVE_COMPARTMENT_HPP_