refproto

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2018 License: GPL-3.0 Imports: 3 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Game_Event_GameEventType_name = map[int32]string{
	0:  "UNKNOWN",
	1:  "CUSTOM",
	2:  "NUMBER_OF_PLAYERS",
	3:  "BALL_LEFT_FIELD",
	4:  "GOAL",
	5:  "KICK_TIMEOUT",
	6:  "NO_PROGRESS_IN_GAME",
	7:  "BOT_COLLISION",
	8:  "MULTIPLE_DEFENDER",
	9:  "MULTIPLE_DEFENDER_PARTIALLY",
	10: "ATTACKER_IN_DEFENSE_AREA",
	11: "ICING",
	12: "BALL_SPEED",
	13: "ROBOT_STOP_SPEED",
	14: "BALL_DRIBBLING",
	15: "ATTACKER_TOUCH_KEEPER",
	16: "DOUBLE_TOUCH",
	17: "ATTACKER_TO_DEFENCE_AREA",
	18: "DEFENDER_TO_KICK_POINT_DISTANCE",
	19: "BALL_HOLDING",
	20: "INDIRECT_GOAL",
	21: "BALL_PLACEMENT_FAILED",
	22: "CHIP_ON_GOAL",
}
View Source
var Game_Event_GameEventType_value = map[string]int32{
	"UNKNOWN":                         0,
	"CUSTOM":                          1,
	"NUMBER_OF_PLAYERS":               2,
	"BALL_LEFT_FIELD":                 3,
	"GOAL":                            4,
	"KICK_TIMEOUT":                    5,
	"NO_PROGRESS_IN_GAME":             6,
	"BOT_COLLISION":                   7,
	"MULTIPLE_DEFENDER":               8,
	"MULTIPLE_DEFENDER_PARTIALLY":     9,
	"ATTACKER_IN_DEFENSE_AREA":        10,
	"ICING":                           11,
	"BALL_SPEED":                      12,
	"ROBOT_STOP_SPEED":                13,
	"BALL_DRIBBLING":                  14,
	"ATTACKER_TOUCH_KEEPER":           15,
	"DOUBLE_TOUCH":                    16,
	"ATTACKER_TO_DEFENCE_AREA":        17,
	"DEFENDER_TO_KICK_POINT_DISTANCE": 18,
	"BALL_HOLDING":                    19,
	"INDIRECT_GOAL":                   20,
	"BALL_PLACEMENT_FAILED":           21,
	"CHIP_ON_GOAL":                    22,
}
View Source
var Game_Event_Team_name = map[int32]string{
	0: "TEAM_UNKNOWN",
	1: "TEAM_YELLOW",
	2: "TEAM_BLUE",
}
View Source
var Game_Event_Team_value = map[string]int32{
	"TEAM_UNKNOWN": 0,
	"TEAM_YELLOW":  1,
	"TEAM_BLUE":    2,
}
View Source
var Referee_Command_name = map[int32]string{
	0:  "HALT",
	1:  "STOP",
	2:  "NORMAL_START",
	3:  "FORCE_START",
	4:  "PREPARE_KICKOFF_YELLOW",
	5:  "PREPARE_KICKOFF_BLUE",
	6:  "PREPARE_PENALTY_YELLOW",
	7:  "PREPARE_PENALTY_BLUE",
	8:  "DIRECT_FREE_YELLOW",
	9:  "DIRECT_FREE_BLUE",
	10: "INDIRECT_FREE_YELLOW",
	11: "INDIRECT_FREE_BLUE",
	12: "TIMEOUT_YELLOW",
	13: "TIMEOUT_BLUE",
	14: "GOAL_YELLOW",
	15: "GOAL_BLUE",
	16: "BALL_PLACEMENT_YELLOW",
	17: "BALL_PLACEMENT_BLUE",
}
View Source
var Referee_Command_value = map[string]int32{
	"HALT":                   0,
	"STOP":                   1,
	"NORMAL_START":           2,
	"FORCE_START":            3,
	"PREPARE_KICKOFF_YELLOW": 4,
	"PREPARE_KICKOFF_BLUE":   5,
	"PREPARE_PENALTY_YELLOW": 6,
	"PREPARE_PENALTY_BLUE":   7,
	"DIRECT_FREE_YELLOW":     8,
	"DIRECT_FREE_BLUE":       9,
	"INDIRECT_FREE_YELLOW":   10,
	"INDIRECT_FREE_BLUE":     11,
	"TIMEOUT_YELLOW":         12,
	"TIMEOUT_BLUE":           13,
	"GOAL_YELLOW":            14,
	"GOAL_BLUE":              15,
	"BALL_PLACEMENT_YELLOW":  16,
	"BALL_PLACEMENT_BLUE":    17,
}
View Source
var Referee_Stage_name = map[int32]string{
	0:  "NORMAL_FIRST_HALF_PRE",
	1:  "NORMAL_FIRST_HALF",
	2:  "NORMAL_HALF_TIME",
	3:  "NORMAL_SECOND_HALF_PRE",
	4:  "NORMAL_SECOND_HALF",
	5:  "EXTRA_TIME_BREAK",
	6:  "EXTRA_FIRST_HALF_PRE",
	7:  "EXTRA_FIRST_HALF",
	8:  "EXTRA_HALF_TIME",
	9:  "EXTRA_SECOND_HALF_PRE",
	10: "EXTRA_SECOND_HALF",
	11: "PENALTY_SHOOTOUT_BREAK",
	12: "PENALTY_SHOOTOUT",
	13: "POST_GAME",
}
View Source
var Referee_Stage_value = map[string]int32{
	"NORMAL_FIRST_HALF_PRE":  0,
	"NORMAL_FIRST_HALF":      1,
	"NORMAL_HALF_TIME":       2,
	"NORMAL_SECOND_HALF_PRE": 3,
	"NORMAL_SECOND_HALF":     4,
	"EXTRA_TIME_BREAK":       5,
	"EXTRA_FIRST_HALF_PRE":   6,
	"EXTRA_FIRST_HALF":       7,
	"EXTRA_HALF_TIME":        8,
	"EXTRA_SECOND_HALF_PRE":  9,
	"EXTRA_SECOND_HALF":      10,
	"PENALTY_SHOOTOUT_BREAK": 11,
	"PENALTY_SHOOTOUT":       12,
	"POST_GAME":              13,
}

Functions

This section is empty.

Types

type Game_Event

type Game_Event struct {
	// the game event type that happened
	GameEventType *Game_Event_GameEventType `protobuf:"varint,1,req,name=gameEventType,enum=Game_Event_GameEventType" json:"gameEventType,omitempty"`
	// the team and optionally a designated robot that is the originator of the game event
	Originator *Game_Event_Originator `protobuf:"bytes,2,opt,name=originator" json:"originator,omitempty"`
	// a message describing further details of this game event
	Message              *string  `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

a game event that caused a referee command

func (*Game_Event) Descriptor

func (*Game_Event) Descriptor() ([]byte, []int)

func (*Game_Event) GetGameEventType

func (m *Game_Event) GetGameEventType() Game_Event_GameEventType

func (*Game_Event) GetMessage

func (m *Game_Event) GetMessage() string

func (*Game_Event) GetOriginator

func (m *Game_Event) GetOriginator() *Game_Event_Originator

func (*Game_Event) ProtoMessage

func (*Game_Event) ProtoMessage()

func (*Game_Event) Reset

func (m *Game_Event) Reset()

func (*Game_Event) String

func (m *Game_Event) String() string

func (*Game_Event) XXX_DiscardUnknown

func (m *Game_Event) XXX_DiscardUnknown()

func (*Game_Event) XXX_Marshal

func (m *Game_Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Game_Event) XXX_Merge

func (dst *Game_Event) XXX_Merge(src proto.Message)

func (*Game_Event) XXX_Size

func (m *Game_Event) XXX_Size() int

func (*Game_Event) XXX_Unmarshal

func (m *Game_Event) XXX_Unmarshal(b []byte) error

type Game_Event_GameEventType

type Game_Event_GameEventType int32
const (
	// not set
	Game_Event_UNKNOWN Game_Event_GameEventType = 0
	// an event that is not listed in this enum yet.
	// Give further details in the message below
	Game_Event_CUSTOM Game_Event_GameEventType = 1
	// Law 3: Number of players
	Game_Event_NUMBER_OF_PLAYERS Game_Event_GameEventType = 2
	// Law 9: Ball out of play
	Game_Event_BALL_LEFT_FIELD Game_Event_GameEventType = 3
	// Law 10: Team scored a goal
	Game_Event_GOAL Game_Event_GameEventType = 4
	// Law 9.3: lack of progress while bringing the ball into play
	Game_Event_KICK_TIMEOUT Game_Event_GameEventType = 5
	// Law ?: There is no progress in game for (10|15)? seconds
	Game_Event_NO_PROGRESS_IN_GAME Game_Event_GameEventType = 6
	// Law 12: Pushing / Substantial Contact
	Game_Event_BOT_COLLISION Game_Event_GameEventType = 7
	// Law 12.2: Defender is completely inside penalty area
	Game_Event_MULTIPLE_DEFENDER Game_Event_GameEventType = 8
	// Law 12: Defender is partially inside penalty area
	Game_Event_MULTIPLE_DEFENDER_PARTIALLY Game_Event_GameEventType = 9
	// Law 12.3: Attacker in defense area
	Game_Event_ATTACKER_IN_DEFENSE_AREA Game_Event_GameEventType = 10
	// Law 12: Icing (kicking over midline and opponent goal line)
	Game_Event_ICING Game_Event_GameEventType = 11
	// Law 12: Ball speed
	Game_Event_BALL_SPEED Game_Event_GameEventType = 12
	// Law 12: Robot speed during STOP
	Game_Event_ROBOT_STOP_SPEED Game_Event_GameEventType = 13
	// Law 12: Maximum dribbling distance
	Game_Event_BALL_DRIBBLING Game_Event_GameEventType = 14
	// Law 12: Touching the opponent goalkeeper
	Game_Event_ATTACKER_TOUCH_KEEPER Game_Event_GameEventType = 15
	// Law 12: Double touch
	Game_Event_DOUBLE_TOUCH Game_Event_GameEventType = 16
	// Law 13-17: Attacker not too close to the opponent's penalty area when ball enters play
	Game_Event_ATTACKER_TO_DEFENCE_AREA Game_Event_GameEventType = 17
	// Law 13-17: Keeping the correct distance to the ball during opponents freekicks
	Game_Event_DEFENDER_TO_KICK_POINT_DISTANCE Game_Event_GameEventType = 18
	// Law 12: A robot holds the ball deliberately
	Game_Event_BALL_HOLDING Game_Event_GameEventType = 19
	// Law 12: The ball entered the goal directly after an indirect kick was performed
	Game_Event_INDIRECT_GOAL Game_Event_GameEventType = 20
	// Law 9.2: Ball placement
	Game_Event_BALL_PLACEMENT_FAILED Game_Event_GameEventType = 21
	// Law 10: A goal is only scored if the ball has not exceeded a robot height (150mm) between the last
	// kick of an attacker and the time the ball crossed the goal line.
	Game_Event_CHIP_ON_GOAL Game_Event_GameEventType = 22
)

func (Game_Event_GameEventType) Enum

func (Game_Event_GameEventType) EnumDescriptor

func (Game_Event_GameEventType) EnumDescriptor() ([]byte, []int)

func (Game_Event_GameEventType) String

func (x Game_Event_GameEventType) String() string

func (*Game_Event_GameEventType) UnmarshalJSON

func (x *Game_Event_GameEventType) UnmarshalJSON(data []byte) error

type Game_Event_Originator

type Game_Event_Originator struct {
	Team                 *Game_Event_Team `protobuf:"varint,1,req,name=team,enum=Game_Event_Team" json:"team,omitempty"`
	BotId                *uint32          `protobuf:"varint,2,opt,name=botId" json:"botId,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

information about an originator

func (*Game_Event_Originator) Descriptor

func (*Game_Event_Originator) Descriptor() ([]byte, []int)

func (*Game_Event_Originator) GetBotId

func (m *Game_Event_Originator) GetBotId() uint32

func (*Game_Event_Originator) GetTeam

func (*Game_Event_Originator) ProtoMessage

func (*Game_Event_Originator) ProtoMessage()

func (*Game_Event_Originator) Reset

func (m *Game_Event_Originator) Reset()

func (*Game_Event_Originator) String

func (m *Game_Event_Originator) String() string

func (*Game_Event_Originator) XXX_DiscardUnknown

func (m *Game_Event_Originator) XXX_DiscardUnknown()

func (*Game_Event_Originator) XXX_Marshal

func (m *Game_Event_Originator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Game_Event_Originator) XXX_Merge

func (dst *Game_Event_Originator) XXX_Merge(src proto.Message)

func (*Game_Event_Originator) XXX_Size

func (m *Game_Event_Originator) XXX_Size() int

func (*Game_Event_Originator) XXX_Unmarshal

func (m *Game_Event_Originator) XXX_Unmarshal(b []byte) error

type Game_Event_Team

type Game_Event_Team int32

a team

const (
	Game_Event_TEAM_UNKNOWN Game_Event_Team = 0
	Game_Event_TEAM_YELLOW  Game_Event_Team = 1
	Game_Event_TEAM_BLUE    Game_Event_Team = 2
)

func (Game_Event_Team) Enum

func (x Game_Event_Team) Enum() *Game_Event_Team

func (Game_Event_Team) EnumDescriptor

func (Game_Event_Team) EnumDescriptor() ([]byte, []int)

func (Game_Event_Team) String

func (x Game_Event_Team) String() string

func (*Game_Event_Team) UnmarshalJSON

func (x *Game_Event_Team) UnmarshalJSON(data []byte) error

type Referee

type Referee struct {
	// The UNIX timestamp when the packet was sent, in microseconds.
	// Divide by 1,000,000 to get a time_t.
	PacketTimestamp *uint64        `protobuf:"varint,1,req,name=packet_timestamp,json=packetTimestamp" json:"packet_timestamp,omitempty"`
	Stage           *Referee_Stage `protobuf:"varint,2,req,name=stage,enum=Referee_Stage" json:"stage,omitempty"`
	// The number of microseconds left in the stage.
	// The following stages have this value; the rest do not:
	// NORMAL_FIRST_HALF
	// NORMAL_HALF_TIME
	// NORMAL_SECOND_HALF
	// EXTRA_TIME_BREAK
	// EXTRA_FIRST_HALF
	// EXTRA_HALF_TIME
	// EXTRA_SECOND_HALF
	// PENALTY_SHOOTOUT_BREAK
	//
	// If the stage runs over its specified time, this value
	// becomes negative.
	StageTimeLeft *int32           `protobuf:"zigzag32,3,opt,name=stage_time_left,json=stageTimeLeft" json:"stage_time_left,omitempty"`
	Command       *Referee_Command `protobuf:"varint,4,req,name=command,enum=Referee_Command" json:"command,omitempty"`
	// The number of commands issued since startup (mod 2^32).
	CommandCounter *uint32 `protobuf:"varint,5,req,name=command_counter,json=commandCounter" json:"command_counter,omitempty"`
	// The UNIX timestamp when the command was issued, in microseconds.
	// This value changes only when a new command is issued, not on each packet.
	CommandTimestamp *uint64 `protobuf:"varint,6,req,name=command_timestamp,json=commandTimestamp" json:"command_timestamp,omitempty"`
	// Information about the two teams.
	Yellow             *Referee_TeamInfo `protobuf:"bytes,7,req,name=yellow" json:"yellow,omitempty"`
	Blue               *Referee_TeamInfo `protobuf:"bytes,8,req,name=blue" json:"blue,omitempty"`
	DesignatedPosition *Referee_Point    `protobuf:"bytes,9,opt,name=designated_position,json=designatedPosition" json:"designated_position,omitempty"`
	// Information about the direction of play.
	// True, if the blue team will have it's goal on the positive x-axis of the ssl-vision coordinate system
	// Obviously, the yellow team will play on the opposide half
	// For compatibility, this field is optional
	BlueTeamOnPositiveHalf *bool `protobuf:"varint,10,opt,name=blueTeamOnPositiveHalf" json:"blueTeamOnPositiveHalf,omitempty"`
	// The game event that caused the referee command
	GameEvent            *Game_Event `protobuf:"bytes,11,opt,name=gameEvent" json:"gameEvent,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

Each UDP packet contains one of these messages.

func (*Referee) Descriptor

func (*Referee) Descriptor() ([]byte, []int)

func (*Referee) GetBlue

func (m *Referee) GetBlue() *Referee_TeamInfo

func (*Referee) GetBlueTeamOnPositiveHalf

func (m *Referee) GetBlueTeamOnPositiveHalf() bool

func (*Referee) GetCommand

func (m *Referee) GetCommand() Referee_Command

func (*Referee) GetCommandCounter

func (m *Referee) GetCommandCounter() uint32

func (*Referee) GetCommandTimestamp

func (m *Referee) GetCommandTimestamp() uint64

func (*Referee) GetDesignatedPosition

func (m *Referee) GetDesignatedPosition() *Referee_Point

func (*Referee) GetGameEvent

func (m *Referee) GetGameEvent() *Game_Event

func (*Referee) GetPacketTimestamp

func (m *Referee) GetPacketTimestamp() uint64

func (*Referee) GetStage

func (m *Referee) GetStage() Referee_Stage

func (*Referee) GetStageTimeLeft

func (m *Referee) GetStageTimeLeft() int32

func (*Referee) GetYellow

func (m *Referee) GetYellow() *Referee_TeamInfo

func (*Referee) ProtoMessage

func (*Referee) ProtoMessage()

func (*Referee) Reset

func (m *Referee) Reset()

func (*Referee) String

func (m *Referee) String() string

func (*Referee) XXX_DiscardUnknown

func (m *Referee) XXX_DiscardUnknown()

func (*Referee) XXX_Marshal

func (m *Referee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Referee) XXX_Merge

func (dst *Referee) XXX_Merge(src proto.Message)

func (*Referee) XXX_Size

func (m *Referee) XXX_Size() int

func (*Referee) XXX_Unmarshal

func (m *Referee) XXX_Unmarshal(b []byte) error

type Referee_Command

type Referee_Command int32

These are the "fine" states of play on the field.

const (
	// All robots should completely stop moving.
	Referee_HALT Referee_Command = 0
	// Robots must keep 50 cm from the ball.
	Referee_STOP Referee_Command = 1
	// A prepared kickoff or penalty may now be taken.
	Referee_NORMAL_START Referee_Command = 2
	// The ball is dropped and free for either team.
	Referee_FORCE_START Referee_Command = 3
	// The yellow team may move into kickoff position.
	Referee_PREPARE_KICKOFF_YELLOW Referee_Command = 4
	// The blue team may move into kickoff position.
	Referee_PREPARE_KICKOFF_BLUE Referee_Command = 5
	// The yellow team may move into penalty position.
	Referee_PREPARE_PENALTY_YELLOW Referee_Command = 6
	// The blue team may move into penalty position.
	Referee_PREPARE_PENALTY_BLUE Referee_Command = 7
	// The yellow team may take a direct free kick.
	Referee_DIRECT_FREE_YELLOW Referee_Command = 8
	// The blue team may take a direct free kick.
	Referee_DIRECT_FREE_BLUE Referee_Command = 9
	// The yellow team may take an indirect free kick.
	Referee_INDIRECT_FREE_YELLOW Referee_Command = 10
	// The blue team may take an indirect free kick.
	Referee_INDIRECT_FREE_BLUE Referee_Command = 11
	// The yellow team is currently in a timeout.
	Referee_TIMEOUT_YELLOW Referee_Command = 12
	// The blue team is currently in a timeout.
	Referee_TIMEOUT_BLUE Referee_Command = 13
	// The yellow team just scored a goal.
	// For information only.
	// For rules compliance, teams must treat as STOP.
	// Deprecated: Use the score field from the team infos instead. That way, you can also detect revoked goals.
	Referee_GOAL_YELLOW Referee_Command = 14 // Deprecated: Do not use.
	// The blue team just scored a goal. See also GOAL_YELLOW.
	Referee_GOAL_BLUE Referee_Command = 15 // Deprecated: Do not use.
	// Equivalent to STOP, but the yellow team must pick up the ball and
	// drop it in the Designated Position.
	Referee_BALL_PLACEMENT_YELLOW Referee_Command = 16
	// Equivalent to STOP, but the blue team must pick up the ball and drop
	// it in the Designated Position.
	Referee_BALL_PLACEMENT_BLUE Referee_Command = 17
)

func (Referee_Command) Enum

func (x Referee_Command) Enum() *Referee_Command

func (Referee_Command) EnumDescriptor

func (Referee_Command) EnumDescriptor() ([]byte, []int)

func (Referee_Command) String

func (x Referee_Command) String() string

func (*Referee_Command) UnmarshalJSON

func (x *Referee_Command) UnmarshalJSON(data []byte) error

type Referee_Point

type Referee_Point struct {
	X                    *float32 `protobuf:"fixed32,1,req,name=x" json:"x,omitempty"`
	Y                    *float32 `protobuf:"fixed32,2,req,name=y" json:"y,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The coordinates of the Designated Position. These are measured in millimetres and correspond to SSL-Vision coordinates. These fields are always either both present (in the case of a ball placement command) or both absent (in the case of any other command).

func (*Referee_Point) Descriptor

func (*Referee_Point) Descriptor() ([]byte, []int)

func (*Referee_Point) GetX

func (m *Referee_Point) GetX() float32

func (*Referee_Point) GetY

func (m *Referee_Point) GetY() float32

func (*Referee_Point) ProtoMessage

func (*Referee_Point) ProtoMessage()

func (*Referee_Point) Reset

func (m *Referee_Point) Reset()

func (*Referee_Point) String

func (m *Referee_Point) String() string

func (*Referee_Point) XXX_DiscardUnknown

func (m *Referee_Point) XXX_DiscardUnknown()

func (*Referee_Point) XXX_Marshal

func (m *Referee_Point) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Referee_Point) XXX_Merge

func (dst *Referee_Point) XXX_Merge(src proto.Message)

func (*Referee_Point) XXX_Size

func (m *Referee_Point) XXX_Size() int

func (*Referee_Point) XXX_Unmarshal

func (m *Referee_Point) XXX_Unmarshal(b []byte) error

type Referee_Stage

type Referee_Stage int32

These are the "coarse" stages of the game.

const (
	// The first half is about to start.
	// A kickoff is called within this stage.
	// This stage ends with the NORMAL_START.
	Referee_NORMAL_FIRST_HALF_PRE Referee_Stage = 0
	// The first half of the normal game, before half time.
	Referee_NORMAL_FIRST_HALF Referee_Stage = 1
	// Half time between first and second halves.
	Referee_NORMAL_HALF_TIME Referee_Stage = 2
	// The second half is about to start.
	// A kickoff is called within this stage.
	// This stage ends with the NORMAL_START.
	Referee_NORMAL_SECOND_HALF_PRE Referee_Stage = 3
	// The second half of the normal game, after half time.
	Referee_NORMAL_SECOND_HALF Referee_Stage = 4
	// The break before extra time.
	Referee_EXTRA_TIME_BREAK Referee_Stage = 5
	// The first half of extra time is about to start.
	// A kickoff is called within this stage.
	// This stage ends with the NORMAL_START.
	Referee_EXTRA_FIRST_HALF_PRE Referee_Stage = 6
	// The first half of extra time.
	Referee_EXTRA_FIRST_HALF Referee_Stage = 7
	// Half time between first and second extra halves.
	Referee_EXTRA_HALF_TIME Referee_Stage = 8
	// The second half of extra time is about to start.
	// A kickoff is called within this stage.
	// This stage ends with the NORMAL_START.
	Referee_EXTRA_SECOND_HALF_PRE Referee_Stage = 9
	// The second half of extra time.
	Referee_EXTRA_SECOND_HALF Referee_Stage = 10
	// The break before penalty shootout.
	Referee_PENALTY_SHOOTOUT_BREAK Referee_Stage = 11
	// The penalty shootout.
	Referee_PENALTY_SHOOTOUT Referee_Stage = 12
	// The game is over.
	Referee_POST_GAME Referee_Stage = 13
)

func (Referee_Stage) Enum

func (x Referee_Stage) Enum() *Referee_Stage

func (Referee_Stage) EnumDescriptor

func (Referee_Stage) EnumDescriptor() ([]byte, []int)

func (Referee_Stage) String

func (x Referee_Stage) String() string

func (*Referee_Stage) UnmarshalJSON

func (x *Referee_Stage) UnmarshalJSON(data []byte) error

type Referee_TeamInfo

type Referee_TeamInfo struct {
	// The team's name (empty string if operator has not typed anything).
	Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	// The number of goals scored by the team during normal play and overtime.
	Score *uint32 `protobuf:"varint,2,req,name=score" json:"score,omitempty"`
	// The number of red cards issued to the team since the beginning of the game.
	RedCards *uint32 `protobuf:"varint,3,req,name=red_cards,json=redCards" json:"red_cards,omitempty"`
	// The amount of time (in microseconds) left on each yellow card issued to the team.
	// If no yellow cards are issued, this array has no elements.
	// Otherwise, times are ordered from smallest to largest.
	YellowCardTimes []uint32 `protobuf:"varint,4,rep,packed,name=yellow_card_times,json=yellowCardTimes" json:"yellow_card_times,omitempty"`
	// The total number of yellow cards ever issued to the team.
	YellowCards *uint32 `protobuf:"varint,5,req,name=yellow_cards,json=yellowCards" json:"yellow_cards,omitempty"`
	// The number of timeouts this team can still call.
	// If in a timeout right now, that timeout is excluded.
	Timeouts *uint32 `protobuf:"varint,6,req,name=timeouts" json:"timeouts,omitempty"`
	// The number of microseconds of timeout this team can use.
	TimeoutTime *uint32 `protobuf:"varint,7,req,name=timeout_time,json=timeoutTime" json:"timeout_time,omitempty"`
	// The pattern number of this team's goalie.
	Goalie *uint32 `protobuf:"varint,8,req,name=goalie" json:"goalie,omitempty"`
	// The total number of bot collisions committed by this team
	BotCollisions *uint32 `protobuf:"varint,9,opt,name=bot_collisions,json=botCollisions" json:"bot_collisions,omitempty"`
	// The number of consecutive ball placement failures of this team
	BallPlacementFailures *uint32 `protobuf:"varint,10,opt,name=ball_placement_failures,json=ballPlacementFailures" json:"ball_placement_failures,omitempty"`
	// The total number of infringements where robots were too fast during game stoppage
	BotSpeedInfringements *uint32  `protobuf:"varint,11,opt,name=bot_speed_infringements,json=botSpeedInfringements" json:"bot_speed_infringements,omitempty"`
	XXX_NoUnkeyedLiteral  struct{} `json:"-"`
	XXX_unrecognized      []byte   `json:"-"`
	XXX_sizecache         int32    `json:"-"`
}

Information about a single team.

func (*Referee_TeamInfo) Descriptor

func (*Referee_TeamInfo) Descriptor() ([]byte, []int)

func (*Referee_TeamInfo) GetBallPlacementFailures

func (m *Referee_TeamInfo) GetBallPlacementFailures() uint32

func (*Referee_TeamInfo) GetBotCollisions

func (m *Referee_TeamInfo) GetBotCollisions() uint32

func (*Referee_TeamInfo) GetBotSpeedInfringements

func (m *Referee_TeamInfo) GetBotSpeedInfringements() uint32

func (*Referee_TeamInfo) GetGoalie

func (m *Referee_TeamInfo) GetGoalie() uint32

func (*Referee_TeamInfo) GetName

func (m *Referee_TeamInfo) GetName() string

func (*Referee_TeamInfo) GetRedCards

func (m *Referee_TeamInfo) GetRedCards() uint32

func (*Referee_TeamInfo) GetScore

func (m *Referee_TeamInfo) GetScore() uint32

func (*Referee_TeamInfo) GetTimeoutTime

func (m *Referee_TeamInfo) GetTimeoutTime() uint32

func (*Referee_TeamInfo) GetTimeouts

func (m *Referee_TeamInfo) GetTimeouts() uint32

func (*Referee_TeamInfo) GetYellowCardTimes

func (m *Referee_TeamInfo) GetYellowCardTimes() []uint32

func (*Referee_TeamInfo) GetYellowCards

func (m *Referee_TeamInfo) GetYellowCards() uint32

func (*Referee_TeamInfo) ProtoMessage

func (*Referee_TeamInfo) ProtoMessage()

func (*Referee_TeamInfo) Reset

func (m *Referee_TeamInfo) Reset()

func (*Referee_TeamInfo) String

func (m *Referee_TeamInfo) String() string

func (*Referee_TeamInfo) XXX_DiscardUnknown

func (m *Referee_TeamInfo) XXX_DiscardUnknown()

func (*Referee_TeamInfo) XXX_Marshal

func (m *Referee_TeamInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Referee_TeamInfo) XXX_Merge

func (dst *Referee_TeamInfo) XXX_Merge(src proto.Message)

func (*Referee_TeamInfo) XXX_Size

func (m *Referee_TeamInfo) XXX_Size() int

func (*Referee_TeamInfo) XXX_Unmarshal

func (m *Referee_TeamInfo) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL