#include <mb-gun.hpp>
Inheritance diagram for mbGun:
Definition at line 36 of file mb-gun.hpp.
Public Member Functions | |
mbGun () | |
void | XMLout (FILE *fout) |
mbGun::mbGun | ( | ) |
Constructor.
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:
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)); 00043 00044 }