persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
BattleEvents.hpp
Go to the documentation of this file.
1
7
8#pragma once
9
10#include "types/aeTypes.hpp"
11
15
16#include <aegis/system.hpp>
17#include <etl/vector.h>
18
19namespace Event
20{
31struct ExecuteBattle : public etl::message<EventID::ExecuteBattle>
32{
35
37 etl::vector<CharacterProfile, 4>& characterProfiles;
38
40 etl::vector<EnemyProfile, 8>& enemyProfiles;
41
44
54 etl::vector<CharacterProfile, 4>& iCharacterProfiles,
55 etl::vector<EnemyProfile, 8>& iEnemyProfiles,
56 BattleStartCondition iBattleStartCondition)
57 : player(iPlayer), characterProfiles(iCharacterProfiles), enemyProfiles(iEnemyProfiles),
58 battleStartCondition(iBattleStartCondition)
59 {
60 }
61};
62
69struct BattleResult : public etl::message<EventID::BattleResult>
70{
72 bool playerDied = false;
73};
74} // namespace Event
BattleStartCondition
Describes how the Battle was started eg. PartyAdvantage if Player surprised the enemy.
Holds character data which a battleParticipant is created from.
Holds data on how the battle concluded.
bool playerDied
A flag to check if the player died in battle.
etl::vector< CharacterProfile, 4 > & characterProfiles
All party members currently on the field.
CharacterProfile & player
The main player character. We need to specifically know them for some things all the time.
BattleStartCondition battleStartCondition
Condition like player advantage, enemy advantage, or even. Used to decide turn order.
ExecuteBattle(CharacterProfile &iPlayer, etl::vector< CharacterProfile, 4 > &iCharacterProfiles, etl::vector< EnemyProfile, 8 > &iEnemyProfiles, BattleStartCondition iBattleStartCondition)
Constructs the ExecuteBattle event.
etl::vector< EnemyProfile, 8 > & enemyProfiles
All enemies currently on the field.