Documentation
¶
Index ¶
- Variables
- type GameEvent
- func (*GameEvent) Descriptor() ([]byte, []int)deprecated
- func (x *GameEvent) GetBonus() int32
- func (x *GameEvent) GetColumn() int32
- func (x *GameEvent) GetCumulative() int32
- func (x *GameEvent) GetDirection() GameEvent_Direction
- func (x *GameEvent) GetEndRackPoints() int32
- func (x *GameEvent) GetExchanged() string
- func (x *GameEvent) GetIsBingo() bool
- func (x *GameEvent) GetLostScore() int32
- func (x *GameEvent) GetNickname() string
- func (x *GameEvent) GetNote() string
- func (x *GameEvent) GetPlayedTiles() string
- func (x *GameEvent) GetPosition() string
- func (x *GameEvent) GetRack() string
- func (x *GameEvent) GetRow() int32
- func (x *GameEvent) GetScore() int32
- func (x *GameEvent) GetType() GameEvent_Type
- func (*GameEvent) ProtoMessage()
- func (x *GameEvent) ProtoReflect() protoreflect.Message
- func (x *GameEvent) Reset()
- func (x *GameEvent) String() string
- type GameEvent_Direction
- func (GameEvent_Direction) Descriptor() protoreflect.EnumDescriptor
- func (x GameEvent_Direction) Enum() *GameEvent_Direction
- func (GameEvent_Direction) EnumDescriptor() ([]byte, []int)deprecated
- func (x GameEvent_Direction) Number() protoreflect.EnumNumber
- func (x GameEvent_Direction) String() string
- func (GameEvent_Direction) Type() protoreflect.EnumType
- type GameEvent_Type
- func (GameEvent_Type) Descriptor() protoreflect.EnumDescriptor
- func (x GameEvent_Type) Enum() *GameEvent_Type
- func (GameEvent_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x GameEvent_Type) Number() protoreflect.EnumNumber
- func (x GameEvent_Type) String() string
- func (GameEvent_Type) Type() protoreflect.EnumType
- type GameHistory
- func (*GameHistory) Descriptor() ([]byte, []int)deprecated
- func (x *GameHistory) GetDescription() string
- func (x *GameHistory) GetFlipPlayers() bool
- func (x *GameHistory) GetIdAuth() string
- func (x *GameHistory) GetLastKnownRacks() []string
- func (x *GameHistory) GetLexicon() string
- func (x *GameHistory) GetOriginalGcg() string
- func (x *GameHistory) GetPlayers() []*PlayerInfo
- func (x *GameHistory) GetTitle() string
- func (x *GameHistory) GetTurns() []*GameTurn
- func (x *GameHistory) GetUid() string
- func (x *GameHistory) GetVersion() int32
- func (*GameHistory) ProtoMessage()
- func (x *GameHistory) ProtoReflect() protoreflect.Message
- func (x *GameHistory) Reset()
- func (x *GameHistory) String() string
- type GameTurn
- type PlayerInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GameEvent_Type_name = map[int32]string{ 0: "TILE_PLACEMENT_MOVE", 1: "PHONY_TILES_RETURNED", 2: "PASS", 3: "CHALLENGE_BONUS", 4: "EXCHANGE", 5: "END_RACK_PTS", 6: "TIME_PENALTY", 7: "END_RACK_PENALTY", } GameEvent_Type_value = map[string]int32{ "TILE_PLACEMENT_MOVE": 0, "PHONY_TILES_RETURNED": 1, "PASS": 2, "CHALLENGE_BONUS": 3, "EXCHANGE": 4, "END_RACK_PTS": 5, "TIME_PENALTY": 6, "END_RACK_PENALTY": 7, } )
Enum value maps for GameEvent_Type.
View Source
var ( GameEvent_Direction_name = map[int32]string{ 0: "HORIZONTAL", 1: "VERTICAL", } GameEvent_Direction_value = map[string]int32{ "HORIZONTAL": 0, "VERTICAL": 1, } )
Enum value maps for GameEvent_Direction.
View Source
var File_api_proto_macondo_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GameEvent ¶
type GameEvent struct { Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"` Note string `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` Rack string `protobuf:"bytes,3,opt,name=rack,proto3" json:"rack,omitempty"` Type GameEvent_Type `protobuf:"varint,4,opt,name=type,proto3,enum=macondo.GameEvent_Type" json:"type,omitempty"` Cumulative int32 `protobuf:"varint,5,opt,name=cumulative,proto3" json:"cumulative,omitempty"` Row int32 `protobuf:"varint,6,opt,name=row,proto3" json:"row,omitempty"` Column int32 `protobuf:"varint,7,opt,name=column,proto3" json:"column,omitempty"` Direction GameEvent_Direction `protobuf:"varint,8,opt,name=direction,proto3,enum=macondo.GameEvent_Direction" json:"direction,omitempty"` Position string `protobuf:"bytes,9,opt,name=position,proto3" json:"position,omitempty"` PlayedTiles string `protobuf:"bytes,10,opt,name=played_tiles,json=playedTiles,proto3" json:"played_tiles,omitempty"` // An event will not have all of these; it depends on the type of the event. Exchanged string `protobuf:"bytes,11,opt,name=exchanged,proto3" json:"exchanged,omitempty"` Score int32 `protobuf:"varint,12,opt,name=score,proto3" json:"score,omitempty"` Bonus int32 `protobuf:"varint,13,opt,name=bonus,proto3" json:"bonus,omitempty"` EndRackPoints int32 `protobuf:"varint,14,opt,name=end_rack_points,json=endRackPoints,proto3" json:"end_rack_points,omitempty"` LostScore int32 `protobuf:"varint,15,opt,name=lost_score,json=lostScore,proto3" json:"lost_score,omitempty"` IsBingo bool `protobuf:"varint,16,opt,name=is_bingo,json=isBingo,proto3" json:"is_bingo,omitempty"` // contains filtered or unexported fields }
This should be merged into Move.
func (*GameEvent) Descriptor
deprecated
func (*GameEvent) GetCumulative ¶
func (*GameEvent) GetDirection ¶
func (x *GameEvent) GetDirection() GameEvent_Direction
func (*GameEvent) GetEndRackPoints ¶
func (*GameEvent) GetExchanged ¶
func (*GameEvent) GetIsBingo ¶
func (*GameEvent) GetLostScore ¶
func (*GameEvent) GetNickname ¶
func (*GameEvent) GetPlayedTiles ¶
func (*GameEvent) GetPosition ¶
func (*GameEvent) GetType ¶
func (x *GameEvent) GetType() GameEvent_Type
func (*GameEvent) ProtoMessage ¶
func (*GameEvent) ProtoMessage()
func (*GameEvent) ProtoReflect ¶
func (x *GameEvent) ProtoReflect() protoreflect.Message
type GameEvent_Direction ¶
type GameEvent_Direction int32
const ( GameEvent_HORIZONTAL GameEvent_Direction = 0 GameEvent_VERTICAL GameEvent_Direction = 1 )
func (GameEvent_Direction) Descriptor ¶
func (GameEvent_Direction) Descriptor() protoreflect.EnumDescriptor
func (GameEvent_Direction) Enum ¶
func (x GameEvent_Direction) Enum() *GameEvent_Direction
func (GameEvent_Direction) EnumDescriptor
deprecated
func (GameEvent_Direction) EnumDescriptor() ([]byte, []int)
Deprecated: Use GameEvent_Direction.Descriptor instead.
func (GameEvent_Direction) Number ¶
func (x GameEvent_Direction) Number() protoreflect.EnumNumber
func (GameEvent_Direction) String ¶
func (x GameEvent_Direction) String() string
func (GameEvent_Direction) Type ¶
func (GameEvent_Direction) Type() protoreflect.EnumType
type GameEvent_Type ¶
type GameEvent_Type int32
const ( GameEvent_TILE_PLACEMENT_MOVE GameEvent_Type = 0 GameEvent_PHONY_TILES_RETURNED GameEvent_Type = 1 GameEvent_PASS GameEvent_Type = 2 GameEvent_CHALLENGE_BONUS GameEvent_Type = 3 GameEvent_EXCHANGE GameEvent_Type = 4 GameEvent_END_RACK_PTS GameEvent_Type = 5 GameEvent_TIME_PENALTY GameEvent_Type = 6 // Only for international rules (or after 6 zeroes) GameEvent_END_RACK_PENALTY GameEvent_Type = 7 )
func (GameEvent_Type) Descriptor ¶
func (GameEvent_Type) Descriptor() protoreflect.EnumDescriptor
func (GameEvent_Type) Enum ¶
func (x GameEvent_Type) Enum() *GameEvent_Type
func (GameEvent_Type) EnumDescriptor
deprecated
func (GameEvent_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use GameEvent_Type.Descriptor instead.
func (GameEvent_Type) Number ¶
func (x GameEvent_Type) Number() protoreflect.EnumNumber
func (GameEvent_Type) String ¶
func (x GameEvent_Type) String() string
func (GameEvent_Type) Type ¶
func (GameEvent_Type) Type() protoreflect.EnumType
type GameHistory ¶
type GameHistory struct { Turns []*GameTurn `protobuf:"bytes,1,rep,name=turns,proto3" json:"turns,omitempty"` Players []*PlayerInfo `protobuf:"bytes,2,rep,name=players,proto3" json:"players,omitempty"` Version int32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` OriginalGcg string `protobuf:"bytes,4,opt,name=original_gcg,json=originalGcg,proto3" json:"original_gcg,omitempty"` Lexicon string `protobuf:"bytes,5,opt,name=lexicon,proto3" json:"lexicon,omitempty"` IdAuth string `protobuf:"bytes,6,opt,name=id_auth,json=idAuth,proto3" json:"id_auth,omitempty"` Uid string `protobuf:"bytes,7,opt,name=uid,proto3" json:"uid,omitempty"` Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"` // last_known_racks should only be set in an incomplete / in-progress game. // if set, player racks should be set to these values. LastKnownRacks []string `protobuf:"bytes,10,rep,name=last_known_racks,json=lastKnownRacks,proto3" json:"last_known_racks,omitempty"` // if flip_players is set, then the player listed first in `players` // actually went second, and vice versa! FlipPlayers bool `protobuf:"varint,11,opt,name=flip_players,json=flipPlayers,proto3" json:"flip_players,omitempty"` // contains filtered or unexported fields }
GameHistory encodes a whole history of a game, and it should also encode the initial board and tile configuration, etc. It can be considered to be an instantiation of a GCG file.
func (*GameHistory) Descriptor
deprecated
func (*GameHistory) Descriptor() ([]byte, []int)
Deprecated: Use GameHistory.ProtoReflect.Descriptor instead.
func (*GameHistory) GetDescription ¶
func (x *GameHistory) GetDescription() string
func (*GameHistory) GetFlipPlayers ¶
func (x *GameHistory) GetFlipPlayers() bool
func (*GameHistory) GetIdAuth ¶
func (x *GameHistory) GetIdAuth() string
func (*GameHistory) GetLastKnownRacks ¶
func (x *GameHistory) GetLastKnownRacks() []string
func (*GameHistory) GetLexicon ¶
func (x *GameHistory) GetLexicon() string
func (*GameHistory) GetOriginalGcg ¶
func (x *GameHistory) GetOriginalGcg() string
func (*GameHistory) GetPlayers ¶
func (x *GameHistory) GetPlayers() []*PlayerInfo
func (*GameHistory) GetTitle ¶
func (x *GameHistory) GetTitle() string
func (*GameHistory) GetTurns ¶
func (x *GameHistory) GetTurns() []*GameTurn
func (*GameHistory) GetUid ¶
func (x *GameHistory) GetUid() string
func (*GameHistory) GetVersion ¶
func (x *GameHistory) GetVersion() int32
func (*GameHistory) ProtoMessage ¶
func (*GameHistory) ProtoMessage()
func (*GameHistory) ProtoReflect ¶
func (x *GameHistory) ProtoReflect() protoreflect.Message
func (*GameHistory) Reset ¶
func (x *GameHistory) Reset()
func (*GameHistory) String ¶
func (x *GameHistory) String() string
type GameTurn ¶
type GameTurn struct { Events []*GameEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` // contains filtered or unexported fields }
func (*GameTurn) Descriptor
deprecated
func (*GameTurn) ProtoMessage ¶
func (*GameTurn) ProtoMessage()
func (*GameTurn) ProtoReflect ¶
func (x *GameTurn) ProtoReflect() protoreflect.Message
type PlayerInfo ¶
type PlayerInfo struct { Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"` RealName string `protobuf:"bytes,2,opt,name=real_name,json=realName,proto3" json:"real_name,omitempty"` // contains filtered or unexported fields }
func (*PlayerInfo) Descriptor
deprecated
func (*PlayerInfo) Descriptor() ([]byte, []int)
Deprecated: Use PlayerInfo.ProtoReflect.Descriptor instead.
func (*PlayerInfo) GetNickname ¶
func (x *PlayerInfo) GetNickname() string
func (*PlayerInfo) GetRealName ¶
func (x *PlayerInfo) GetRealName() string
func (*PlayerInfo) ProtoMessage ¶
func (*PlayerInfo) ProtoMessage()
func (*PlayerInfo) ProtoReflect ¶
func (x *PlayerInfo) ProtoReflect() protoreflect.Message
func (*PlayerInfo) Reset ¶
func (x *PlayerInfo) Reset()
func (*PlayerInfo) String ¶
func (x *PlayerInfo) String() string
Click to show internal directories.
Click to hide internal directories.