#include <book2-drive-object.hpp>
Inheritance diagram for book2DriveObject:

Definition at line 39 of file book2-drive-object.hpp.
Public Member Functions | |
| book2DriveObject () | |
| char | getModel () |
| virtual void | setModel (char m) |
| double | getMass () |
| void | setMass (double m) |
| double | getCost () |
| void | setCost (double c) |
| book2DriveObject::book2DriveObject | ( | ) |
| double book2DriveObject::getCost | ( | ) |
get the drive's cost
Definition at line 49 of file book2-drive-object.cpp.
| double book2DriveObject::getMass | ( | ) |
get the drive's mass
Definition at line 41 of file book2-drive-object.cpp.
Referenced by book2DriveCompartment::totalMass().
Here is the caller graph for this function:

| char book2DriveObject::getModel | ( | ) |
Return the model number
Definition at line 33 of file book2-drive-object.cpp.
| void book2DriveObject::setCost | ( | double | c | ) |
set the drive's cost
| c | double value representing the cost of the drive. |
Definition at line 53 of file book2-drive-object.cpp.
Referenced by book2ManeuverDrive::setModel().
Here is the caller graph for this function:

| void book2DriveObject::setMass | ( | double | m | ) |
set the drive's mass
| m | -- double value representing the drive's mass |
Definition at line 45 of file book2-drive-object.cpp.
Referenced by book2PowerPlant::setModel(), book2ManeuverDrive::setModel(), and book2JumpDrive::setModel().
Here is the caller graph for this function:

| void book2DriveObject::setModel | ( | char | m | ) | [virtual] |
Set the model number. This is a virutal member since the derived classes will overload this as needed to handle any side effects of setting the model number.
| m | single character model number |
Reimplemented in book2JumpDrive, book2ManeuverDrive, and book2PowerPlant.
Definition at line 37 of file book2-drive-object.cpp.
Referenced by book2PowerPlant::setModel(), book2ManeuverDrive::setModel(), and book2JumpDrive::setModel().
Here is the caller graph for this function:

1.4.7