Definition at line 32 of file book2-drive-compartment.hpp.
Public Member Functions | |
book2DriveCompartment () | |
book2DriveCompartment (char p, char m, char j) | |
double | totalMass () |
book2DriveCompartment::book2DriveCompartment | ( | ) |
Constructor
Definition at line 28 of file book2-drive-compartment.cpp.
00028 { 00029 jump = new book2JumpDrive(); 00030 maneuver = new book2ManeuverDrive(); 00031 powerPlant = new book2PowerPlant (); 00032 00033 }
book2DriveCompartment::book2DriveCompartment | ( | char | p, | |
char | m, | |||
char | j | |||
) |
Parametized constructor
p | -- power plant model | |
m | -- maneuver drive model | |
j | -- jump drive model |
Definition at line 35 of file book2-drive-compartment.cpp.
00035 { 00036 jump = new book2JumpDrive(j); 00037 maneuver = new book2ManeuverDrive(m); 00038 powerPlant = new book2PowerPlant (m); 00039 00040 }
double book2DriveCompartment::totalMass | ( | ) |
Total mass calculation
Definition at line 42 of file book2-drive-compartment.cpp.
References book2DriveObject::getMass().
Referenced by book2Ship::addDrives().
Here is the call graph for this function:
Here is the caller graph for this function: