#include <player_command.h>
rcsc::PlayerEarCommandに対する継承グラフ
Public 型 | |
enum | OnOffType { ON, OFF } |
on/off types | |
enum | SideType { SIDE = -1, SYNMETRY = 1, CENTER = 0, OUR, OPP, NONE, OUR, OPP } |
side types [詳細] | |
enum | ModeType { COMPLETE, PARTIAL, ALL } |
ear mode types that specifies enabled hear message type | |
Public メソッド | |
PlayerEarCommand (const OnOffType onoff, const SideType side) | |
constcust command for all type message | |
PlayerEarCommand (const OnOffType onoff, const SideType side, const ModeType mode) | |
constcust command for specified type message | |
Type | type () const |
get command type | |
std::ostream & | toStr (std::ostream &to) const |
put command string to ostream | |
std::string | name () const |
get command paramter | |
OnOffType | onOff () const |
get ear command parameter | |
SideType | side () const |
get ear command parameter | |
ModeType | mode () const |
get ear command parameter |
Format: <- (ear (<onoff> <side> <mode>)) : change only team (our or opp) <- (ear (<onoff> <mode>)) : change all players (our & opp) <- (ear (<onoff> <side>)) : change team (our or opp) & turn on/off all (complete & partial) <- (ear (<onoff>)) : change all players (our & opp) & turn on/off all (complete & partial)
<onoff> :- on | off <side> :- our | opp | left | l | right | r | TEAMNAME <mode> :- partial | p | complete | c
Response: -> (error no team with name <teanmane>) : case illegal team name
if you do NOT want to hear any opponent message, you should to send next command <- (ear (off opp complete)) : partial mode was set to off by default. or, <- (ear (off opp))
constcust command for all type message
onoff | on/off switch | |
side | side type |
rcsc::PlayerEarCommand::PlayerEarCommand | ( | const OnOffType | onoff, | |
const SideType | side, | |||
const ModeType | mode | |||
) | [inline] |
constcust command for specified type message
onoff | on/off switch | |
side | side type | |
mode | ear mode type |
Type rcsc::PlayerEarCommand::type | ( | ) | const [inline, virtual] |
std::ostream & rcsc::PlayerEarCommand::toStr | ( | std::ostream & | to | ) | const [virtual] |
put command string to ostream
to | reference to the output stream |
rcsc::PlayerSupportCommandを実装しています。
std::string rcsc::PlayerEarCommand::name | ( | ) | const [inline, virtual] |
OnOffType rcsc::PlayerEarCommand::onOff | ( | ) | const [inline] |
get ear command parameter
SideType rcsc::PlayerEarCommand::side | ( | ) | const [inline] |
get ear command parameter
ModeType rcsc::PlayerEarCommand::mode | ( | ) | const [inline] |
get ear command parameter