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

Event payload to start the BattleSystem. More...

#include <BattleEvents.hpp>

Inheritance diagram for Event::ExecuteBattle:
Collaboration diagram for Event::ExecuteBattle:

Public Member Functions

 ExecuteBattle (CharacterProfile &iPlayer, etl::vector< CharacterProfile, 4 > &iCharacterProfiles, etl::vector< EnemyProfile, 8 > &iEnemyProfiles, BattleStartCondition iBattleStartCondition)
 Constructs the ExecuteBattle event.

Public Attributes

CharacterProfile & player
 The main player character. We need to specifically know them for some things all the time.
etl::vector< CharacterProfile, 4 > & characterProfiles
 All party members currently on the field.
etl::vector< EnemyProfile, 8 > & enemyProfiles
 All enemies currently on the field.
BattleStartCondition battleStartCondition
 Condition like player advantage, enemy advantage, or even. Used to decide turn order.

Detailed Description

Event payload to start the BattleSystem.

Called before every new battle. Takes in profiles of BattleParticipants so the battle can create and manage participants itself.

Proceeding this event, the system sets music, initializes variables, and performs various cleanup. Finally, turn order is calculated with the battleStartCondition and the battle gets started.

Definition at line 31 of file BattleEvents.hpp.

Constructor & Destructor Documentation

◆ ExecuteBattle()

Event::ExecuteBattle::ExecuteBattle ( CharacterProfile & iPlayer,
etl::vector< CharacterProfile, 4 > & iCharacterProfiles,
etl::vector< EnemyProfile, 8 > & iEnemyProfiles,
BattleStartCondition iBattleStartCondition )
inline

Constructs the ExecuteBattle event.

Parameters
iPlayerThe main player profile.
iCharacterProfilesList of all player profiles in the party.
iEnemyProfilesList of all enemy profiles in the encounter.
iBattleStartConditionThe advantage state for the encounter.

Definition at line 53 of file BattleEvents.hpp.

Member Data Documentation

◆ battleStartCondition

BattleStartCondition Event::ExecuteBattle::battleStartCondition

Condition like player advantage, enemy advantage, or even. Used to decide turn order.

Definition at line 43 of file BattleEvents.hpp.

◆ characterProfiles

etl::vector<CharacterProfile, 4>& Event::ExecuteBattle::characterProfiles

All party members currently on the field.

Definition at line 37 of file BattleEvents.hpp.

◆ enemyProfiles

etl::vector<EnemyProfile, 8>& Event::ExecuteBattle::enemyProfiles

All enemies currently on the field.

Definition at line 40 of file BattleEvents.hpp.

◆ player

CharacterProfile& Event::ExecuteBattle::player

The main player character. We need to specifically know them for some things all the time.

Definition at line 34 of file BattleEvents.hpp.


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