クラス rcsc::ViewWidth

view width data class [詳細]

#include <view_mode.h>

すべてのメンバ一覧

Public 型

enum  Type {
  INIT, BYE, CHECK_BALL, LOOK,
  TEAM_NAMES, EYE, CHANGE_PLAYER_TYPE, CHANGE_PLAYER_TYPES,
  SAY, TEAM_GRAPHIC, COMPRESSION, DONE,
  ILLEGAL, BeforeKickOff, TimeOver, PlayOn,
  KickOff_, KickIn_, FreeKick_, CornerKick_,
  GoalKick_, AfterGoal_, OffSide_, PenaltyKick_,
  FirstHalfOver, Pause, Human, FoulCharge_,
  FoulPush_, FoulMultipleAttacker_, FoulBallOut_, BackPass_,
  FreeKickFault_, CatchFault_, IndFreeKick_, PenaltySetup_,
  PenaltyReady_, PenaltyTaken_, PenaltyMiss_, PenaltyScore_,
  PenaltyOnfield_, PenaltyFoul_, GoalieCatch_, ExtendHalf,
  MODE_MAX, INIT, BYE, START,
  FOUL, PLAYER, DISCARD, COMPRESSION,
  ILLEGAL, INIT, RECONNECT, BYE,
  MOVE, DASH, TURN, KICK,
  CATCH, TACKLE, TURN_NECK, CHANGE_VIEW,
  SAY, POINTTO, ATTENTIONTO, CLANG,
  EAR, SENSE_BODY, SCORE, COMPRESSION,
  DONE, ILLEGAL, NARROW, NORMAL,
  WIDE, ILLEGAL, HIGH, LOW,
  ILLEGAL, INIT, CHECK_BALL, LOOK,
  TEAM_NAMES, EAR, EYE, START,
  CHANGE_MODE, MOVE, RECOVER, CHANGE_PLAYER_TYPE,
  SAY, COMPRESSION, DONE, ILLEGAL
}
 types of view width [詳細]

Public メソッド

 ViewWidth ()
 init by NORMAL
 ViewWidth (const ViewWidth::Type t)
 construct with 't'. NO explicit
ViewWidthoperator= (const ViewWidth::Type t)
 substituion operator by type Id
 operator ViewWidth::Type () const
 type operator
ViewWidth::Type type () const
 get type Id
bool operator== (const ViewWidth &w) const
 compare operator.
bool operator== (const ViewWidth::Type t) const
 compare operator.
bool operator!= (const ViewWidth &w) const
 compare operator.
bool operator!= (const ViewWidth::Type t) const
 compare operator.
const ViewWidthoperator++ ()
 increase view width type
const ViewWidth operator++ (int)
 increase view width type
const ViewWidthoperator-- ()
 decrease view width type
const ViewWidth operator-- (int)
 increase view width type
double width () const
 get degree value depending on the current type and server param
std::string str () const
 get width type name

Static Public メソッド

static double width (const ViewWidth::Type type)
 get degree value depending on the current type and server param
static ViewWidth::Type parse (const char *msg)
 static method. get the type described by string


説明

view width data class


列挙型

enum rcsc::ViewWidth::Type

types of view width

列挙型の値:
INIT  server connection command
RECONNECT  server reconnection command
BYE  server disconnection command
INIT  connection command


コンストラクタとデストラクタ

rcsc::ViewWidth::ViewWidth ( const ViewWidth::Type  t  )  [inline]

construct with 't'. NO explicit

引数:
t type Id


関数

ViewWidth& rcsc::ViewWidth::operator= ( const ViewWidth::Type  t  )  [inline]

substituion operator by type Id

引数:
t type Id
戻り値:
reference to itself

rcsc::ViewWidth::operator ViewWidth::Type (  )  const [inline]

type operator

戻り値:
type Id

ViewWidth::Type rcsc::ViewWidth::type (  )  const [inline]

get type Id

戻り値:
type Id

bool rcsc::ViewWidth::operator== ( const ViewWidth w  )  const [inline]

compare operator.

引数:
w value to be compared
戻り値:
compared result
This operator should declare and defined at the global scope...

bool rcsc::ViewWidth::operator== ( const ViewWidth::Type  t  )  const [inline]

compare operator.

引数:
t type Id to be compared
戻り値:
compared result

bool rcsc::ViewWidth::operator!= ( const ViewWidth w  )  const [inline]

compare operator.

引数:
w value to be compared
戻り値:
compared result
This operator should declare and defined at the global scope...

bool rcsc::ViewWidth::operator!= ( const ViewWidth::Type  t  )  const [inline]

compare operator.

引数:
t type Id to be compared
戻り値:
compared result

const ViewWidth & rcsc::ViewWidth::operator++ (  ) 

increase view width type

戻り値:
const reference to this object

const ViewWidth rcsc::ViewWidth::operator++ ( int   ) 

increase view width type

戻り値:
old value

const ViewWidth & rcsc::ViewWidth::operator-- (  ) 

decrease view width type

戻り値:
const reference to this object

const ViewWidth rcsc::ViewWidth::operator-- ( int   ) 

increase view width type

戻り値:
old value

double rcsc::ViewWidth::width (  )  const [inline]

get degree value depending on the current type and server param

戻り値:
degree value

std::string rcsc::ViewWidth::str (  )  const

get width type name

戻り値:
the name string of width type

double rcsc::ViewWidth::width ( const ViewWidth::Type  type  )  [static]

get degree value depending on the current type and server param

引数:
type view width type
戻り値:
degree value

ViewWidth::Type rcsc::ViewWidth::parse ( const char *  msg  )  [static]

static method. get the type described by string

引数:
msg string to be analyzed
戻り値:
type Id


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