mbGun Class Reference

#include <mb-gun.hpp>

Inheritance diagram for mbGun:

Inheritance graph
Collaboration diagram for mbGun:

Collaboration graph
List of all members.

Detailed Description

A material benefit a character may recieve is a firearm (gun)

See also:

Definition at line 36 of file mb-gun.hpp.

Public Member Functions

 mbGun ()
void XMLout (FILE *fout)

Constructor & Destructor Documentation

mbGun::mbGun (  ) 


See also:
materialBenefit(char* s);

Definition at line 28 of file mb-gun.cpp.

References materialBenefit::setQuantity().

00028             :materialBenefit(MB_GUN) {
00029         this->setQuantity(1);
00030 }

Here is the call graph for this function:

Member Function Documentation

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

Send well constructed XML to a file.

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

Reimplemented from materialBenefit.

Definition at line 32 of file mb-gun.cpp.

00032                             {
00033         fprintf(fout,"\t\t%s\n",createStartElement(MB_TAG));
00034         fprintf(fout,"\t\t\t%s%s%s\n",
00035                         createStartElement(MB_TYPE),
00036                         MB_GUN,
00037                         createEndElement(MB_TYPE));
00038         fprintf(fout,"\t\t\t%s%d%s\n",
00039                         createStartElement(MB_QUANTITY),
00040                         this->getQuantity(),
00041                         createEndElement(MB_QUANTITY));
00042         fprintf(fout,"\t\t%s\n",createEndElement(MB_TAG));
00044 }

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