32#ifndef RCSC_GAME_MODE_H
33#define RCSC_GAME_MODE_H
74 FoulMultipleAttacker_,
179 typedef std::pair< Type, SideID >
Pair;
217 bool update(
const std::string & mode_str,
234 Pair parse(
const std::string & mode_str );
280 return M_score_right;
349 std::ostream &
print( std::ostream & os )
const;
playmode(referee info) wrapper class
Definition: game_mode.h:50
bool update(const std::string &mode_str, const GameTime ¤t)
analyze playmode string and update internal status
bool isTheirSetPlay(const SideID our_side) const
check if current mode is their setplay
Definition: game_mode.h:323
void setScore(const int score_l, const int score_r)
set scores directly.
PlayMode getServerPlayMode() const
get rcssserver playmode
bool isOurSetPlay(const SideID our_side) const
check if current mode is our setplay
Definition: game_mode.h:313
std::ostream & print(std::ostream &os) const
print current playmode string to stream
bool isTeamsSetPlay(const SideID team_side) const
check if current mode is team's setplay
Type type() const
get current playmode type
Definition: game_mode.h:251
const GameTime & time() const
get last update time
Definition: game_mode.h:242
const char * toCString() const
get playmode string
int scoreLeft() const
get current left score
Definition: game_mode.h:269
bool isPenaltyKickMode() const
check if current playmode is one of penalty kick mode.
std::pair< Type, SideID > Pair
alias of the pair of playmode type and side type
Definition: game_mode.h:179
bool isGameEndMode() const
check if current playmode is game end type.
bool isServerCycleStoppedMode() const
check if current playmode is one of server cycle stopped type.
Type
playmode type Id
Definition: game_mode.h:56
int scoreRight() const
get current right score
Definition: game_mode.h:278
GameMode()
init member variables
GameMode(Type type, SideID side, const GameTime &time, int score_left, int score_right)
init member variables with arguments
SideID side() const
get current playmode side
Definition: game_mode.h:260
game time object
Definition: game_time.h:43
game time depending on RCSSServer2D Header File
the type definition set for the RCSSServer2D
SideID
side type definition
Definition: types.h:47
PlayMode
playmode types defined in rcssserver/src/types.h
Definition: types.h:130