JNR
rpgProjectile Class Reference

Projectile RPG Properties. More...

#include <rpgProjectile.h>

Public Member Functions

virtual void load (class laFileParser *fp)
 

Public Attributes

unsigned nMultiplicty
 
double dSpeed
 
double dInitialAngle
 
double dAngleVaration
 
double dMass
 
double dTTL
 

Detailed Description

Projectile RPG Properties.

The properties of a projectile, associated with an attack

Author
Copyright (C) 2007-2013 Atanas Laskov, latan.nosp@m.as@g.nosp@m.mail..nosp@m.com

Definition at line 42 of file rpgProjectile.h.

Member Function Documentation

void rpgProjectile::load ( class laFileParser fp)
virtual

This method is part of the laLoadableObj interface

NOTE: This loads the projectile properites from the tileset (.ts) file, as part of a monster TS element ( part of an attack with projectile effects )

Definition at line 46 of file rpgProjectile.cpp.

47 {
48  // Load properties
49  //
50  fp->readUnsigned(&nMultiplicty);
51 
52  fp->readDouble(&dSpeed);
53  fp->readDouble(&dInitialAngle);
54  fp->readDouble(&dAngleVaration);
55  fp->readDouble(&dMass);
56 
57  fp->readDouble(&dTTL);
58 }

The documentation for this class was generated from the following files: