#include <player_type.h>
Public 型 | |
typedef std::map< int, PlayerType > | PlayerTypeMap |
typedef of the player type contaier. key: id, value: player type | |
Public メソッド | |
~PlayerTypeSet () | |
destcut members | |
void | resetDefaultType (const ServerParam &sparam) |
regenerate default player type parameter using server param | |
void | insert (const PlayerType ¶m) |
add new player type parameter | |
const PlayerTypeMap & | playerTypeMap () const |
get player type map | |
const PlayerType & | dummyType () const |
get dummy type parameter | |
const PlayerType * | get (const int id) const |
get player type parameter that Id is id | |
std::ostream & | print (std::ostream &os) const |
put parameters to the output stream | |
Static Public メソッド | |
static PlayerTypeSet & | instance () |
singleton interface. get player type set instance | |
static const PlayerTypeSet & | i () |
singleton interface. get player type set instance |
PlayerTypeSet & rcsc::PlayerTypeSet::instance | ( | ) | [static] |
singleton interface. get player type set instance
static const PlayerTypeSet& rcsc::PlayerTypeSet::i | ( | ) | [inline, static] |
singleton interface. get player type set instance
void rcsc::PlayerTypeSet::resetDefaultType | ( | const ServerParam & | sparam | ) |
regenerate default player type parameter using server param
sparam | const reference to the server parameter instance |
void rcsc::PlayerTypeSet::insert | ( | const PlayerType & | param | ) |
add new player type parameter
param | const reference to the new parameter object |
const PlayerTypeMap& rcsc::PlayerTypeSet::playerTypeMap | ( | ) | const [inline] |
get player type map
const PlayerType& rcsc::PlayerTypeSet::dummyType | ( | ) | const [inline] |
get dummy type parameter
const PlayerType * rcsc::PlayerTypeSet::get | ( | const int | id | ) | const |
get player type parameter that Id is id
id | wanted player type Id |
std::ostream & rcsc::PlayerTypeSet::print | ( | std::ostream & | os | ) | const |
put parameters to the output stream
os | reference to the output stream |