persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
BattleParticipant Struct Referenceabstract

Participant of battle. More...

#include <BattleParticipant.hpp>

Inheritance diagram for BattleParticipant:
Collaboration diagram for BattleParticipant:

Public Member Functions

virtual BattleStats * getBattleStats ()=0
virtual ae::q20_12_t calculateBaseDamage (BattleParticipant &defender, Skill &skill)=0
virtual ae::q20_12_t getTeamMultiplier ()=0
virtual void setCurrentTurnOrderAgility (ae::q20_12_t boost)=0
virtual BattlePhase getInitalTurnPhase ()=0
virtual void onDead (Event::BattleResult &battleResult)=0
virtual ~BattleParticipant ()=default

Public Attributes

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

Detailed Description

Participant of battle.

can be an enemy, partyMember or player.

Parent of PartyMember.cpp (which is the Player's parent) and Enemy.cpp since a lot of things are shared between them, and even for some things where you might not expect it like enemies have values for Armour with an actuall usecase. Otherwise the goal is to really on virtual functions to generalize the code as much as possible to make it scalable.

Author
Nolan Kolb (TrueGiles / themoonwalker8692)

Definition at line 29 of file BattleParticipant.hpp.

Constructor & Destructor Documentation

◆ ~BattleParticipant()

virtual BattleParticipant::~BattleParticipant ( )
virtualdefault

Member Function Documentation

◆ calculateBaseDamage()

virtual ae::q20_12_t BattleParticipant::calculateBaseDamage ( BattleParticipant & defender,
Skill & skill )
pure virtual

Implemented in Enemy, and PartyMember.

Here is the caller graph for this function:

◆ getBattleStats()

virtual BattleStats * BattleParticipant::getBattleStats ( )
pure virtual

Implemented in Enemy, and PartyMember.

Here is the caller graph for this function:

◆ getInitalTurnPhase()

virtual BattlePhase BattleParticipant::getInitalTurnPhase ( )
pure virtual

Implemented in Enemy, and PartyMember.

◆ getTeamMultiplier()

virtual ae::q20_12_t BattleParticipant::getTeamMultiplier ( )
pure virtual

Implemented in Enemy, and PartyMember.

Here is the caller graph for this function:

◆ onDead()

virtual void BattleParticipant::onDead ( Event::BattleResult & battleResult)
pure virtual

Implemented in Enemy, PartyMember, and Player.

Here is the caller graph for this function:

◆ setCurrentTurnOrderAgility()

virtual void BattleParticipant::setCurrentTurnOrderAgility ( ae::q20_12_t boost)
pure virtual

Implemented in Enemy, and PartyMember.

Member Data Documentation

◆ armour

Armour BattleParticipant::armour

Definition at line 42 of file BattleParticipant.hpp.

◆ baseAttackAction

Skill* BattleParticipant::baseAttackAction

Definition at line 38 of file BattleParticipant.hpp.

◆ currentTurnOrderAgility

ae::q20_12_t BattleParticipant::currentTurnOrderAgility

Definition at line 45 of file BattleParticipant.hpp.

◆ hp

s32 BattleParticipant::hp

Definition at line 33 of file BattleParticipant.hpp.

◆ knockedDown

bool BattleParticipant::knockedDown = false

Definition at line 47 of file BattleParticipant.hpp.

◆ lv

u32 BattleParticipant::lv

Definition at line 36 of file BattleParticipant.hpp.

◆ maxHp

s32 BattleParticipant::maxHp

Definition at line 32 of file BattleParticipant.hpp.

◆ maxSp

s32 BattleParticipant::maxSp

Definition at line 34 of file BattleParticipant.hpp.

◆ name

std::string BattleParticipant::name

Definition at line 31 of file BattleParticipant.hpp.

◆ oneMore

bool BattleParticipant::oneMore = false

Definition at line 46 of file BattleParticipant.hpp.

◆ participantType

ParticipantType BattleParticipant::participantType

Definition at line 39 of file BattleParticipant.hpp.

◆ shoe

Shoe BattleParticipant::shoe

Definition at line 43 of file BattleParticipant.hpp.

◆ sp

s32 BattleParticipant::sp

Definition at line 35 of file BattleParticipant.hpp.


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