クラス rcsc::PlayerTypeSet

PlayerType parameter holder [詳細]

#include <player_type.h>

すべてのメンバ一覧

Public 型

typedef std::map< int, PlayerTypePlayerTypeMap
 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 &param)
 add new player type parameter
const PlayerTypeMapplayerTypeMap () const
 get player type map
const PlayerTypedummyType () const
 get dummy type parameter
const PlayerTypeget (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 PlayerTypeSetinstance ()
 singleton interface. get player type set instance
static const PlayerTypeSeti ()
 singleton interface. get player type set instance


説明

PlayerType parameter holder


関数

PlayerTypeSet & rcsc::PlayerTypeSet::instance (  )  [static]

singleton interface. get player type set instance

戻り値:
reference to the player type set instance

static const PlayerTypeSet& rcsc::PlayerTypeSet::i (  )  [inline, static]

singleton interface. get player type set instance

戻り値:
const reference to the 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 reference to the player type map object

const PlayerType& rcsc::PlayerTypeSet::dummyType (  )  const [inline]

get dummy type parameter

戻り値:
const reference to the dummy player type paramaeter

const PlayerType * rcsc::PlayerTypeSet::get ( const int  id  )  const

get player type parameter that Id is id

引数:
id wanted player type Id
戻り値:
const pointer to the player type parameter object

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

put parameters to the output stream

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


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