V-Gears 0
Free Final Fantasy VII engine.
Enemy Struct Reference

Any enemy in a battle. More...

#include <Enemy.h>

Collaboration diagram for Enemy:

Classes

struct  Attack
 Enemy attack data. More...
 
struct  Element
 
struct  Immunity
 Status immunity. More...
 
struct  Item
 Data for drop and steal items. More...
 

Public Member Functions

 Enemy (const unsigned int id)
 Constructor. More...
 
 Enemy (const unsigned int id, const Ogre::Vector3 pos, const bool front, const bool visible, const bool targeteable, const bool active, const std::string cover)
 Constructor. More...
 
virtual ~Enemy ()
 Destructor. More...
 
const int GetId () const
 Retrieves the enemy ID. More...
 
void SetId (const int id)
 Sets the enemy ID. More...
 
const std::string GetModel () const
 Retrieves the enemy model. More...
 
void SetModel (const std::string model)
 Sets the enemy model. More...
 
const std::string GetName () const
 Retrieves the enemy name. More...
 
void SetName (const Ogre::String &name)
 Sets the enemy name. More...
 
unsigned int GetLevel () const
 Retrieves the enemy level. More...
 
void SetLevel (const unsigned int level)
 Sets the enemy level. More...
 
unsigned int GetAp () const
 Retrieves the AP gain upon defeating the enemy. More...
 
void SetAp (unsigned int ap)
 Sets the AP gain upon defeating the enemy. More...
 
unsigned int GetExp () const
 Retrieves the EXP gain upon defeating the enemy. More...
 
void SetExp (const unsigned int exp)
 Sets the EXP gain upon defeating the enemy. More...
 
unsigned int GetMoney () const
 Retrieves the money gain upon defeating the enemy. More...
 
void SetMoney (const unsigned int money)
 Sets the money gain upon defeating the enemy. More...
 
std::vector< unsigned int > GetAnimations () const
 Retrieves the enemy animation IDs. More...
 
void AddAnimation (const unsigned int animation)
 Adds an animation for the enemy. More...
 
std::vector< AttackGetAttacks () const
 Retrieves the enemy attacks. More...
 
void AddAttack (const Attack attack)
 Adds an attack for the enemy. More...
 
std::vector< ItemGetDrop () const
 Retrieves the enemy possible item drops. More...
 
void AddDrop (const Item item)
 Adds an item drop for the enemy. More...
 
std::vector< ElementGetElements () const
 Retrieves the list of the enemy elemental affinities. More...
 
void AddElement (const Element element)
 Adds an elemental affinity to the monster. More...
 
std::vector< ImmunityGetImmunities () const
 Retrieves the list of status immunities. More...
 
void AddImmunity (const Immunity immunity)
 Adds an immunity to the monster. More...
 
std::vector< unsigned int > GetManipulateAttacks () const
 Retrieves the list of attacks that can be used during the manipulated state. More...
 
void AddManipulateAttack (const unsigned int attack)
 Adds an attack usable during manipulation. More...
 
std::vector< ItemGetSteal () const
 Retrieves the enemy possible item stelas. More...
 
void AddSteal (const Item item)
 Adds an item steal to the enemy. More...
 
unsigned int GetMorph () const
 Retrieves the ID of the item the monster can be morphed into. More...
 
void SetMorph (const int morph)
 Sets the ID of the item the monster can be morphed into. More...
 
float GetBackDamage () const
 Retrieves the multiplier for the damage the enemy receives when attacked from the back. More...
 
void SetBackDamage (const float back_damage)
 Sets the multiplier for the damage the enemy receives when attacked from the back. More...
 
unsigned int GetStr () const
 Retrieves the enemy's strength stat. More...
 
void SetStr (const unsigned int str)
 Sets the enemy's strength stat. More...
 
unsigned int GetDef () const
 Retrieves the enemy's defense stat. More...
 
void SetDef (const unsigned int def)
 Sets the enemy's defense stat. More...
 
unsigned int GetMag () const
 Retrieves the enemy's magic stat. More...
 
void SetMag (const unsigned int mag)
 Sets the enemy's magic stat. More...
 
unsigned int GetSpr () const
 Retrieves the enemy's spirit stat. More...
 
void SetSpr (const unsigned int spr)
 Sets the enemy's spirit stat. More...
 
unsigned int GetDex () const
 Retrieves the enemy's dexterity stat. More...
 
void SetDex (const unsigned int dex)
 Sets the enemy's dexterity stat. More...
 
unsigned int GetLck () const
 Retrieves the enemy's luck stat. More...
 
void SetLck (const unsigned int lck)
 Sets the enemy's luck stat. More...
 
unsigned int GetEva () const
 Retrieves the enemy's evasion stat. More...
 
void SetEva (const unsigned int eva)
 Sets the enemy's evasion stat. More...
 
unsigned int GetMeva () const
 Retrieves the enemy's magic evasion stat. More...
 
void SetMeva (const unsigned int meva)
 Sets the enemy's magic evasion stat. More...
 
unsigned int GetHp () const
 Retrieves the enemy's current HP. More...
 
void SetHp (const unsigned int hp)
 Sets the enemy's current HP. More...
 
unsigned int GetHpMax () const
 Retrieves the enemy's max HP. More...
 
void SetHpMax (const unsigned int hp_max)
 Sets the enemy's max HP. More...
 
unsigned int GetMp () const
 Retrieves the enemy's current MP. More...
 
void SetMp (const unsigned int mp)
 Sets the enemy's current MP. More...
 
unsigned int GetMpMax () const
 Retrieves the enemy's max MP. More...
 
void SetMpMax (const unsigned int mp_max)
 Sets the enemy's max MP. More...
 
Ogre::Vector3 & GetPos ()
 Retrieves the enemy position in the battlefield. More...
 
void SetPos (const Ogre::Vector3 &pos)
 Sets the enemy position in the battlefield. More...
 
void ScriptGetPos () const
 Retrieves the enemy position. More...
 
bool IsFront () const
 Checks if the enemy is in the front row. More...
 
void SetFront (bool front)
 Sets the enemy in or out the front row. More...
 
bool IsVisible () const
 Checks the enemy visibility. More...
 
void SetVisible (bool visible)
 Toggles the enemy visibility. More...
 
bool IsTargeteable () const
 Checks whether the enemy can be targeted. More...
 
void SetTargeteable (bool targeteable)
 Determines whether the enemy can be targeted. More...
 
bool IsActive () const
 Checks whether the enemy's main script is active. More...
 
void SetActive (bool active)
 Activates or deactivates the enemy main script. More...
 
std::string GetCover () const
 Retrieves the flags for enemy covering. More...
 
void SetCover (std::string cover)
 Sets the flags for enemy covering. More...
 
int ScriptGetAttackCount ()
 Retrieves the number of attacks of the enemy. More...
 
int ScriptGetAttack (const unsigned int index)
 Retrieves an attack. More...
 
int ScriptGetCameraForAttack (const unsigned int index)
 Retrieves the camera for an attack. More...
 
 Enemy ()
 Constructor. More...
 

Public Attributes

u32 id
 The enemy ID. More...
 
std::string name
 The enemy name. More...
 
u8 level
 The enemy level. More...
 
u8 str
 The enemy strength stat. More...
 
u8 mag
 The enemy magic stat. More...
 
u8 def
 The enemy defense stat. More...
 
u8 mdef
 The enemy magic defense stat. More...
 
u8 spd
 The enemy speed stat. More...
 
u8 lck
 The enemy luck stat. More...
 
u8 eva
 The enemy evasion stat. More...
 
u32 hp
 The enemy HP. More...
 
u32 mp
 The enemy MP. More...
 
u32 exp
 Experience given upon defeat. More...
 
u32 ap
 AP given upon defeat. More...
 
u32 money
 Money given upon defeat. More...
 
float back_damage
 Back damage multiplier. More...
 
std::vector< unsigned int > animations
 List of animations. More...
 
std::vector< Elementelements
 Elemental affinities. More...
 
std::vector< Immunityimmunities
 Status immunities and resistances. More...
 
std::vector< Attackattacks
 Enemy attacks. More...
 
std::vector< u16manipulate_attacks
 List of attacks that can be used while manipulated. More...
 
std::vector< Itemsteal
 List of the items that can be stolen from the enemy. More...
 
std::vector< Itemdrop
 List of the items that can be dropped from the enemy. More...
 
std::string model
 Two-letter model code. More...
 
unsigned int morph
 ID of the item the enemy can be morphed into. More...
 

Private Member Functions

void ReadFromXml ()
 Reads enemy data from the xml file. More...
 

Private Attributes

int id_
 The enemy ID. More...
 
std::string model_
 NAme of the enemy model file. More...
 
Ogre::String name_
 The name of the enemy. More...
 
unsigned int level_
 The enemy level. More...
 
unsigned int exp_
 EXP given upon defeating the enemy. More...
 
unsigned int ap_
 AP given upon defeating the enemy. More...
 
unsigned int money_
 Money given upon defeating the enemy. More...
 
std::vector< unsigned int > animations_
 List of animations. More...
 
std::vector< Elementelements_
 Elemental affinities. More...
 
std::vector< Immunityimmunities_
 Status immunities and resistances. More...
 
std::vector< Attackattacks_
 Enemy attacks. More...
 
std::vector< unsigned int > manipulate_attacks_
 List of attacks that can be used while manipulated. More...
 
std::vector< Itemsteal_
 List of the items that can be stolen from the enemy. More...
 
std::vector< Itemdrop_
 List of the items that can be dropped from the enemy. More...
 
int morph_
 ID of the item the enemy can be morphed into. More...
 
float back_damage_
 Multiplier for back damage. More...
 
unsigned int str_
 Enemy strength stat. More...
 
unsigned int def_
 Enemy defense stat. More...
 
unsigned int mag_
 Enemy magic stat. More...
 
unsigned int spr_
 Enemy spirit stat. More...
 
unsigned int dex_
 Enemy dexterity stat. More...
 
unsigned int lck_
 Enemy luck stat. More...
 
unsigned int eva_
 Enemy evasion stat. More...
 
unsigned int meva_
 Enemy magic evasion stat. More...
 
unsigned int hp_
 Enemy's current HP. More...
 
unsigned int mp_
 Enemy's current MP. More...
 
unsigned int hp_max_
 Enemy's max HP. More...
 
unsigned int mp_max_
 Enemy's max MP. More...
 
Ogre::Vector3 pos_
 Enemy position in the battlefield (x, y, z). More...
 
bool front_
 Indicates if the enmy is in the frontline. More...
 
bool visible_
 Indicates if the enemy is visible. More...
 
bool targeteable_
 Indicates if the enemy can be targeted. More...
 
bool active_
 Indicates if the enemy's main script is active. More...
 
std::string cover_
 Cover binary flags. More...
 

Detailed Description

Any enemy in a battle.

Constructor & Destructor Documentation

◆ Enemy() [1/3]

Enemy::Enemy ( const unsigned int  id)

Constructor.

Parameters
[in]idEnemy ID.

◆ Enemy() [2/3]

Enemy::Enemy ( const unsigned int  id,
const Ogre::Vector3  pos,
const bool  front,
const bool  visible,
const bool  targeteable,
const bool  active,
const std::string  cover 
)

Constructor.

Parameters
[in]idEnemy ID.
[in]posEnemy position (x, y, z).
[in]frontTrue to set the enemy in the front row, false for back row.
[in]visibleIndicates enemy visibility.
[in]targeteableIndicates if the enemy can be targeted.
[in]activeIndicates whether the enemy main script is active or not.
[in]coverCover binary flags string.

◆ ~Enemy()

Enemy::~Enemy ( )
virtual

Destructor.

◆ Enemy() [3/3]

Enemy::Enemy ( )
inline

Constructor.

Initializes to default values.

Member Function Documentation

◆ AddAnimation()

void Enemy::AddAnimation ( const unsigned int  animation)

Adds an animation for the enemy.

Parameters
[in]animationAnimation ID.

◆ AddAttack()

void Enemy::AddAttack ( const Attack  attack)

Adds an attack for the enemy.

Parameters
[in]attackAttack to add.

◆ AddDrop()

void Enemy::AddDrop ( const Item  item)

Adds an item drop for the enemy.

Parameters
[in]itemThe dropable item.

◆ AddElement()

void Enemy::AddElement ( const Element  element)

Adds an elemental affinity to the monster.

Parameters
[in]elementElemental affinity.

◆ AddImmunity()

void Enemy::AddImmunity ( const Immunity  immunity)

Adds an immunity to the monster.

Parameters
[in]immunityThe immunity to add.

◆ AddManipulateAttack()

void Enemy::AddManipulateAttack ( const unsigned int  attack)

Adds an attack usable during manipulation.

Parameters
[in]attackID of the attack.

◆ AddSteal()

void Enemy::AddSteal ( const Item  item)

Adds an item steal to the enemy.

Parameters
[in]itemThe stealableitem.

◆ GetAnimations()

std::vector< unsigned int > Enemy::GetAnimations ( ) const

Retrieves the enemy animation IDs.

Returns
The list of animation IDs

◆ GetAp()

unsigned int Enemy::GetAp ( ) const

Retrieves the AP gain upon defeating the enemy.

Returns
The AP gain.

◆ GetAttacks()

std::vector< Enemy::Attack > Enemy::GetAttacks ( ) const

Retrieves the enemy attacks.

Returns
The list of attacks.

◆ GetBackDamage()

float Enemy::GetBackDamage ( ) const

Retrieves the multiplier for the damage the enemy receives when attacked from the back.

Returns
Back attack damage multiplier.

◆ GetCover()

std::string Enemy::GetCover ( ) const

Retrieves the flags for enemy covering.

{

See also
https://wiki.ffrtt.ru/index.php/FF7/Battle/Battle_Scenes#Binary_.22Cover_Flags.22} for more info about cover flags.
Returns
A string with five 0s or 1s indicating the cover flags.

◆ GetDef()

unsigned int Enemy::GetDef ( ) const

Retrieves the enemy's defense stat.

Returns
The defense stat.

◆ GetDex()

unsigned int Enemy::GetDex ( ) const

Retrieves the enemy's dexterity stat.

Returns
The dexterity stat.

◆ GetDrop()

std::vector< Enemy::Item > Enemy::GetDrop ( ) const

Retrieves the enemy possible item drops.

Returns
List of items that can be dropped by the enemy.

◆ GetElements()

std::vector< Enemy::Element > Enemy::GetElements ( ) const

Retrieves the list of the enemy elemental affinities.

Returns
The list of elemental affinities.

◆ GetEva()

unsigned int Enemy::GetEva ( ) const

Retrieves the enemy's evasion stat.

Returns
The evasion stat.

◆ GetExp()

unsigned int Enemy::GetExp ( ) const

Retrieves the EXP gain upon defeating the enemy.

Returns
The EXP gain.

◆ GetHp()

unsigned int Enemy::GetHp ( ) const

Retrieves the enemy's current HP.

Returns
The current HP.

◆ GetHpMax()

unsigned int Enemy::GetHpMax ( ) const

Retrieves the enemy's max HP.

Returns
The max HP.

◆ GetId()

const int Enemy::GetId ( ) const

Retrieves the enemy ID.

Returns
The enemy ID, or -1 if it's not loaded.

◆ GetImmunities()

std::vector< Enemy::Immunity > Enemy::GetImmunities ( ) const

Retrieves the list of status immunities.

Returns
The list of status immunities.

◆ GetLck()

unsigned int Enemy::GetLck ( ) const

Retrieves the enemy's luck stat.

Returns
The luck stat.

◆ GetLevel()

unsigned int Enemy::GetLevel ( ) const

Retrieves the enemy level.

Returns
The enemy level.

◆ GetMag()

unsigned int Enemy::GetMag ( ) const

Retrieves the enemy's magic stat.

Returns
The magic stat.

◆ GetManipulateAttacks()

std::vector< unsigned int > Enemy::GetManipulateAttacks ( ) const

Retrieves the list of attacks that can be used during the manipulated state.

The first attack of the list is also the attack the enemy will use when in berserkr state. If the list is empty, the enemy can't be manipulated or berserkred.

Returns
List of IDs of attacks usable during manipulation

◆ GetMeva()

unsigned int Enemy::GetMeva ( ) const

Retrieves the enemy's magic evasion stat.

Returns
The magic evasion stat.

◆ GetModel()

const std::string Enemy::GetModel ( ) const

Retrieves the enemy model.

The model name is the filename of the .mesh file, without extension.

Returns
The enemy model.

◆ GetMoney()

unsigned int Enemy::GetMoney ( ) const

Retrieves the money gain upon defeating the enemy.

Returns
The money gain.

◆ GetMorph()

unsigned int Enemy::GetMorph ( ) const

Retrieves the ID of the item the monster can be morphed into.

Returns
ID of the item the enemy can be morphed into, -1 if none.

◆ GetMp()

unsigned int Enemy::GetMp ( ) const

Retrieves the enemy's current MP.

Returns
The current MP.

◆ GetMpMax()

unsigned int Enemy::GetMpMax ( ) const

Retrieves the enemy's max MP.

Returns
The max MP.

◆ GetName()

const std::string Enemy::GetName ( ) const

Retrieves the enemy name.

Returns
The enemy name.

◆ GetPos()

Ogre::Vector3 & Enemy::GetPos ( )

Retrieves the enemy position in the battlefield.

Returns
The enemy position (x, y, z).

◆ GetSpr()

unsigned int Enemy::GetSpr ( ) const

Retrieves the enemy's spirit stat.

Returns
The spirit stat.

◆ GetSteal()

std::vector< Enemy::Item > Enemy::GetSteal ( ) const

Retrieves the enemy possible item stelas.

Returns
List of items that can be stolen from the enemy.

◆ GetStr()

unsigned int Enemy::GetStr ( ) const

Retrieves the enemy's strength stat.

Returns
The strength stat.

◆ IsActive()

bool Enemy::IsActive ( ) const

Checks whether the enemy's main script is active.

Returns
True if the script is active, false if not.

◆ IsFront()

bool Enemy::IsFront ( ) const

Checks if the enemy is in the front row.

Returns
True if the enemy is in the front row. false if not.

◆ IsTargeteable()

bool Enemy::IsTargeteable ( ) const

Checks whether the enemy can be targeted.

Returns
True if the enemy can be targeted, false if not.

◆ IsVisible()

bool Enemy::IsVisible ( ) const

Checks the enemy visibility.

Returns
True if the enemy is visible, false if not.

◆ ReadFromXml()

void Enemy::ReadFromXml ( )
private

Reads enemy data from the xml file.

◆ ScriptGetAttack()

int Enemy::ScriptGetAttack ( const unsigned int  index)

Retrieves an attack.

To be used from Lua scripts.

Parameters
[in]indexThe index of the attack to retrieve. Must be lower than reported by {
See also
ScriptGetAttackCount}.
Returns
The ID of the attack in the specified index, or -1 if no such attack exists.

◆ ScriptGetAttackCount()

int Enemy::ScriptGetAttackCount ( )

Retrieves the number of attacks of the enemy.

To be used from Lua scripts.

Returns
The number of attacks.

◆ ScriptGetCameraForAttack()

int Enemy::ScriptGetCameraForAttack ( const unsigned int  index)

Retrieves the camera for an attack.

To be used from Lua scripts.

Parameters
[in]indexThe index of the attack to retrieve. Must be lower than reported by {
See also
ScriptGetAttackCount}.
Returns
The ID of camera associated to the attack. -1 if no such attack exists or if it doesn't have an specific camera associated.

◆ ScriptGetPos()

void Enemy::ScriptGetPos ( ) const

Retrieves the enemy position.

To be used from Lua scripts only. It doesn't return anything, but adds three values to the stack for the X, Y and Z coordinates.

◆ SetActive()

void Enemy::SetActive ( bool  active)

Activates or deactivates the enemy main script.

Parameters
[in]activeTrue to activate the script, false to deactivate it.

◆ SetAp()

void Enemy::SetAp ( unsigned int  ap)

Sets the AP gain upon defeating the enemy.

Parameters
[in]apThe AP gain.

◆ SetBackDamage()

void Enemy::SetBackDamage ( const float  back_damage)

Sets the multiplier for the damage the enemy receives when attacked from the back.

Parameters
[in]back_damageBack attack damage multiplier, 0 or positive.

◆ SetCover()

void Enemy::SetCover ( std::string  cover)

Sets the flags for enemy covering.

{

See also
https://wiki.ffrtt.ru/index.php/FF7/Battle/Battle_Scenes#Binary_.22Cover_Flags.22} for more info about cover flags.
Parameters
[in]coverA string with five 0s or 1s indicating the cover flags.

◆ SetDef()

void Enemy::SetDef ( const unsigned int  def)

Sets the enemy's defense stat.

Parameters
[in]defThe defense stat.

◆ SetDex()

void Enemy::SetDex ( const unsigned int  dex)

Sets the enemy's dexterity stat.

Parameters
[in]dexThe dexterity stat.

◆ SetEva()

void Enemy::SetEva ( const unsigned int  eva)

Sets the enemy's evasion stat.

Parameters
[in]evaThe evasion stat.

◆ SetExp()

void Enemy::SetExp ( const unsigned int  exp)

Sets the EXP gain upon defeating the enemy.

Parameters
[in]expThe EXP gain.

◆ SetFront()

void Enemy::SetFront ( bool  front)

Sets the enemy in or out the front row.

Parameters
[in]frontTrue to set the enemy in the front row, false for the back row.

◆ SetHp()

void Enemy::SetHp ( const unsigned int  hp)

Sets the enemy's current HP.

If set to higher then max HP reported by {

See also
GetHpMax()}, it will be capped to that value.
Parameters
[in]hpThe current HP.

◆ SetHpMax()

void Enemy::SetHpMax ( const unsigned int  hp_max)

Sets the enemy's max HP.

If the new max HP is higher than the current HP, the current HP will be set to the new max HP.

Parameters
[in]hp_maxThe max HP stat.

◆ SetId()

void Enemy::SetId ( const int  id)

Sets the enemy ID.

Parameters
[in]idThe enemy ID.

◆ SetLck()

void Enemy::SetLck ( const unsigned int  lck)

Sets the enemy's luck stat.

Parameters
[in]lckThe luck stat.

◆ SetLevel()

void Enemy::SetLevel ( const unsigned int  level)

Sets the enemy level.

Parameters
[in]levelThe enemy level.

◆ SetMag()

void Enemy::SetMag ( const unsigned int  mag)

Sets the enemy's magic stat.

Parameters
[in]magThe magic stat.

◆ SetMeva()

void Enemy::SetMeva ( const unsigned int  meva)

Sets the enemy's magic evasion stat.

Parameters
[in]mevaThe magic evasion stat.

◆ SetModel()

void Enemy::SetModel ( const std::string  model)

Sets the enemy model.

The model name must be the filename of the .mesh file, without extension.

Parameters
[in]modelThe enemy model name.

◆ SetMoney()

void Enemy::SetMoney ( const unsigned int  money)

Sets the money gain upon defeating the enemy.

Parameters
[in]moneyThe money gain.

◆ SetMorph()

void Enemy::SetMorph ( const int  morph)

Sets the ID of the item the monster can be morphed into.

Parameters
[in]morphID of the item the enemy can be morphed into, -1 if none.

◆ SetMp()

void Enemy::SetMp ( const unsigned int  mp)

Sets the enemy's current MP.

If set to higher then max MP reported by {

See also
GetMpMax()}, it will be capped to that value.
Parameters
[in]mpThe current MP.

◆ SetMpMax()

void Enemy::SetMpMax ( const unsigned int  mp_max)

Sets the enemy's max MP.

If the new max MP is higher than the current MP, the current MP will be set to the new max MP.

Parameters
[in]mp_maxThe max MP stat.

◆ SetName()

void Enemy::SetName ( const Ogre::String &  name)

Sets the enemy name.

Parameters
[in]nameThe enemy name.

◆ SetPos()

void Enemy::SetPos ( const Ogre::Vector3 &  pos)

Sets the enemy position in the battlefield.

Parameters
[in]posThe enemy position (x, y, z).

◆ SetSpr()

void Enemy::SetSpr ( const unsigned int  spr)

Sets the enemy's spirit stat.

Parameters
[in]sprThe spirit stat.

◆ SetStr()

void Enemy::SetStr ( const unsigned int  str)

Sets the enemy's strength stat.

Parameters
[in]strThe strength stat.

◆ SetTargeteable()

void Enemy::SetTargeteable ( bool  targeteable)

Determines whether the enemy can be targeted.

Parameters
[in]targeteableTrue to allow targeting the enemy false to prevent it.

◆ SetVisible()

void Enemy::SetVisible ( bool  visible)

Toggles the enemy visibility.

Parameters
[in]visibleTrue to make the enemy visible, false to make it invisible.

Member Data Documentation

◆ active_

bool Enemy::active_
private

Indicates if the enemy's main script is active.

◆ animations

std::vector<unsigned int> Enemy::animations

List of animations.

◆ animations_

std::vector<unsigned int> Enemy::animations_
private

List of animations.

◆ ap

u32 Enemy::ap

AP given upon defeat.

◆ ap_

unsigned int Enemy::ap_
private

AP given upon defeating the enemy.

◆ attacks

std::vector<Attack> Enemy::attacks

Enemy attacks.

◆ attacks_

std::vector<Attack> Enemy::attacks_
private

Enemy attacks.

◆ back_damage

float Enemy::back_damage

Back damage multiplier.

◆ back_damage_

float Enemy::back_damage_
private

Multiplier for back damage.

◆ cover_

std::string Enemy::cover_
private

Cover binary flags.

◆ def

u8 Enemy::def

The enemy defense stat.

◆ def_

unsigned int Enemy::def_
private

Enemy defense stat.

◆ dex_

unsigned int Enemy::dex_
private

Enemy dexterity stat.

◆ drop

std::vector<Item> Enemy::drop

List of the items that can be dropped from the enemy.

◆ drop_

std::vector<Item> Enemy::drop_
private

List of the items that can be dropped from the enemy.

◆ elements

std::vector<Element> Enemy::elements

Elemental affinities.

◆ elements_

std::vector<Element> Enemy::elements_
private

Elemental affinities.

◆ eva

u8 Enemy::eva

The enemy evasion stat.

◆ eva_

unsigned int Enemy::eva_
private

Enemy evasion stat.

◆ exp

u32 Enemy::exp

Experience given upon defeat.

◆ exp_

unsigned int Enemy::exp_
private

EXP given upon defeating the enemy.

◆ front_

bool Enemy::front_
private

Indicates if the enmy is in the frontline.

◆ hp

u32 Enemy::hp

The enemy HP.

◆ hp_

unsigned int Enemy::hp_
private

Enemy's current HP.

◆ hp_max_

unsigned int Enemy::hp_max_
private

Enemy's max HP.

◆ id

u32 Enemy::id

The enemy ID.

◆ id_

int Enemy::id_
private

The enemy ID.

◆ immunities

std::vector<Immunity> Enemy::immunities

Status immunities and resistances.

◆ immunities_

std::vector<Immunity> Enemy::immunities_
private

Status immunities and resistances.

◆ lck

u8 Enemy::lck

The enemy luck stat.

◆ lck_

unsigned int Enemy::lck_
private

Enemy luck stat.

◆ level

u8 Enemy::level

The enemy level.

◆ level_

unsigned int Enemy::level_
private

The enemy level.

◆ mag

u8 Enemy::mag

The enemy magic stat.

◆ mag_

unsigned int Enemy::mag_
private

Enemy magic stat.

◆ manipulate_attacks

std::vector<u16> Enemy::manipulate_attacks

List of attacks that can be used while manipulated.

The first one is also the one used in berserkr. If empty, it means the enemy can't be manipulated or berserkd.

◆ manipulate_attacks_

std::vector<unsigned int> Enemy::manipulate_attacks_
private

List of attacks that can be used while manipulated.

The first one is also the one used in berserkr. If empty, it means the enemy can't be manipulated or berserkd.

◆ mdef

u8 Enemy::mdef

The enemy magic defense stat.

◆ meva_

unsigned int Enemy::meva_
private

Enemy magic evasion stat.

◆ model

std::string Enemy::model

Two-letter model code.

◆ model_

std::string Enemy::model_
private

NAme of the enemy model file.

◆ money

u32 Enemy::money

Money given upon defeat.

◆ money_

unsigned int Enemy::money_
private

Money given upon defeating the enemy.

◆ morph

unsigned int Enemy::morph

ID of the item the enemy can be morphed into.

If -1, it can't be morphed.

◆ morph_

int Enemy::morph_
private

ID of the item the enemy can be morphed into.

-1 if none..

◆ mp

u32 Enemy::mp

The enemy MP.

◆ mp_

unsigned int Enemy::mp_
private

Enemy's current MP.

◆ mp_max_

unsigned int Enemy::mp_max_
private

Enemy's max MP.

◆ name

std::string Enemy::name

The enemy name.

◆ name_

Ogre::String Enemy::name_
private

The name of the enemy.

◆ pos_

Ogre::Vector3 Enemy::pos_
private

Enemy position in the battlefield (x, y, z).

◆ spd

u8 Enemy::spd

The enemy speed stat.

◆ spr_

unsigned int Enemy::spr_
private

Enemy spirit stat.

◆ steal

std::vector<Item> Enemy::steal

List of the items that can be stolen from the enemy.

◆ steal_

std::vector<Item> Enemy::steal_
private

List of the items that can be stolen from the enemy.

◆ str

u8 Enemy::str

The enemy strength stat.

◆ str_

unsigned int Enemy::str_
private

Enemy strength stat.

◆ targeteable_

bool Enemy::targeteable_
private

Indicates if the enemy can be targeted.

◆ visible_

bool Enemy::visible_
private

Indicates if the enemy is visible.


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