game_state_pb

package
v0.0.0-...-351bd47 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: MIT Imports: 2 Imported by: 0

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 (m *Board) GetBlackPositions() []*Hex

func (*Board) GetEdgeLength

func (m *Board) GetEdgeLength() uint32

func (*Board) GetWhitePositions

func (m *Board) GetWhitePositions() []*Hex

func (*Board) ProtoMessage

func (*Board) ProtoMessage()

func (*Board) Reset

func (m *Board) Reset()

func (*Board) String

func (m *Board) String() string

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) GetQ

func (m *Hex) GetQ() int32

func (*Hex) GetR

func (m *Hex) GetR() int32

func (*Hex) ProtoMessage

func (*Hex) ProtoMessage()

func (*Hex) Reset

func (m *Hex) Reset()

func (*Hex) String

func (m *Hex) String() string

type Player

type Player int32
const (
	Player_WHITE Player = 0
	Player_BLACK Player = 1
)

func (Player) Enum

func (x Player) Enum() *Player

func (Player) String

func (x Player) String() string

func (*Player) UnmarshalJSON

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

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) GetBoard

func (m *State) GetBoard() *Board

func (*State) GetLossThreshold

func (m *State) GetLossThreshold() uint32

func (*State) GetMarblesPerMove

func (m *State) GetMarblesPerMove() uint32

func (*State) GetMovesRemaining

func (m *State) GetMovesRemaining() uint32

func (*State) GetNextPlayer

func (m *State) GetNextPlayer() Player

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) Reset

func (m *State) Reset()

func (*State) String

func (m *State) String() string

Jump to

Keyboard shortcuts

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