クラス rcsc::TeamGraphic

team graphic data management class [詳細]

#include <team_graphic.h>

すべてのメンバ一覧

Public 型

typedef boost::shared_ptr<
XpmTile
Ptr
 XpmTile pointer
typedef std::pair< int, int > Index
 xpm tile index
typedef std::map< Index, PtrMap
 xpm tile map

Public メソッド

 TeamGraphic ()
 initialize member variables with illegal values.
void clear ()
 erase all data
int width () const
 geth the total width of this team graphic
int height () const
 geth the total height of this team graphic
const std::vector< boost::shared_ptr<
std::string > > & 
colors () const
 get the xpm color data strings
const Maptiles () const
 get the tiled xpm data
bool createXpmTiles (const char *const *xpm_data)
 create tiled xpm from the raw xpm data
bool parse (const char *server_msg)
 analyze team_graphic_? message from rcssserver & add new xpm tile
std::ostream & print (std::ostream &os) const
 output all tiled xpm data

Static Public 変数

static const int MAX_WIDTH
 max pixel width of the team graphic
static const int MAX_HEIGHT
 max pixel height of the team graphic
static const int TILE_SIZE
 tile size unit
static const int MAX_COLOR
 max colors

構成

class  XpmTile
 8x8 pixels xpm data contained by the TeamGraphic [詳細]


説明

team graphic data management class


関数

int rcsc::TeamGraphic::width (  )  const [inline]

geth the total width of this team graphic

戻り値:
pixel width value

int rcsc::TeamGraphic::height (  )  const [inline]

geth the total height of this team graphic

戻り値:
pixel height value

const std::vector< boost::shared_ptr< std::string > >& rcsc::TeamGraphic::colors (  )  const [inline]

get the xpm color data strings

戻り値:
color strings container

const Map& rcsc::TeamGraphic::tiles (  )  const [inline]

get the tiled xpm data

戻り値:
tiled xpm data map container

bool rcsc::TeamGraphic::createXpmTiles ( const char *const *  xpm_data  ) 

create tiled xpm from the raw xpm data

引数:
xpm_data raw xpm string array
戻り値:
true if successfully parsed

bool rcsc::TeamGraphic::parse ( const char *  server_msg  ) 

analyze team_graphic_? message from rcssserver & add new xpm tile

引数:
server_msg raw server message
戻り値:
true if successfully analyzed

std::ostream & rcsc::TeamGraphic::print ( std::ostream &  os  )  const

output all tiled xpm data

引数:
os reference to the output stream
戻り値:
reference to the output stream


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:25 2008に生成されました。  doxygen 1.5.0