persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
BattleParticipant.hpp
Go to the documentation of this file.
1#pragma once
2#include "BattlePhase.hpp"
3#include "BattleStats.hpp"
4#include "ParticipantType.hpp"
5#include "armours/Armour.hpp"
8#include "shoes/Shoe.hpp"
9#include "skills/Skill.hpp"
10#include <aegis/ndsTypes.hpp>
11#include <nds.h>
12#include <vector>
13
30{
31 std::string name;
32 s32 maxHp;
33 s32 hp;
34 s32 maxSp;
35 s32 sp;
36 u32 lv;
37 // TODO: dont think so that all bosses have a basattack, possibly move in the future
40
41 //Enemies have default values
44
46 bool oneMore = false;
47 bool knockedDown = false;
48
50 virtual ae::q20_12_t calculateBaseDamage(BattleParticipant& defender, Skill& skill) = 0;
51 virtual ae::q20_12_t getTeamMultiplier() = 0;
52 virtual void setCurrentTurnOrderAgility(ae::q20_12_t boost) = 0;
54 virtual void onDead(Event::BattleResult& battleResult) = 0;
55
56 virtual ~BattleParticipant() = default;
57};
Events for BattleSystem.
BattlePhase
ParticipantType
Participant of battle.
ae::q20_12_t currentTurnOrderAgility
ParticipantType participantType
virtual ~BattleParticipant()=default
virtual ae::q20_12_t getTeamMultiplier()=0
virtual BattleStats * getBattleStats()=0
virtual void setCurrentTurnOrderAgility(ae::q20_12_t boost)=0
virtual ae::q20_12_t calculateBaseDamage(BattleParticipant &defender, Skill &skill)=0
virtual BattlePhase getInitalTurnPhase()=0
virtual void onDead(Event::BattleResult &battleResult)=0
Basic stats / affinities. Used by Personas or directly by Enemies.
Holds data on how the battle concluded.
Definition Shoe.hpp:8