Fawkes API  Fawkes Development Version
fawkes::GameStateInterface::SetTeamColorMessage Class Reference

SetTeamColorMessage Fawkes BlackBoard Interface Message. More...

#include <>>

Inheritance diagram for fawkes::GameStateInterface::SetTeamColorMessage:

List of all members.

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 Messageclone () const
 Clone this message.

Detailed Description


Constructor & Destructor Documentation

fawkes::GameStateInterface::SetTeamColorMessage::SetTeamColorMessage ( const if_gamestate_team_t  ini_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.

Parameters:
mmessage 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.


Member Function Documentation

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.

Returns:
clone of this 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.

Returns:
length of our_team value, can be length of the array or number of maximum number of characters for a string

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

Returns:
our_team value

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

Parameters:
new_our_teamnew our_team value

Definition at line 566 of file GameStateInterface.cpp.

References fawkes::GameStateInterface::GameStateInterface_data_t::our_team.


The documentation for this class was generated from the following files: