ManaPlus
Public Member Functions | Data Fields
Attack Struct Reference

#include <attack.h>

Public Member Functions

 Attack (const std::string &action, const std::string &skyAction, const std::string &waterAction, const std::string &rideAction, const int effectId, const int hitEffectId, const int criticalHitEffectId, const int missEffectId, const std::string &missileParticle, const float missileZ, const float missileSpeed, const float missileDieDistance, const int missileLifeTime)
 

Data Fields

std::string mAction
 
std::string mSkyAction
 
std::string mWaterAction
 
std::string mRideAction
 
int mEffectId
 
int mHitEffectId
 
int mCriticalHitEffectId
 
int mMissEffectId
 
MissileInfo mMissile
 

Detailed Description

Definition at line 28 of file attack.h.

Constructor & Destructor Documentation

◆ Attack()

Attack::Attack ( const std::string &  action,
const std::string &  skyAction,
const std::string &  waterAction,
const std::string &  rideAction,
const int  effectId,
const int  hitEffectId,
const int  criticalHitEffectId,
const int  missEffectId,
const std::string &  missileParticle,
const float  missileZ,
const float  missileSpeed,
const float  missileDieDistance,
const int  missileLifeTime 
)
inline

Definition at line 40 of file attack.h.

References A_DELETE_COPY, MissileInfo::dieDistance, MissileInfo::lifeTime, MissileInfo::particle, MissileInfo::speed, and MissileInfo::z.

52  :
53  mAction(action),
54  mSkyAction(skyAction),
55  mWaterAction(waterAction),
56  mRideAction(rideAction),
57  mEffectId(effectId),
58  mHitEffectId(hitEffectId),
59  mCriticalHitEffectId(criticalHitEffectId),
60  mMissEffectId(missEffectId),
61  mMissile()
62  {
63  mMissile.particle = missileParticle;
64  mMissile.z = missileZ;
65  mMissile.speed = missileSpeed;
66  mMissile.dieDistance = missileDieDistance;
67  mMissile.lifeTime = missileLifeTime;
68  }
MissileInfo mMissile
Definition: attack.h:38
std::string mAction
Definition: attack.h:30
std::string mSkyAction
Definition: attack.h:31
std::string particle
Definition: missileinfo.h:40
int mCriticalHitEffectId
Definition: attack.h:36
int mHitEffectId
Definition: attack.h:35
std::string mRideAction
Definition: attack.h:33
float dieDistance
Definition: missileinfo.h:43
int mMissEffectId
Definition: attack.h:37
std::string mWaterAction
Definition: attack.h:32
int mEffectId
Definition: attack.h:34
float speed
Definition: missileinfo.h:42

Field Documentation

◆ mAction

std::string Attack::mAction

Definition at line 30 of file attack.h.

◆ mCriticalHitEffectId

int Attack::mCriticalHitEffectId

Definition at line 36 of file attack.h.

Referenced by BeingInfo::init().

◆ mEffectId

int Attack::mEffectId

Definition at line 34 of file attack.h.

Referenced by BeingInfo::init(), and Being::setAction().

◆ mHitEffectId

int Attack::mHitEffectId

Definition at line 35 of file attack.h.

Referenced by BeingInfo::init().

◆ mMissEffectId

int Attack::mMissEffectId

Definition at line 37 of file attack.h.

Referenced by BeingInfo::init().

◆ mMissile

MissileInfo Attack::mMissile

Definition at line 38 of file attack.h.

Referenced by Being::handleAttack().

◆ mRideAction

std::string Attack::mRideAction

Definition at line 33 of file attack.h.

◆ mSkyAction

std::string Attack::mSkyAction

Definition at line 31 of file attack.h.

◆ mWaterAction

std::string Attack::mWaterAction

Definition at line 32 of file attack.h.


The documentation for this struct was generated from the following file: