1 #ifndef GAME_BATTLES_COMMANDS_MESSAGE_HPP
2 #define GAME_BATTLES_COMMANDS_MESSAGE_HPP
32 enum struct Type : std::uint8_t {
333 Message(
Type type, std::int16_t ival,
bool forHost);
344 Message(
Type type, std::uint8_t index,
unsigned int ival,
bool forHost);
442 std::int16_t
getInt()
const;
461 std::pair<pplmn::MoveId, pplmn::MoveId>, std::int16_t, std::uint16_t,
item::Id>
464 std::uint8_t pplIndex;
Id
Represents an item in its simplist form.
PassiveAilment
Represents a passive ailment a Peoplemon can have.
Stat
Represents a single stat. Used as an offset to access Stats as an array.
Ailment
Represents an ailment that a Peoplemon can have.
Core classes and functionality for both the editor and game.
Represents a message to be displayed. The actual message text is generated by the battle controller.
pplmn::MoveId getMoveId() const
Returns the move id of the message.
Type
The type of message to display.
@ ClassyFrustratedBlocked
@ AilmentSatPassiveAilmentBlocked
@ SubstitutePassiveAilmentBlocked
@ GainedAilmentSnackshare
@ ExperiencedTeachAbility
@ GuardBlockedPassiveAilment
@ SubstituteAilmentBlocked
@ SubstituteAlreadyExists
Message(Type type)
Construct a new Message.
std::uint16_t getUnsigned() const
Returns the unsigned int value stored in this message.
item::Id getItem() const
Returns the item for this message.
pplmn::MoveId getOriginalMove() const
Returns the original move for the message.
std::int16_t getInt() const
Returns the integer bundled with this message.
pplmn::Ailment getAilment() const
Returns the ailment for this message.
pplmn::PassiveAilment getPassiveAilment() const
Returns the passive ailment for this message.
pplmn::Stat getStat() const
Returns the stat for this message.
std::uint8_t forIndex() const
Returns the peoplemon index the message is for.
bool forHostBattler() const
Returns whether or not this message is for the active battler or not.
Type getType() const
Returns the type of message this is.
pplmn::MoveId getNewMove() const
Returns the new move for the message.