mbb2FreeTrader Class Reference

#include <mbb2-free-trader.hpp>

Inheritance diagram for mbb2FreeTrader:

Inheritance graph
Collaboration diagram for mbb2FreeTrader:

Collaboration graph
List of all members.

Detailed Description

One of several ship types that might be awarded to a mustering out character is a Type A Free Trader. Note: this ship is of the "Book 2" style of Type A Free Trader.

See also:


Definition at line 40 of file mbb2-free-trader.hpp.

Public Member Functions

 mbb2FreeTrader ()
void XMLout (FILE *fout)

Constructor & Destructor Documentation

mbb2FreeTrader::mbb2FreeTrader (  ) 

Class constructor

See also:
mbShip::mbShip(char *s)

Definition at line 27 of file mbb2-free-trader.cpp.

References book2Ship::addHull().

00027                               :mbShip(MB_FREE_TRADER) , book2Ship() {
00028         this->addHull(SH200);
00029 }

Here is the call graph for this function:

Member Function Documentation

void mbb2FreeTrader::XMLout ( FILE *  fout  )  [virtual]

Send well formed (I hope!) XML to a file.

fout pointer to a file buffer/handle to write XML to.

Reimplemented from mbShip.

Definition at line 31 of file mbb2-free-trader.cpp.

00031                                      {
00032         fprintf(fout,"\t\t%s\n",createStartElement(MB_TAG));
00033         fprintf(fout,"\t\t\t%s%s%s\n",
00034                         createStartElement(MB_TYPE),
00035                         MB_FREE_TRADER,
00036                         createEndElement(MB_TYPE));
00037         fprintf(fout,"\t\t\t%s%d%s\n",
00038                         createStartElement(MB_AGE),
00039                         this->getAge(),
00040                         createEndElement(MB_AGE));
00041         fprintf(fout,"\t\t%s\n",createEndElement(MB_TAG));
00043 }

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