![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Represents a message to be displayed. The actual message text is generated by the battle controller. More...
#include <Message.hpp>
Public Member Functions | |
Message (Type type) | |
Construct a new Message. More... | |
Message (pplmn::MoveId move, bool forHost) | |
Construct a new Message of the Attack type. More... | |
Message (Type type, pplmn::MoveId oldMove, pplmn::MoveId newMove) | |
Construct a new Message for when moves change. More... | |
Message (Type type, bool forHost) | |
Construct a new Message with an extra boolean value. More... | |
Message (Type type, pplmn::Ailment ailment, bool forHost) | |
Construct a new Message with an ailment. More... | |
Message (Type type, pplmn::PassiveAilment ailment, bool forHost) | |
Construct a new Message with a passive ailment. More... | |
Message (Type type, pplmn::Stat stat, bool forHost) | |
Construct a new Message for stat increases and decreases. More... | |
Message (Type type, std::int16_t ival, bool forHost) | |
Construct a new Message for some integer type. More... | |
Message (Type type, std::uint8_t index, unsigned int ival, bool forHost) | |
Creates a new Message for the given type, index, and int value. Index is for player peoplemon only. Active battler field is used for this purpose. More... | |
Message (Type type, std::uint8_t index, pplmn::MoveId move, bool forHost) | |
Creates a message with an index and a move. More... | |
Message (Type type, pplmn::MoveId move, bool forHost) | |
Creates a message with a move. More... | |
Message (Type type, item::Id item, bool forHost) | |
Construct a new Message for items. More... | |
Message (Type type, std::uint8_t index, item::Id item, bool forHost) | |
Construct a new Message for using an item on a peoplemon. More... | |
Type | getType () const |
Returns the type of message this is. More... | |
pplmn::MoveId | getMoveId () const |
Returns the move id of the message. More... | |
bool | forHostBattler () const |
Returns whether or not this message is for the active battler or not. More... | |
std::uint8_t | forIndex () const |
Returns the peoplemon index the message is for. More... | |
pplmn::Ailment | getAilment () const |
Returns the ailment for this message. More... | |
pplmn::PassiveAilment | getPassiveAilment () const |
Returns the passive ailment for this message. More... | |
pplmn::Stat | getStat () const |
Returns the stat for this message. More... | |
pplmn::MoveId | getOriginalMove () const |
Returns the original move for the message. More... | |
pplmn::MoveId | getNewMove () const |
Returns the new move for the message. More... | |
std::int16_t | getInt () const |
Returns the integer bundled with this message. More... | |
std::uint16_t | getUnsigned () const |
Returns the unsigned int value stored in this message. More... | |
item::Id | getItem () const |
Returns the item for this message. More... | |
Represents a message to be displayed. The actual message text is generated by the battle controller.
Definition at line 26 of file Message.hpp.
|
strong |
The type of message to display.
Definition at line 32 of file Message.hpp.
core::battle::cmd::Message::Message | ( | Type | type | ) |
Construct a new Message.
type | The type of message to display |
Definition at line 11 of file Message.cpp.
core::battle::cmd::Message::Message | ( | pplmn::MoveId | move, |
bool | forHost | ||
) |
Construct a new Message of the Attack type.
move | The move being used |
forHost | True if the message is for the host battler, false for the other |
Definition at line 16 of file Message.cpp.
core::battle::cmd::Message::Message | ( | Type | type, |
pplmn::MoveId | oldMove, | ||
pplmn::MoveId | newMove | ||
) |
Construct a new Message for when moves change.
type | The type of message |
oldMove | The original move |
newMove | The move it turned into |
Definition at line 41 of file Message.cpp.
core::battle::cmd::Message::Message | ( | Type | type, |
bool | forHost | ||
) |
Construct a new Message with an extra boolean value.
type | The type of message to create |
forHost | True if the message is for the host battler, false for the other |
Definition at line 21 of file Message.cpp.
core::battle::cmd::Message::Message | ( | Type | type, |
pplmn::Ailment | ailment, | ||
bool | forHost | ||
) |
Construct a new Message with an ailment.
type | The type of message to create |
ailment | The ailment to create it with |
forHost | True if the message is for the host battler, false for the other |
Definition at line 26 of file Message.cpp.
core::battle::cmd::Message::Message | ( | Type | type, |
pplmn::PassiveAilment | ailment, | ||
bool | forHost | ||
) |
Construct a new Message with a passive ailment.
type | The type of message to create |
ailment | The ailment to create it with |
forHost | True if the message is for the host battler, false for the other |
Definition at line 31 of file Message.cpp.
core::battle::cmd::Message::Message | ( | Type | type, |
pplmn::Stat | stat, | ||
bool | forHost | ||
) |
Construct a new Message for stat increases and decreases.
type | The type of message to create |
stat | The stat the message is for |
forHost | True if the message is for the host battler, false for the other |
Definition at line 36 of file Message.cpp.
core::battle::cmd::Message::Message | ( | Type | type, |
std::int16_t | ival, | ||
bool | forHost | ||
) |
Construct a new Message for some integer type.
type | The type of message |
ival | The integer type to have in the message |
forHost | True if the message is for the host battler, false for the other |
Definition at line 46 of file Message.cpp.
core::battle::cmd::Message::Message | ( | Type | type, |
std::uint8_t | index, | ||
unsigned int | ival, | ||
bool | forHost | ||
) |
Creates a new Message for the given type, index, and int value. Index is for player peoplemon only. Active battler field is used for this purpose.
type | The type of message |
index | The index of the peoplemon it is for |
ival | The integer value to store |
forHost | True if the message is for the host battler, false for the other |
Definition at line 51 of file Message.cpp.
core::battle::cmd::Message::Message | ( | Type | type, |
std::uint8_t | index, | ||
pplmn::MoveId | move, | ||
bool | forHost | ||
) |
Creates a message with an index and a move.
type | The type of message |
index | The index of the player peoplemon |
move | The move for the message |
forHost | True if the message is for the host battler, false for the other |
Definition at line 57 of file Message.cpp.
core::battle::cmd::Message::Message | ( | Type | type, |
pplmn::MoveId | move, | ||
bool | forHost | ||
) |
Creates a message with a move.
type | The type of message |
move | The move for the message |
forHost | True if the message is for the host battler, false for the other |
Definition at line 63 of file Message.cpp.
Construct a new Message for items.
type | The type of message |
item | The item the message is for |
forHost | Whether or not the message is for the active battler |
Definition at line 68 of file Message.cpp.
Construct a new Message for using an item on a peoplemon.
type | The type of message |
index | The index of the peoplemon having the item used on it |
item | The item being used |
forHost | True if the message is for the host battler, false for the other |
Definition at line 73 of file Message.cpp.
bool core::battle::cmd::Message::forHostBattler | ( | ) | const |
Returns whether or not this message is for the active battler or not.
Definition at line 86 of file Message.cpp.
std::uint8_t core::battle::cmd::Message::forIndex | ( | ) | const |
Returns the peoplemon index the message is for.
Definition at line 88 of file Message.cpp.
pplmn::Ailment core::battle::cmd::Message::getAilment | ( | ) | const |
Returns the ailment for this message.
Definition at line 90 of file Message.cpp.
std::int16_t core::battle::cmd::Message::getInt | ( | ) | const |
Returns the integer bundled with this message.
Definition at line 115 of file Message.cpp.
item::Id core::battle::cmd::Message::getItem | ( | ) | const |
Returns the item for this message.
Definition at line 125 of file Message.cpp.
pplmn::MoveId core::battle::cmd::Message::getMoveId | ( | ) | const |
Returns the move id of the message.
Definition at line 81 of file Message.cpp.
pplmn::MoveId core::battle::cmd::Message::getNewMove | ( | ) | const |
Returns the new move for the message.
Definition at line 110 of file Message.cpp.
pplmn::MoveId core::battle::cmd::Message::getOriginalMove | ( | ) | const |
Returns the original move for the message.
Definition at line 105 of file Message.cpp.
pplmn::PassiveAilment core::battle::cmd::Message::getPassiveAilment | ( | ) | const |
Returns the passive ailment for this message.
Definition at line 95 of file Message.cpp.
pplmn::Stat core::battle::cmd::Message::getStat | ( | ) | const |
Returns the stat for this message.
Definition at line 100 of file Message.cpp.
Message::Type core::battle::cmd::Message::getType | ( | ) | const |
Returns the type of message this is.
Definition at line 79 of file Message.cpp.
std::uint16_t core::battle::cmd::Message::getUnsigned | ( | ) | const |
Returns the unsigned int value stored in this message.
Definition at line 120 of file Message.cpp.