Documentation ¶
Index ¶
- type Data
- func (g Data) GetCurrentMoveOptions(ctx context.Context, client dapr.Client) (MoveOptions, error)
- func (d Data) GetIndices() []string
- func (d Data) GetKey() string
- func (d Data) Marshal() ([]byte, error)
- func (g *Data) NewRound(ctx context.Context, client dapr.Client)
- func (g *Data) StartGame(ctx context.Context, client dapr.Client)
- type MoveOptions
- type NewGameRequest
- type Options
- type Phase
- type Player
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { ID string StartTime time.Time PlayerA string PlayerAUnits []string PlayerAValue int PlayerB string PlayerBValue int PlayerBUnits []string Battlefieldld string ActivePlayer Player CurrentRound int CurrentPhase Phase CurrentUnitIdx int CurrentUnitOrder []string }
func (Data) GetCurrentMoveOptions ¶
func (Data) GetIndices ¶
type MoveOptions ¶
type MoveOptions struct { Options AllowedCoordinates []battlefield.Coordinates }
type NewGameRequest ¶
type NewGameRequest struct {
PlayerName string
}
Click to show internal directories.
Click to hide internal directories.