Fawkes API
Fawkes Development Version
|
SetTeamColorMessage Fawkes BlackBoard Interface Message. More...
#include <>>
Classes | |
struct | SetTeamColorMessage_data_t |
Internal data storage, do NOT modify! More... | |
Public Member Functions | |
SetTeamColorMessage (const if_gamestate_team_t ini_our_team) | |
Constructor with initial values. | |
SetTeamColorMessage () | |
Constructor. | |
~SetTeamColorMessage () | |
Destructor. | |
SetTeamColorMessage (const SetTeamColorMessage *m) | |
Copy constructor. | |
if_gamestate_team_t | our_team () const |
Get our_team value. | |
void | set_our_team (const if_gamestate_team_t new_our_team) |
Set our_team value. | |
size_t | maxlenof_our_team () const |
Get maximum length of our_team value. | |
virtual Message * | clone () const |
Clone this message. |
fawkes::GameStateInterface::SetTeamColorMessage::SetTeamColorMessage | ( | const if_gamestate_team_t | ini_our_team | ) |
Constructor with initial values.
ini_our_team | initial value for our_team |
Definition at line 501 of file GameStateInterface.cpp.
References fawkes::Message::data_size, fawkes::Message::data_ptr, fawkes::Message::data_ts, fawkes::GameStateInterface::SetTeamColorMessage::SetTeamColorMessage_data_t::our_team, fawkes::Message::add_fieldinfo(), and fawkes::IFT_ENUM.
fawkes::GameStateInterface::SetTeamColorMessage::SetTeamColorMessage | ( | ) |
Constructor.
Definition at line 512 of file GameStateInterface.cpp.
References fawkes::Message::data_size, fawkes::Message::data_ptr, fawkes::Message::data_ts, fawkes::Message::add_fieldinfo(), fawkes::IFT_ENUM, and fawkes::GameStateInterface::SetTeamColorMessage::SetTeamColorMessage_data_t::our_team.
fawkes::GameStateInterface::SetTeamColorMessage::~SetTeamColorMessage | ( | ) |
Destructor.
Definition at line 523 of file GameStateInterface.cpp.
References fawkes::Interface::data_ptr.
fawkes::GameStateInterface::SetTeamColorMessage::SetTeamColorMessage | ( | const SetTeamColorMessage * | m | ) |
Copy constructor.
m | message to copy from |
Definition at line 531 of file GameStateInterface.cpp.
References fawkes::Message::data_size, fawkes::Message::data_ptr, and fawkes::Message::data_ts.
Message * fawkes::GameStateInterface::SetTeamColorMessage::clone | ( | ) | const [virtual] |
Clone this message.
Produces a message of the same type as this message and copies the data to the new message.
Reimplemented from fawkes::Message.
Definition at line 577 of file GameStateInterface.cpp.
size_t fawkes::GameStateInterface::SetTeamColorMessage::maxlenof_our_team | ( | ) | const |
Get maximum length of our_team value.
Definition at line 556 of file GameStateInterface.cpp.
GameStateInterface::if_gamestate_team_t fawkes::GameStateInterface::SetTeamColorMessage::our_team | ( | ) | const |
Get our_team value.
Our team color
Definition at line 546 of file GameStateInterface.cpp.
References fawkes::GameStateInterface::GameStateInterface_data_t::our_team.
Referenced by RefBoxCommThread::loop().
void fawkes::GameStateInterface::SetTeamColorMessage::set_our_team | ( | const if_gamestate_team_t | new_our_team | ) |
Set our_team value.
Our team color
new_our_team | new our_team value |
Definition at line 566 of file GameStateInterface.cpp.
References fawkes::GameStateInterface::GameStateInterface_data_t::our_team.