#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, Ptr > | Map |
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 Map & | tiles () 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 [詳細] |
int rcsc::TeamGraphic::width | ( | ) | const [inline] |
geth the total width of this team graphic
int rcsc::TeamGraphic::height | ( | ) | const [inline] |
geth the total height of this team graphic
const std::vector< boost::shared_ptr< std::string > >& rcsc::TeamGraphic::colors | ( | ) | const [inline] |
get the xpm color data strings
const Map& rcsc::TeamGraphic::tiles | ( | ) | const [inline] |
get the tiled xpm data
bool rcsc::TeamGraphic::createXpmTiles | ( | const char *const * | xpm_data | ) |
create tiled xpm from the raw xpm data
xpm_data | raw xpm string array |
bool rcsc::TeamGraphic::parse | ( | const char * | server_msg | ) |
analyze team_graphic_? message from rcssserver & add new xpm tile
server_msg | raw server message |
std::ostream & rcsc::TeamGraphic::print | ( | std::ostream & | os | ) | const |
output all tiled xpm data
os | reference to the output stream |