persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
Player.cpp
Go to the documentation of this file.
1
#include "
Player.hpp
"
2
3
bool
Player::actorCanUse
(
ActionBase
* action)
4
{
5
return
true
;
6
}
7
8
void
Player::onDead
(
Event::BattleResult
& battleResult)
9
{
10
if
(
hp
> 0)
11
return
;
12
13
battleResult.
playerDied
=
true
;
14
}
Player.hpp
ActionBase
Definition
ActionBase.hpp:13
BattleParticipant::hp
s32 hp
Definition
BattleParticipant.hpp:33
Event::BattleResult
Holds data on how the battle concluded.
Definition
BattleEvents.hpp:70
Event::BattleResult::playerDied
bool playerDied
A flag to check if the player died in battle.
Definition
BattleEvents.hpp:72
Player::onDead
void onDead(Event::BattleResult &battleResult) override
Definition
Player.cpp:8
Player::actorCanUse
bool actorCanUse(ActionBase *action) override
Definition
Player.cpp:3
source
battleActions
party
Player.cpp
Generated by
1.15.0