Definition at line 30 of file book2-maneuver-drive.hpp.
Public Member Functions | |
book2ManeuverDrive () | |
book2ManeuverDrive (char m) | |
virtual void | setModel (char m) |
book2ManeuverDrive::book2ManeuverDrive | ( | ) |
Constructor without parameters
Definition at line 54 of file book2-maneuver-drive.cpp.
00054 : book2DriveObject (){ 00055 }
book2ManeuverDrive::book2ManeuverDrive | ( | char | m | ) |
Parametized constructor.
m | -- model number of the drive. |
Definition at line 57 of file book2-maneuver-drive.cpp.
References setModel().
00057 : book2DriveObject (){ 00058 this->setModel(m); 00059 }
Here is the call graph for this function:
void book2ManeuverDrive::setModel | ( | char | m | ) | [virtual] |
Virtualized method
m | -- model number of the drive. |
Reimplemented from book2DriveObject.
Definition at line 61 of file book2-maneuver-drive.cpp.
References book2DriveObject::setCost(), book2DriveObject::setMass(), and book2DriveObject::setModel().
Referenced by book2ManeuverDrive().
00061 { 00062 int set =0; 00063 int ix; 00064 00065 for(ix=0;ix<24;ix++){ 00066 if ( maneuverDriveTable[ix].model == m ) { 00067 set = 1; 00068 this->setCost(maneuverDriveTable[ix].cost); 00069 this->setMass(maneuverDriveTable[ix].mass); 00070 } 00071 } 00072 if ( set == 1 ) 00073 this->book2DriveObject::setModel(m); 00074 else 00075 this->book2DriveObject::setModel('?'); 00076 00077 }
Here is the call graph for this function:
Here is the caller graph for this function: