Classes | Public Member Functions

fawkes::GameStateInterface::SetStateTeamMessage Class Reference

SetStateTeamMessage Fawkes BlackBoard Interface Message. More...

#include <>>

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

List of all members.

Classes

struct  SetStateTeamMessage_data_t
 Internal data storage, do NOT modify!

Public Member Functions

 SetStateTeamMessage (const if_gamestate_team_t ini_state_team)
 Constructor with initial values.
 SetStateTeamMessage ()
 Constructor.
 ~SetStateTeamMessage ()
 Destructor.
 SetStateTeamMessage (const SetStateTeamMessage *m)
 Copy constructor.
if_gamestate_team_t state_team () const
 Get state_team value.
void set_state_team (const if_gamestate_team_t new_state_team)
 Set state_team value.
size_t maxlenof_state_team () const
 Get maximum length of state_team value.
virtual Messageclone () const
 Clone this message.

Detailed Description

SetStateTeamMessage Fawkes BlackBoard Interface Message.

Definition at line 177 of file GameStateInterface.h.


Constructor & Destructor Documentation

fawkes::GameStateInterface::SetStateTeamMessage::SetStateTeamMessage ( const if_gamestate_team_t  ini_state_team  ) 

Constructor with initial values.

Parameters:
ini_state_team initial value for state_team

Definition at line 681 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::SetStateTeamMessage::SetStateTeamMessage (  ) 
fawkes::GameStateInterface::SetStateTeamMessage::~SetStateTeamMessage (  ) 

Destructor.

Definition at line 703 of file GameStateInterface.cpp.

References fawkes::Message::data_ptr.

fawkes::GameStateInterface::SetStateTeamMessage::SetStateTeamMessage ( const SetStateTeamMessage m  ) 

Copy constructor.

Parameters:
m message to copy from

Definition at line 711 of file GameStateInterface.cpp.

References fawkes::Message::data_ptr, fawkes::Message::data_size, and fawkes::Message::data_ts.


Member Function Documentation

Message * fawkes::GameStateInterface::SetStateTeamMessage::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 757 of file GameStateInterface.cpp.

References SetStateTeamMessage().

size_t fawkes::GameStateInterface::SetStateTeamMessage::maxlenof_state_team (  )  const

Get maximum length of state_team value.

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

Definition at line 736 of file GameStateInterface.cpp.

void fawkes::GameStateInterface::SetStateTeamMessage::set_state_team ( const if_gamestate_team_t  new_state_team  ) 

Set state_team value.

Team referred to by game state

Parameters:
new_state_team new state_team value

Definition at line 746 of file GameStateInterface.cpp.

GameStateInterface::if_gamestate_team_t fawkes::GameStateInterface::SetStateTeamMessage::state_team (  )  const

Get state_team value.

Team referred to by game state

Returns:
state_team value

Definition at line 726 of file GameStateInterface.cpp.

Referenced by RefBoxCommThread::loop().


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