fawkes::GameStateInterface::SetTeamColorMessage Class Reference

SetTeamColorMessage Fawkes BlackBoard Interface Message. More...

#include <interfaces/GameStateInterface.h>

Inheritance diagram for fawkes::GameStateInterface::SetTeamColorMessage:
Inheritance graph
[legend]

List of all members.

Classes

struct  SetTeamColorMessage_data_t
 Internal data storage, do NOT modify!

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

SetTeamColorMessage Fawkes BlackBoard Interface Message.

Definition at line 123 of file GameStateInterface.h.


Constructor & Destructor Documentation

fawkes::GameStateInterface::SetTeamColorMessage::SetTeamColorMessage ( const if_gamestate_team_t  ini_our_team  ) 

Constructor with initial values.

Parameters:
ini_our_team initial value for our_team

Definition at line 501 of file GameStateInterface.cpp.

References fawkes::Message::add_fieldinfo(), fawkes::Message::data_ptr, fawkes::Message::data_size, fawkes::Message::data_ts, and fawkes::IFT_ENUM.

fawkes::GameStateInterface::SetTeamColorMessage::SetTeamColorMessage (  ) 
fawkes::GameStateInterface::SetTeamColorMessage::~SetTeamColorMessage (  ) 

Destructor.

Definition at line 523 of file GameStateInterface.cpp.

References fawkes::Message::data_ptr.

fawkes::GameStateInterface::SetTeamColorMessage::SetTeamColorMessage ( const SetTeamColorMessage m  ) 

Copy constructor.

Parameters:
m message to copy from

Definition at line 531 of file GameStateInterface.cpp.

References fawkes::Message::data_ptr, fawkes::Message::data_size, 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.

References SetTeamColorMessage().

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.

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_team new our_team value

Definition at line 566 of file GameStateInterface.cpp.


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

Generated on 1 Mar 2011 for Fawkes API by  doxygen 1.6.1