1 #ifndef GAME_BATTLES_COMMANDS_COMMAND_HPP
2 #define GAME_BATTLES_COMMANDS_COMMAND_HPP
98 std::variant<Empty, cmd::Message, cmd::Animation, bool> data;
Core classes and functionality for both the editor and game.
Represents a type of animation that can be played in battle.
Emitted by the BattleFSM. All UI is handled via a queue of commands. Commands are resolved in the ord...
bool forHost() const
Returns whether or not this command is for the active battler.
const cmd::Message & getMessage() const
Returns the message if this command is a message.
Type
The type the command is.
Type getType() const
Returns the type of this command.
Command(Type type)
Creates a new command of the given type with no data.
const cmd::Animation & getAnimation() const
Returns the animation if this command is an animation.
Represents a message to be displayed. The actual message text is generated by the battle controller.