book2DriveCompartment Class Reference

Collaboration diagram for book2DriveCompartment:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 32 of file book2-drive-compartment.hpp.

Public Member Functions

 book2DriveCompartment ()
 book2DriveCompartment (char p, char m, char j)
double totalMass ()


Constructor & Destructor Documentation

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

Parameters:
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 }


Member Function Documentation

double book2DriveCompartment::totalMass (  ) 

Total mass calculation

Returns:
double value representing the mass of the drives.

Definition at line 42 of file book2-drive-compartment.cpp.

References book2DriveObject::getMass().

Referenced by book2Ship::addDrives().

00042                                        {
00043         return jump->getMass()+ maneuver->getMass() + powerPlant->getMass();
00044 }

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
Generated on Fri Mar 7 16:41:16 2008 for frpuniverse by  doxygen 1.4.7