32#ifndef RCSC_COMMON_ROLE_TYPE_H
33#define RCSC_COMMON_ROLE_TYPE_H
151 bool isLeft()
const {
return M_side == Left; }
157 bool isRight()
const {
return M_side == Right; }
player's role type information class
Definition: role_type.h:43
bool isDefender() const
check if defender type or not
Definition: role_type.h:127
void setSide(Side s)
set the side type
Definition: role_type.h:103
static std::string to_string(const Side s)
create a string value corresponding to the given side type
Type type() const
get the role type
Definition: role_type.h:109
RoleType()
default constructor
Definition: role_type.h:77
Side
position type (y position)
Definition: role_type.h:61
bool isCenter() const
check if center type or not
Definition: role_type.h:145
bool isForward() const
check if forward type or not
Definition: role_type.h:139
bool isRight() const
check if right type or not
Definition: role_type.h:157
RoleType(const Type t, const Side s)
create with given values
Definition: role_type.h:87
Side side() const
get the side type
Definition: role_type.h:115
bool isGoalie() const
check if goalie type or not
Definition: role_type.h:121
bool isMidFielder() const
check if midfielder type or not
Definition: role_type.h:133
static Side to_side(const std::string &str)
create a side type value from the given string.
Type
role type
Definition: role_type.h:49
bool isLeft() const
check if left type or not
Definition: role_type.h:151
static std::string to_string(const Type t)
create a string value corresponding to the given role type
void setType(Type t)
set the role type
Definition: role_type.h:97
static Type to_type(const std::string &str)
create a role type value from the given string.