#include <mb-ship.hpp>
Inheritance diagram for mbShip:
Definition at line 51 of file mb-ship.hpp.
Public Member Functions | |
mbShip (char *s) | |
void | merge (mbShip *p) |
int | getAge () |
virtual void | XMLout (FILE *fout) |
mbShip::mbShip | ( | char * | s | ) |
Class constructor.
s | pointer to a mbShip object, normally a derived class |
Definition at line 27 of file mb-ship.cpp.
00027 :materialBenefit(s){ 00028 age=10; 00029 }
int mbShip::getAge | ( | ) |
Get the ship's age
Definition at line 35 of file mb-ship.cpp.
void mbShip::merge | ( | mbShip * | p | ) |
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.
virtual void mbShip::XMLout | ( | FILE * | fout | ) | [inline, virtual] |
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.