Documentation ¶
Overview ¶
Package game_state_pb is a generated protocol buffer package.
It is generated from these files:
game_state.proto
It has these top-level messages:
Hex Board State
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Player_name = map[int32]string{
0: "WHITE",
1: "BLACK",
}
View Source
var Player_value = map[string]int32{
"WHITE": 0,
"BLACK": 1,
}
Functions ¶
This section is empty.
Types ¶
type Board ¶
type Board struct { EdgeLength *uint32 `protobuf:"varint,1,opt,name=edge_length" json:"edge_length,omitempty"` BlackPositions []*Hex `protobuf:"bytes,2,rep,name=black_positions" json:"black_positions,omitempty"` WhitePositions []*Hex `protobuf:"bytes,3,rep,name=white_positions" json:"white_positions,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Board) GetBlackPositions ¶
func (*Board) GetEdgeLength ¶
func (*Board) GetWhitePositions ¶
func (*Board) ProtoMessage ¶
func (*Board) ProtoMessage()
type Hex ¶
type Hex struct { Q *int32 `protobuf:"zigzag32,1,opt,name=q" json:"q,omitempty"` R *int32 `protobuf:"zigzag32,2,opt,name=r" json:"r,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Hex) ProtoMessage ¶
func (*Hex) ProtoMessage()
type State ¶
type State struct { Board *Board `protobuf:"bytes,1,opt,name=board" json:"board,omitempty"` NextPlayer *Player `protobuf:"varint,2,opt,name=next_player,enum=game.state.pb.Player" json:"next_player,omitempty"` MovesRemaining *uint32 `protobuf:"varint,3,opt,name=moves_remaining" json:"moves_remaining,omitempty"` MarblesPerMove *uint32 `protobuf:"varint,4,opt,name=marbles_per_move" json:"marbles_per_move,omitempty"` LossThreshold *uint32 `protobuf:"varint,5,opt,name=loss_threshold" json:"loss_threshold,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*State) GetLossThreshold ¶
func (*State) GetMarblesPerMove ¶
func (*State) GetMovesRemaining ¶
func (*State) GetNextPlayer ¶
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.