mbShip Class Reference
Inheritance diagram for mbShip:
[legend]Collaboration diagram for mbShip:
[legend]List of all members.
Various character types have the opportunity to have a ship bestowed upon them as a mustering out benefit. The difference between getting a ship and other benefits are as follows:
A ship has an age. The first time a mustering out character earns this benefit the ship is 10 years old. Every time after that the ship is aged another 10 years.
You can only earn one ship.
- See also:
- possibly convert this class to have the specs for the ship included
Definition at line 51 of file mb-ship.hpp.
Constructor & Destructor Documentation
Member Function Documentation
Get the ship's age
- integer value representing the ship's age.
Definition at line 35 of file mb-ship.cpp.
00036 return age;
This is an override to the merge method from the base object. Each time the ship benefit is recieved the age benefit incrments by 10.
|p ||pointer to a mbShip object, normally a derived class. |
Definition at line 31 of file mb-ship.cpp.
00032 age = age+10;
|virtual void mbShip::XMLout
A mere placeholder that will be overridden by derived classes of this class
Write XML to a file...
|fout ||-- pointer to a file handle/buffer to write XML to |
Reimplemented from materialBenefit.
Reimplemented in mbb2FreeTrader, and mbb2Scout.
Definition at line 86 of file mb-ship.hpp.
The documentation for this class was generated from the following files:
Generated on Fri Mar 7 16:42:02 2008 for frpuniverse by