persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
Enemy Struct Reference

#include <Enemy.hpp>

Inheritance diagram for Enemy:
Collaboration diagram for Enemy:

Public Member Functions

 Enemy (const EnemyProfile &iEnemyProfile)
Skill * pickSkill ()
BattleParticipant * pickTarget (etl::vector< BattleParticipant *, 13 > &partyMembers)
TurnResult resolve (BattleParticipant *target, Skill *skill)
BattleStats * getBattleStats () override
ae::q20_12_t calculateBaseDamage (BattleParticipant &defender, Skill &skill) override
ae::q20_12_t getTeamMultiplier () override
BattlePhase getInitalTurnPhase () override
void onDead (Event::BattleResult &battleResult) override
void setCurrentTurnOrderAgility (ae::q20_12_t boost)
virtual ~Enemy ()=default
Public Member Functions inherited from BattleParticipant
virtual ~BattleParticipant ()=default

Public Attributes

Skill ** skill
u32 skillCount
BattleStats battleStats
EnemyProfile enemyProfile
Public Attributes inherited from BattleParticipant
std::string name
s32 maxHp
s32 hp
s32 maxSp
s32 sp
u32 lv
Skill * baseAttackAction
ParticipantType participantType
Armour armour
Shoe shoe
ae::q20_12_t currentTurnOrderAgility
bool oneMore = false
bool knockedDown = false

Private Attributes

MathManager & math = MathManager::getInstance()

Detailed Description

Definition at line 8 of file Enemy.hpp.

Constructor & Destructor Documentation

◆ Enemy()

Enemy::Enemy ( const EnemyProfile & iEnemyProfile)

Definition at line 7 of file Enemy.cpp.

◆ ~Enemy()

virtual Enemy::~Enemy ( )
virtualdefault

Member Function Documentation

◆ calculateBaseDamage()

ae::q20_12_t Enemy::calculateBaseDamage ( BattleParticipant & defender,
Skill & skill )
overridevirtual

Implements BattleParticipant.

Definition at line 125 of file Enemy.cpp.

Here is the call graph for this function:

◆ getBattleStats()

BattleStats * Enemy::getBattleStats ( )
inlineoverridevirtual

Implements BattleParticipant.

Definition at line 22 of file Enemy.hpp.

◆ getInitalTurnPhase()

BattlePhase Enemy::getInitalTurnPhase ( )
overridevirtual

Implements BattleParticipant.

Definition at line 164 of file Enemy.cpp.

◆ getTeamMultiplier()

ae::q20_12_t Enemy::getTeamMultiplier ( )
overridevirtual

Implements BattleParticipant.

Definition at line 159 of file Enemy.cpp.

◆ onDead()

void Enemy::onDead ( Event::BattleResult & battleResult)
overridevirtual

Implements BattleParticipant.

Definition at line 169 of file Enemy.cpp.

◆ pickSkill()

Skill * Enemy::pickSkill ( )

Definition at line 28 of file Enemy.cpp.

Here is the caller graph for this function:

◆ pickTarget()

BattleParticipant * Enemy::pickTarget ( etl::vector< BattleParticipant *, 13 > & partyMembers)

Definition at line 34 of file Enemy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resolve()

TurnResult Enemy::resolve ( BattleParticipant * target,
Skill * skill )

Definition at line 66 of file Enemy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCurrentTurnOrderAgility()

void Enemy::setCurrentTurnOrderAgility ( ae::q20_12_t boost)
virtual

Implements BattleParticipant.

Definition at line 173 of file Enemy.cpp.

Member Data Documentation

◆ battleStats

BattleStats Enemy::battleStats

Definition at line 12 of file Enemy.hpp.

◆ enemyProfile

EnemyProfile Enemy::enemyProfile

Definition at line 14 of file Enemy.hpp.

◆ math

MathManager& Enemy::math = MathManager::getInstance()
private

Definition at line 36 of file Enemy.hpp.

◆ skill

Skill** Enemy::skill

Definition at line 10 of file Enemy.hpp.

◆ skillCount

u32 Enemy::skillCount

Definition at line 11 of file Enemy.hpp.


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