persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
ActionBase.hpp
Go to the documentation of this file.
1
#pragma once
2
#include "
../ParticipantType.hpp
"
3
#include "
../TurnResult.hpp
"
4
#include <nds.h>
5
#include <string>
6
7
// Forward declarations
8
struct
BattleParticipant
;
9
struct
PartyMember
;
10
struct
Skill
;
11
12
struct
ActionBase
13
{
14
std::string
name
;
15
ParticipantType
possibleUsers
;
16
17
virtual
TurnResult
resolve
(
PartyMember
* user,
BattleParticipant
* target,
Skill
* skill =
nullptr
) = 0;
18
19
virtual
~ActionBase
() =
default
;
20
};
ParticipantType.hpp
ParticipantType
ParticipantType
Definition
ParticipantType.hpp:4
TurnResult.hpp
ActionBase
Definition
ActionBase.hpp:13
ActionBase::name
std::string name
Definition
ActionBase.hpp:14
ActionBase::resolve
virtual TurnResult resolve(PartyMember *user, BattleParticipant *target, Skill *skill=nullptr)=0
ActionBase::~ActionBase
virtual ~ActionBase()=default
ActionBase::possibleUsers
ParticipantType possibleUsers
Definition
ActionBase.hpp:15
BattleParticipant
Participant of battle.
Definition
BattleParticipant.hpp:30
PartyMember
Definition
PartyMember.hpp:14
Skill
Definition
Skill.hpp:10
TurnResult
Result of a singular turn. Note that currently multi target skills do use a seperate turn result for ...
Definition
TurnResult.hpp:14
source
battleActions
actions
ActionBase.hpp
Generated by
1.15.0