Versions in this module Expand all Collapse all v2 v2.0.0 Jul 14, 2023 Changes in this version + var CommandResponse_StatusCode_name = map[int32]string + var CommandResponse_StatusCode_value = map[string]int32 + var EventDebugBreakpoint_Breakpoint_name = map[int32]string + var EventDebugBreakpoint_Breakpoint_value = map[string]int32 + var File_broadcast_proto protoreflect.FileDescriptor + var File_health_proto protoreflect.FileDescriptor + var File_physics_proto protoreflect.FileDescriptor + var File_remote_proto protoreflect.FileDescriptor + var File_server_proto protoreflect.FileDescriptor + var GameSetup_ListeningMode_name = map[int32]string + var GameSetup_ListeningMode_value = map[string]int32 + var GameSetup_StartingMode_name = map[int32]string + var GameSetup_StartingMode_value = map[string]int32 + var GameSnapshot_State_name = map[int32]string + var GameSnapshot_State_value = map[string]int32 + var HealthCheckResponse_ServingStatus_name = map[int32]string + var HealthCheckResponse_ServingStatus_value = map[string]int32 + var OrderResponse_StatusCode_name = map[int32]string + var OrderResponse_StatusCode_value = map[string]int32 + var Team_Side_name = map[int32]string + var Team_Side_value = map[string]int32 + func RegisterBroadcastServer(s *grpc.Server, srv BroadcastServer) + func RegisterGameServer(s *grpc.Server, srv GameServer) + func RegisterHealthServer(s *grpc.Server, srv HealthServer) + func RegisterRemoteServer(s *grpc.Server, srv RemoteServer) + type Ball struct + Holder *Player + Position *Point + Velocity *Velocity + func (*Ball) Descriptor() ([]byte, []int) + func (*Ball) ProtoMessage() + func (x *Ball) GetHolder() *Player + func (x *Ball) GetPosition() *Point + func (x *Ball) GetVelocity() *Velocity + func (x *Ball) ProtoReflect() protoreflect.Message + func (x *Ball) Reset() + func (x *Ball) String() string + type BallProperties struct + Holder *Player + Position *Point + Velocity *Velocity + func (*BallProperties) Descriptor() ([]byte, []int) + func (*BallProperties) ProtoMessage() + func (x *BallProperties) GetHolder() *Player + func (x *BallProperties) GetPosition() *Point + func (x *BallProperties) GetVelocity() *Velocity + func (x *BallProperties) ProtoReflect() protoreflect.Message + func (x *BallProperties) Reset() + func (x *BallProperties) String() string + type BroadcastClient interface + GetGameSetup func(ctx context.Context, in *WatcherRequest, opts ...grpc.CallOption) (*GameSetup, error) + OnEvent func(ctx context.Context, in *WatcherRequest, opts ...grpc.CallOption) (Broadcast_OnEventClient, error) + StartGame func(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*GameSetup, error) + func NewBroadcastClient(cc grpc.ClientConnInterface) BroadcastClient + type BroadcastServer interface + GetGameSetup func(context.Context, *WatcherRequest) (*GameSetup, error) + OnEvent func(*WatcherRequest, Broadcast_OnEventServer) error + StartGame func(context.Context, *StartRequest) (*GameSetup, error) + type Broadcast_OnEventClient interface + Recv func() (*GameEvent, error) + type Broadcast_OnEventServer interface + Send func(*GameEvent) error + type Catch struct + func (*Catch) Descriptor() ([]byte, []int) + func (*Catch) ProtoMessage() + func (x *Catch) ProtoReflect() protoreflect.Message + func (x *Catch) Reset() + func (x *Catch) String() string + type CommandResponse struct + Code CommandResponse_StatusCode + Details string + GameSnapshot *GameSnapshot + func (*CommandResponse) Descriptor() ([]byte, []int) + func (*CommandResponse) ProtoMessage() + func (x *CommandResponse) GetCode() CommandResponse_StatusCode + func (x *CommandResponse) GetDetails() string + func (x *CommandResponse) GetGameSnapshot() *GameSnapshot + func (x *CommandResponse) ProtoReflect() protoreflect.Message + func (x *CommandResponse) Reset() + func (x *CommandResponse) String() string + type CommandResponse_StatusCode int32 + const CommandResponse_DEADLINE_EXCEEDED + const CommandResponse_INVALID_VALUE + const CommandResponse_OTHER + const CommandResponse_SUCCESS + func (CommandResponse_StatusCode) Descriptor() protoreflect.EnumDescriptor + func (CommandResponse_StatusCode) EnumDescriptor() ([]byte, []int) + func (CommandResponse_StatusCode) Type() protoreflect.EnumType + func (x CommandResponse_StatusCode) Enum() *CommandResponse_StatusCode + func (x CommandResponse_StatusCode) Number() protoreflect.EnumNumber + func (x CommandResponse_StatusCode) String() string + type EventDebugBreakpoint struct + Breakpoint EventDebugBreakpoint_Breakpoint + func (*EventDebugBreakpoint) Descriptor() ([]byte, []int) + func (*EventDebugBreakpoint) ProtoMessage() + func (x *EventDebugBreakpoint) GetBreakpoint() EventDebugBreakpoint_Breakpoint + func (x *EventDebugBreakpoint) ProtoReflect() protoreflect.Message + func (x *EventDebugBreakpoint) Reset() + func (x *EventDebugBreakpoint) String() string + type EventDebugBreakpoint_Breakpoint int32 + const EventDebugBreakpoint_ORDERS + const EventDebugBreakpoint_TURN + func (EventDebugBreakpoint_Breakpoint) Descriptor() protoreflect.EnumDescriptor + func (EventDebugBreakpoint_Breakpoint) EnumDescriptor() ([]byte, []int) + func (EventDebugBreakpoint_Breakpoint) Type() protoreflect.EnumType + func (x EventDebugBreakpoint_Breakpoint) Enum() *EventDebugBreakpoint_Breakpoint + func (x EventDebugBreakpoint_Breakpoint) Number() protoreflect.EnumNumber + func (x EventDebugBreakpoint_Breakpoint) String() string + type EventDebugReleased struct + func (*EventDebugReleased) Descriptor() ([]byte, []int) + func (*EventDebugReleased) ProtoMessage() + func (x *EventDebugReleased) ProtoReflect() protoreflect.Message + func (x *EventDebugReleased) Reset() + func (x *EventDebugReleased) String() string + type EventGameOver struct + func (*EventGameOver) Descriptor() ([]byte, []int) + func (*EventGameOver) ProtoMessage() + func (x *EventGameOver) ProtoReflect() protoreflect.Message + func (x *EventGameOver) Reset() + func (x *EventGameOver) String() string + type EventGoal struct + Side Team_Side + func (*EventGoal) Descriptor() ([]byte, []int) + func (*EventGoal) ProtoMessage() + func (x *EventGoal) GetSide() Team_Side + func (x *EventGoal) ProtoReflect() protoreflect.Message + func (x *EventGoal) Reset() + func (x *EventGoal) String() string + type EventLostPlayer struct + Player *Player + func (*EventLostPlayer) Descriptor() ([]byte, []int) + func (*EventLostPlayer) ProtoMessage() + func (x *EventLostPlayer) GetPlayer() *Player + func (x *EventLostPlayer) ProtoReflect() protoreflect.Message + func (x *EventLostPlayer) Reset() + func (x *EventLostPlayer) String() string + type EventNewPlayer struct + Player *Player + func (*EventNewPlayer) Descriptor() ([]byte, []int) + func (*EventNewPlayer) ProtoMessage() + func (x *EventNewPlayer) GetPlayer() *Player + func (x *EventNewPlayer) ProtoReflect() protoreflect.Message + func (x *EventNewPlayer) Reset() + func (x *EventNewPlayer) String() string + type EventStateChange struct + NewState GameSnapshot_State + PreviousState GameSnapshot_State + func (*EventStateChange) Descriptor() ([]byte, []int) + func (*EventStateChange) ProtoMessage() + func (x *EventStateChange) GetNewState() GameSnapshot_State + func (x *EventStateChange) GetPreviousState() GameSnapshot_State + func (x *EventStateChange) ProtoReflect() protoreflect.Message + func (x *EventStateChange) Reset() + func (x *EventStateChange) String() string + type GameClient interface + JoinATeam func(ctx context.Context, in *JoinRequest, opts ...grpc.CallOption) (Game_JoinATeamClient, error) + SendOrders func(ctx context.Context, in *OrderSet, opts ...grpc.CallOption) (*OrderResponse, error) + func NewGameClient(cc grpc.ClientConnInterface) GameClient + type GameEvent struct + Event isGameEvent_Event + GameSnapshot *GameSnapshot + func (*GameEvent) Descriptor() ([]byte, []int) + func (*GameEvent) ProtoMessage() + func (m *GameEvent) GetEvent() isGameEvent_Event + func (x *GameEvent) GetBreakpoint() *EventDebugBreakpoint + func (x *GameEvent) GetDebugReleased() *EventDebugReleased + func (x *GameEvent) GetGameOver() *EventGameOver + func (x *GameEvent) GetGameSnapshot() *GameSnapshot + func (x *GameEvent) GetGoal() *EventGoal + func (x *GameEvent) GetLostPlayer() *EventLostPlayer + func (x *GameEvent) GetNewPlayer() *EventNewPlayer + func (x *GameEvent) GetStateChange() *EventStateChange + func (x *GameEvent) ProtoReflect() protoreflect.Message + func (x *GameEvent) Reset() + func (x *GameEvent) String() string + type GameEvent_Breakpoint struct + Breakpoint *EventDebugBreakpoint + type GameEvent_DebugReleased struct + DebugReleased *EventDebugReleased + type GameEvent_GameOver struct + GameOver *EventGameOver + type GameEvent_Goal struct + Goal *EventGoal + type GameEvent_LostPlayer struct + LostPlayer *EventLostPlayer + type GameEvent_NewPlayer struct + NewPlayer *EventNewPlayer + type GameEvent_StateChange struct + StateChange *EventStateChange + type GameProperties struct + AwayScore uint32 + FrameInterval int64 + HomeScore uint32 + ShotClock *ShotClock + Turn uint32 + func (*GameProperties) Descriptor() ([]byte, []int) + func (*GameProperties) ProtoMessage() + func (x *GameProperties) GetAwayScore() uint32 + func (x *GameProperties) GetFrameInterval() int64 + func (x *GameProperties) GetHomeScore() uint32 + func (x *GameProperties) GetShotClock() *ShotClock + func (x *GameProperties) GetTurn() uint32 + func (x *GameProperties) ProtoReflect() protoreflect.Message + func (x *GameProperties) Reset() + func (x *GameProperties) String() string + type GameServer interface + JoinATeam func(*JoinRequest, Game_JoinATeamServer) error + SendOrders func(context.Context, *OrderSet) (*OrderResponse, error) + type GameSetup struct + AwayTeam *TeamSettings + DevMode bool + GameDuration uint32 + HomeTeam *TeamSettings + ListeningDuration uint32 + ListeningMode GameSetup_ListeningMode + ProtocolVersion string + StartMode GameSetup_StartingMode + func (*GameSetup) Descriptor() ([]byte, []int) + func (*GameSetup) ProtoMessage() + func (x *GameSetup) GetAwayTeam() *TeamSettings + func (x *GameSetup) GetDevMode() bool + func (x *GameSetup) GetGameDuration() uint32 + func (x *GameSetup) GetHomeTeam() *TeamSettings + func (x *GameSetup) GetListeningDuration() uint32 + func (x *GameSetup) GetListeningMode() GameSetup_ListeningMode + func (x *GameSetup) GetProtocolVersion() string + func (x *GameSetup) GetStartMode() GameSetup_StartingMode + func (x *GameSetup) ProtoReflect() protoreflect.Message + func (x *GameSetup) Reset() + func (x *GameSetup) String() string + type GameSetup_ListeningMode int32 + const GameSetup_REMOTE + const GameSetup_RUSH + const GameSetup_TIMER + func (GameSetup_ListeningMode) Descriptor() protoreflect.EnumDescriptor + func (GameSetup_ListeningMode) EnumDescriptor() ([]byte, []int) + func (GameSetup_ListeningMode) Type() protoreflect.EnumType + func (x GameSetup_ListeningMode) Enum() *GameSetup_ListeningMode + func (x GameSetup_ListeningMode) Number() protoreflect.EnumNumber + func (x GameSetup_ListeningMode) String() string + type GameSetup_StartingMode int32 + const GameSetup_NO_WAIT + const GameSetup_WAIT + func (GameSetup_StartingMode) Descriptor() protoreflect.EnumDescriptor + func (GameSetup_StartingMode) EnumDescriptor() ([]byte, []int) + func (GameSetup_StartingMode) Type() protoreflect.EnumType + func (x GameSetup_StartingMode) Enum() *GameSetup_StartingMode + func (x GameSetup_StartingMode) Number() protoreflect.EnumNumber + func (x GameSetup_StartingMode) String() string + type GameSnapshot struct + AwayTeam *Team + Ball *Ball + HomeTeam *Team + ShotClock *ShotClock + State GameSnapshot_State + Turn uint32 + TurnsBallInGoalZone uint32 + func (*GameSnapshot) Descriptor() ([]byte, []int) + func (*GameSnapshot) ProtoMessage() + func (x *GameSnapshot) GetAwayTeam() *Team + func (x *GameSnapshot) GetBall() *Ball + func (x *GameSnapshot) GetHomeTeam() *Team + func (x *GameSnapshot) GetShotClock() *ShotClock + func (x *GameSnapshot) GetState() GameSnapshot_State + func (x *GameSnapshot) GetTurn() uint32 + func (x *GameSnapshot) GetTurnsBallInGoalZone() uint32 + func (x *GameSnapshot) ProtoReflect() protoreflect.Message + func (x *GameSnapshot) Reset() + func (x *GameSnapshot) String() string + type GameSnapshot_State int32 + const GameSnapshot_GET_READY + const GameSnapshot_LISTENING + const GameSnapshot_OVER + const GameSnapshot_PLAYING + const GameSnapshot_SHIFTING + const GameSnapshot_WAITING + func (GameSnapshot_State) Descriptor() protoreflect.EnumDescriptor + func (GameSnapshot_State) EnumDescriptor() ([]byte, []int) + func (GameSnapshot_State) Type() protoreflect.EnumType + func (x GameSnapshot_State) Enum() *GameSnapshot_State + func (x GameSnapshot_State) Number() protoreflect.EnumNumber + func (x GameSnapshot_State) String() string + type Game_JoinATeamClient interface + Recv func() (*GameSnapshot, error) + type Game_JoinATeamServer interface + Send func(*GameSnapshot) error + type HealthCheckRequest struct + Service string + func (*HealthCheckRequest) Descriptor() ([]byte, []int) + func (*HealthCheckRequest) ProtoMessage() + func (x *HealthCheckRequest) GetService() string + func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message + func (x *HealthCheckRequest) Reset() + func (x *HealthCheckRequest) String() string + type HealthCheckResponse struct + Status HealthCheckResponse_ServingStatus + func (*HealthCheckResponse) Descriptor() ([]byte, []int) + func (*HealthCheckResponse) ProtoMessage() + func (x *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus + func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message + func (x *HealthCheckResponse) Reset() + func (x *HealthCheckResponse) String() string + type HealthCheckResponse_ServingStatus int32 + const HealthCheckResponse_NOT_SERVING + const HealthCheckResponse_SERVICE_UNKNOWN + const HealthCheckResponse_SERVING + const HealthCheckResponse_UNKNOWN + func (HealthCheckResponse_ServingStatus) Descriptor() protoreflect.EnumDescriptor + func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) + func (HealthCheckResponse_ServingStatus) Type() protoreflect.EnumType + func (x HealthCheckResponse_ServingStatus) Enum() *HealthCheckResponse_ServingStatus + func (x HealthCheckResponse_ServingStatus) Number() protoreflect.EnumNumber + func (x HealthCheckResponse_ServingStatus) String() string + type HealthClient interface + Check func(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) + Watch func(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (Health_WatchClient, error) + func NewHealthClient(cc grpc.ClientConnInterface) HealthClient + type HealthServer interface + Check func(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) + Watch func(*HealthCheckRequest, Health_WatchServer) error + type Health_WatchClient interface + Recv func() (*HealthCheckResponse, error) + type Health_WatchServer interface + Send func(*HealthCheckResponse) error + type JoinRequest struct + InitPosition *Point + Number uint32 + ProtocolVersion string + TeamSide Team_Side + Token string + func (*JoinRequest) Descriptor() ([]byte, []int) + func (*JoinRequest) ProtoMessage() + func (x *JoinRequest) GetInitPosition() *Point + func (x *JoinRequest) GetNumber() uint32 + func (x *JoinRequest) GetProtocolVersion() string + func (x *JoinRequest) GetTeamSide() Team_Side + func (x *JoinRequest) GetToken() string + func (x *JoinRequest) ProtoReflect() protoreflect.Message + func (x *JoinRequest) Reset() + func (x *JoinRequest) String() string + type Jump struct + Velocity *Velocity + func (*Jump) Descriptor() ([]byte, []int) + func (*Jump) ProtoMessage() + func (x *Jump) GetVelocity() *Velocity + func (x *Jump) ProtoReflect() protoreflect.Message + func (x *Jump) Reset() + func (x *Jump) String() string + type Kick struct + Velocity *Velocity + func (*Kick) Descriptor() ([]byte, []int) + func (*Kick) ProtoMessage() + func (x *Kick) GetVelocity() *Velocity + func (x *Kick) ProtoReflect() protoreflect.Message + func (x *Kick) Reset() + func (x *Kick) String() string + type Move struct + Velocity *Velocity + func (*Move) Descriptor() ([]byte, []int) + func (*Move) ProtoMessage() + func (x *Move) GetVelocity() *Velocity + func (x *Move) ProtoReflect() protoreflect.Message + func (x *Move) Reset() + func (x *Move) String() string + type NextOrderRequest struct + func (*NextOrderRequest) Descriptor() ([]byte, []int) + func (*NextOrderRequest) ProtoMessage() + func (x *NextOrderRequest) ProtoReflect() protoreflect.Message + func (x *NextOrderRequest) Reset() + func (x *NextOrderRequest) String() string + type NextTurnRequest struct + func (*NextTurnRequest) Descriptor() ([]byte, []int) + func (*NextTurnRequest) ProtoMessage() + func (x *NextTurnRequest) ProtoReflect() protoreflect.Message + func (x *NextTurnRequest) Reset() + func (x *NextTurnRequest) String() string + type Order struct + Action isOrder_Action + func (*Order) Descriptor() ([]byte, []int) + func (*Order) ProtoMessage() + func (m *Order) GetAction() isOrder_Action + func (x *Order) GetCatch() *Catch + func (x *Order) GetJump() *Jump + func (x *Order) GetKick() *Kick + func (x *Order) GetMove() *Move + func (x *Order) ProtoReflect() protoreflect.Message + func (x *Order) Reset() + func (x *Order) String() string + type OrderResponse struct + Code OrderResponse_StatusCode + Details string + func (*OrderResponse) Descriptor() ([]byte, []int) + func (*OrderResponse) ProtoMessage() + func (x *OrderResponse) GetCode() OrderResponse_StatusCode + func (x *OrderResponse) GetDetails() string + func (x *OrderResponse) ProtoReflect() protoreflect.Message + func (x *OrderResponse) Reset() + func (x *OrderResponse) String() string + type OrderResponse_StatusCode int32 + const OrderResponse_NOT_LISTENING + const OrderResponse_OTHER + const OrderResponse_SUCCESS + const OrderResponse_UNKNOWN_PLAYER + const OrderResponse_WRONG_TURN + func (OrderResponse_StatusCode) Descriptor() protoreflect.EnumDescriptor + func (OrderResponse_StatusCode) EnumDescriptor() ([]byte, []int) + func (OrderResponse_StatusCode) Type() protoreflect.EnumType + func (x OrderResponse_StatusCode) Enum() *OrderResponse_StatusCode + func (x OrderResponse_StatusCode) Number() protoreflect.EnumNumber + func (x OrderResponse_StatusCode) String() string + type OrderSet struct + DebugMessage string + Orders []*Order + Turn uint32 + func (*OrderSet) Descriptor() ([]byte, []int) + func (*OrderSet) ProtoMessage() + func (x *OrderSet) GetDebugMessage() string + func (x *OrderSet) GetOrders() []*Order + func (x *OrderSet) GetTurn() uint32 + func (x *OrderSet) ProtoReflect() protoreflect.Message + func (x *OrderSet) Reset() + func (x *OrderSet) String() string + type Order_Catch struct + Catch *Catch + func (*Order_Catch) LugoOrdersUnifier() + type Order_Jump struct + Jump *Jump + func (*Order_Jump) LugoOrdersUnifier() + type Order_Kick struct + Kick *Kick + func (*Order_Kick) LugoOrdersUnifier() + type Order_Move struct + Move *Move + func (*Order_Move) LugoOrdersUnifier() + type PauseResumeRequest struct + func (*PauseResumeRequest) Descriptor() ([]byte, []int) + func (*PauseResumeRequest) ProtoMessage() + func (x *PauseResumeRequest) ProtoReflect() protoreflect.Message + func (x *PauseResumeRequest) Reset() + func (x *PauseResumeRequest) String() string + type Player struct + InitPosition *Point + Number uint32 + Position *Point + TeamSide Team_Side + Velocity *Velocity + func (*Player) Descriptor() ([]byte, []int) + func (*Player) ProtoMessage() + func (x *Player) GetInitPosition() *Point + func (x *Player) GetNumber() uint32 + func (x *Player) GetPosition() *Point + func (x *Player) GetTeamSide() Team_Side + func (x *Player) GetVelocity() *Velocity + func (x *Player) ProtoReflect() protoreflect.Message + func (x *Player) Reset() + func (x *Player) String() string + type PlayerOrder interface + LugoOrdersUnifier func() + type PlayerProperties struct + Number uint32 + Position *Point + Side Team_Side + Velocity *Velocity + func (*PlayerProperties) Descriptor() ([]byte, []int) + func (*PlayerProperties) ProtoMessage() + func (x *PlayerProperties) GetNumber() uint32 + func (x *PlayerProperties) GetPosition() *Point + func (x *PlayerProperties) GetSide() Team_Side + func (x *PlayerProperties) GetVelocity() *Velocity + func (x *PlayerProperties) ProtoReflect() protoreflect.Message + func (x *PlayerProperties) Reset() + func (x *PlayerProperties) String() string + type Point struct + X int32 + Y int32 + func FindIntersection(a1, a2, b1, b2 Point) (Point, bool, error) + func (*Point) Descriptor() ([]byte, []int) + func (*Point) ProtoMessage() + func (m Point) Copy() *Point + func (m Point) DistanceTo(target Point) (distance float64) + func (m Point) MiddlePointTo(target Point) Point + func (x *Point) GetX() int32 + func (x *Point) GetY() int32 + func (x *Point) ProtoReflect() protoreflect.Message + func (x *Point) Reset() + func (x *Point) String() string + type RemoteClient interface + NextOrder func(ctx context.Context, in *NextOrderRequest, opts ...grpc.CallOption) (*CommandResponse, error) + NextTurn func(ctx context.Context, in *NextTurnRequest, opts ...grpc.CallOption) (*CommandResponse, error) + PauseOrResume func(ctx context.Context, in *PauseResumeRequest, opts ...grpc.CallOption) (*CommandResponse, error) + ResumeListeningPhase func(ctx context.Context, in *ResumeListeningRequest, opts ...grpc.CallOption) (*ResumeListeningResponse, error) + SetBallProperties func(ctx context.Context, in *BallProperties, opts ...grpc.CallOption) (*CommandResponse, error) + SetGameProperties func(ctx context.Context, in *GameProperties, opts ...grpc.CallOption) (*CommandResponse, error) + SetPlayerProperties func(ctx context.Context, in *PlayerProperties, opts ...grpc.CallOption) (*CommandResponse, error) + func NewRemoteClient(cc grpc.ClientConnInterface) RemoteClient + type RemoteServer interface + NextOrder func(context.Context, *NextOrderRequest) (*CommandResponse, error) + NextTurn func(context.Context, *NextTurnRequest) (*CommandResponse, error) + PauseOrResume func(context.Context, *PauseResumeRequest) (*CommandResponse, error) + ResumeListeningPhase func(context.Context, *ResumeListeningRequest) (*ResumeListeningResponse, error) + SetBallProperties func(context.Context, *BallProperties) (*CommandResponse, error) + SetGameProperties func(context.Context, *GameProperties) (*CommandResponse, error) + SetPlayerProperties func(context.Context, *PlayerProperties) (*CommandResponse, error) + type ResumeListeningRequest struct + func (*ResumeListeningRequest) Descriptor() ([]byte, []int) + func (*ResumeListeningRequest) ProtoMessage() + func (x *ResumeListeningRequest) ProtoReflect() protoreflect.Message + func (x *ResumeListeningRequest) Reset() + func (x *ResumeListeningRequest) String() string + type ResumeListeningResponse struct + func (*ResumeListeningResponse) Descriptor() ([]byte, []int) + func (*ResumeListeningResponse) ProtoMessage() + func (x *ResumeListeningResponse) ProtoReflect() protoreflect.Message + func (x *ResumeListeningResponse) Reset() + func (x *ResumeListeningResponse) String() string + type ShotClock struct + RemainingTurns uint32 + TeamSide Team_Side + func (*ShotClock) Descriptor() ([]byte, []int) + func (*ShotClock) ProtoMessage() + func (x *ShotClock) GetRemainingTurns() uint32 + func (x *ShotClock) GetTeamSide() Team_Side + func (x *ShotClock) ProtoReflect() protoreflect.Message + func (x *ShotClock) Reset() + func (x *ShotClock) String() string + type StartRequest struct + WatcherUuid string + func (*StartRequest) Descriptor() ([]byte, []int) + func (*StartRequest) ProtoMessage() + func (x *StartRequest) GetWatcherUuid() string + func (x *StartRequest) ProtoReflect() protoreflect.Message + func (x *StartRequest) Reset() + func (x *StartRequest) String() string + type Team struct + Name string + Players []*Player + Score uint32 + Side Team_Side + func (*Team) Descriptor() ([]byte, []int) + func (*Team) ProtoMessage() + func (x *Team) GetName() string + func (x *Team) GetPlayers() []*Player + func (x *Team) GetScore() uint32 + func (x *Team) GetSide() Team_Side + func (x *Team) ProtoReflect() protoreflect.Message + func (x *Team) Reset() + func (x *Team) String() string + type TeamColor struct + Blue uint32 + Green uint32 + Red uint32 + func (*TeamColor) Descriptor() ([]byte, []int) + func (*TeamColor) ProtoMessage() + func (x *TeamColor) GetBlue() uint32 + func (x *TeamColor) GetGreen() uint32 + func (x *TeamColor) GetRed() uint32 + func (x *TeamColor) ProtoReflect() protoreflect.Message + func (x *TeamColor) Reset() + func (x *TeamColor) String() string + type TeamColors struct + Primary *TeamColor + Secondary *TeamColor + func (*TeamColors) Descriptor() ([]byte, []int) + func (*TeamColors) ProtoMessage() + func (x *TeamColors) GetPrimary() *TeamColor + func (x *TeamColors) GetSecondary() *TeamColor + func (x *TeamColors) ProtoReflect() protoreflect.Message + func (x *TeamColors) Reset() + func (x *TeamColors) String() string + type TeamSettings struct + Avatar string + Colors *TeamColors + Name string + func (*TeamSettings) Descriptor() ([]byte, []int) + func (*TeamSettings) ProtoMessage() + func (x *TeamSettings) GetAvatar() string + func (x *TeamSettings) GetColors() *TeamColors + func (x *TeamSettings) GetName() string + func (x *TeamSettings) ProtoReflect() protoreflect.Message + func (x *TeamSettings) Reset() + func (x *TeamSettings) String() string + type Team_Side int32 + const Team_AWAY + const Team_HOME + func (Team_Side) Descriptor() protoreflect.EnumDescriptor + func (Team_Side) EnumDescriptor() ([]byte, []int) + func (Team_Side) Type() protoreflect.EnumType + func (x Team_Side) Enum() *Team_Side + func (x Team_Side) Number() protoreflect.EnumNumber + func (x Team_Side) String() string + type UnimplementedBroadcastServer struct + func (*UnimplementedBroadcastServer) GetGameSetup(context.Context, *WatcherRequest) (*GameSetup, error) + func (*UnimplementedBroadcastServer) OnEvent(*WatcherRequest, Broadcast_OnEventServer) error + func (*UnimplementedBroadcastServer) StartGame(context.Context, *StartRequest) (*GameSetup, error) + type UnimplementedGameServer struct + func (*UnimplementedGameServer) JoinATeam(*JoinRequest, Game_JoinATeamServer) error + func (*UnimplementedGameServer) SendOrders(context.Context, *OrderSet) (*OrderResponse, error) + type UnimplementedHealthServer struct + func (*UnimplementedHealthServer) Check(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) + func (*UnimplementedHealthServer) Watch(*HealthCheckRequest, Health_WatchServer) error + type UnimplementedRemoteServer struct + func (*UnimplementedRemoteServer) NextOrder(context.Context, *NextOrderRequest) (*CommandResponse, error) + func (*UnimplementedRemoteServer) NextTurn(context.Context, *NextTurnRequest) (*CommandResponse, error) + func (*UnimplementedRemoteServer) PauseOrResume(context.Context, *PauseResumeRequest) (*CommandResponse, error) + func (*UnimplementedRemoteServer) ResumeListeningPhase(context.Context, *ResumeListeningRequest) (*ResumeListeningResponse, error) + func (*UnimplementedRemoteServer) SetBallProperties(context.Context, *BallProperties) (*CommandResponse, error) + func (*UnimplementedRemoteServer) SetGameProperties(context.Context, *GameProperties) (*CommandResponse, error) + func (*UnimplementedRemoteServer) SetPlayerProperties(context.Context, *PlayerProperties) (*CommandResponse, error) + type Vector struct + X float64 + Y float64 + func East() Vector + func NewVector(from Point, to Point) (*Vector, error) + func North() Vector + func NorthEast() Vector + func NorthWest() Vector + func South() Vector + func SouthEast() Vector + func SouthWest() Vector + func West() Vector + func (*Vector) Descriptor() ([]byte, []int) + func (*Vector) ProtoMessage() + func (v *Vector) Add(vector *Vector) (*Vector, error) + func (v *Vector) AddAngleDegree(degree float64) *Vector + func (v *Vector) Angle() float64 + func (v *Vector) AngleDegrees() float64 + func (v *Vector) AngleWith(b *Vector) float64 + func (v *Vector) Cos() float64 + func (v *Vector) Invert() *Vector + func (v *Vector) IsEqualTo(b *Vector) bool + func (v *Vector) IsObstacle(from Point, obstacle Point) bool + func (v *Vector) Length() float64 + func (v *Vector) MarshalJSON() ([]byte, error) + func (v *Vector) Normalize() *Vector + func (v *Vector) OppositeAngle() float64 + func (v *Vector) Scale(t float64) (*Vector, error) + func (v *Vector) SetLength(length float64) (*Vector, error) + func (v *Vector) SetX(x float64) (*Vector, error) + func (v *Vector) SetY(y float64) (*Vector, error) + func (v *Vector) Sin() float64 + func (v *Vector) Sub(vector *Vector) (*Vector, error) + func (v *Vector) TargetFrom(point Point) Point + func (v *Vector) UnmarshalJSON(b []byte) error + func (v Vector) Copy() *Vector + func (v Vector) Perpendicular() *Vector + func (x *Vector) GetX() float64 + func (x *Vector) GetY() float64 + func (x *Vector) ProtoReflect() protoreflect.Message + func (x *Vector) Reset() + func (x *Vector) String() string + type Velocity struct + Direction *Vector + Speed float64 + func NewZeroedVelocity(direction Vector) Velocity + func (*Velocity) Descriptor() ([]byte, []int) + func (*Velocity) ProtoMessage() + func (m *Velocity) Add(velocity Velocity) + func (m *Velocity) GetNextPoint(from Point) Point + func (m Velocity) Copy() *Velocity + func (x *Velocity) GetDirection() *Vector + func (x *Velocity) GetSpeed() float64 + func (x *Velocity) ProtoReflect() protoreflect.Message + func (x *Velocity) Reset() + func (x *Velocity) String() string + type WatcherRequest struct + Uuid string + func (*WatcherRequest) Descriptor() ([]byte, []int) + func (*WatcherRequest) ProtoMessage() + func (x *WatcherRequest) GetUuid() string + func (x *WatcherRequest) ProtoReflect() protoreflect.Message + func (x *WatcherRequest) Reset() + func (x *WatcherRequest) String() string v2.0.0-beta.3 Jan 7, 2023 v2.0.0-beta.2 Sep 24, 2022 v2.0.0-beta Mar 26, 2022 v2.0.0-alpha.10 Mar 28, 2020 v2.0.0-alpha.9 Dec 28, 2019 v2.0.0-alpha.8 Dec 28, 2019 v2.0.0-alpha.7 Dec 28, 2019 v2.0.0-alpha.6 Dec 22, 2019 v2.0.0-alpha.5 Dec 19, 2019 v2.0.0-alpha.4 Dec 18, 2019 v2.0.0-alpha.3 Dec 17, 2019 v2.0.0-alpha.2 Dec 7, 2019 v2.0.0-alpha.1 Dec 3, 2019 v2.0.0-alpha.0 Dec 1, 2019 Other modules containing this package github.com/lugobots/lugo4go/v3