types

package
v0.0.0-...-31d85ab Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scenario

type Scenario struct {
	Skip     bool
	Scenario sc.Scenario
}

type ScenarioList

type ScenarioList []Scenario

func (*ScenarioList) MustStart

func (s *ScenarioList) MustStart() bool

func (*ScenarioList) PickedIndex

func (s *ScenarioList) PickedIndex() int

func (*ScenarioList) PickedScenario

func (s *ScenarioList) PickedScenario() *sc.Scenario

type Side

type Side struct {
	Side   int
	Player string
	Color  string
	Ready  bool
}

type SideList

type SideList []*Side

func (*SideList) Find

func (s *SideList) Find(player string) *Side

func (*SideList) FreeSlots

func (s *SideList) FreeSlots() int

func (*SideList) HasColor

func (s *SideList) HasColor(color string) bool

func (*SideList) HasPlayer

func (s *SideList) HasPlayer(player string) bool

func (*SideList) HasSide

func (s *SideList) HasSide(side int) bool

func (*SideList) MustStart

func (s *SideList) MustStart() bool

func (*SideList) Shuffle

func (s *SideList) Shuffle()

func (*SideList) Side

func (s *SideList) Side(side int) *Side

Jump to

Keyboard shortcuts

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