mbb2Scout Class Reference

#include <mbb2-scout.hpp>

Inheritance diagram for mbb2Scout:

Inheritance graph
Collaboration diagram for mbb2Scout:

Collaboration graph
List of all members.

Detailed Description

This is a definition of a class for the mustering out benefit of a Type "S" Scout ship from Book 2 of the original Traveller boxed set.

See also:


Definition at line 36 of file mbb2-scout.hpp.

Public Member Functions

 mbb2Scout ()
void XMLout (FILE *fout)

Constructor & Destructor Documentation

mbb2Scout::mbb2Scout (  ) 

Class constructor

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

Definition at line 27 of file mbb2-scout.cpp.

References book2Ship::addHull().

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

Here is the call graph for this function:

Member Function Documentation

void mbb2Scout::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-scout.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_SCOUT,
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:50 2008 for frpuniverse by  doxygen 1.4.7