Peoplemon  0.1.0
Peoplemon 3 game source documentation
Battle.hpp
Go to the documentation of this file.
1 #ifndef CORE_EVENTS_BATTLE_HPP
2 #define CORE_EVENTS_BATTLE_HPP
3 
5 
6 namespace core
7 {
8 namespace event
9 {
17 struct BattleStarted {
19  std::unique_ptr<battle::Battle> battle;
20 
26  BattleStarted(std::unique_ptr<battle::Battle>&& battle)
27  : battle(std::forward<std::unique_ptr<battle::Battle>>(battle)) {}
28 };
29 
44  : type(type)
45  , result(std::forward<battle::Result>(result)) {}
46 
49 
52 };
53 
54 } // namespace event
55 } // namespace core
56 
57 #endif
Core classes and functionality for both the editor and game.
Type
Represents the different types of battles. Affects only the intro.
Definition: Battle.hpp:25
Represents the result of a battle.
Definition: Result.hpp:16
Fired when a battle should start. This does not actually start a battle, but communicates to the curr...
Definition: Battle.hpp:17
std::unique_ptr< battle::Battle > battle
The battle to start.
Definition: Battle.hpp:19
BattleStarted(std::unique_ptr< battle::Battle > &&battle)
Construct a new Battle Started event.
Definition: Battle.hpp:26
Fired when a battle finishes.
Definition: Battle.hpp:36
BattleCompleted(battle::Battle::Type type, battle::Result &&result)
Construct a new Battle Completed event.
Definition: Battle.hpp:43
const battle::Battle::Type type
The type of battle that was completed.
Definition: Battle.hpp:48
const battle::Result result
The result of the battle.
Definition: Battle.hpp:51