visual

package
v0.0.0-...-7d4cad4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STOPWATCH_PATH = "stopwatch.png"
	POINTER_PATH   = "pointer.png"
)
View Source
const (
	FONT_PATH = "m50.ttf"
)

Variables

This section is empty.

Functions

func NewBarVis

func NewBarVis() *barVis

func NewClock2Vis

func NewClock2Vis() *clock2Vis

func NewClockVis

func NewClockVis() *clockVis

func NewGameVis

func NewGameVis() *gameVis

func NewmockRaces_UpdateRaceServer

func NewmockRaces_UpdateRaceServer(
	maxWait, minWait,
	maxDistanceDelta, minDistanceDelta,
	playerCount, maxDistance, maxTime int) *mockRaces_UpdateRaceServer

func VisualServer

func VisualServer(cfg core.VisualConfig)

Types

type BaseVis

type BaseVis struct {
	VisInterface
	// contains filtered or unexported fields
}

func (*BaseVis) GetVisCfg

func (b *BaseVis) GetVisCfg() *pb.VisConfiguration

func (*BaseVis) IsConfigured

func (b *BaseVis) IsConfigured() bool

func (*BaseVis) ResetConfiguration

func (b *BaseVis) ResetConfiguration() bool

type RacingData

type RacingData struct {
	// contains filtered or unexported fields
}

type VisInterface

type VisInterface interface {
	pb.VisualServer
	Run()
	ResetConfiguration() bool
	IsConfigured() bool
	GetVisCfg() *pb.VisConfiguration
	Clear()
	// contains filtered or unexported methods
}

func Reconfigure

func Reconfigure(b VisInterface) VisInterface

func SetupVis

func SetupVis(hostName string, visName string, fullscreen bool, resolutionWidth uint,
	resolutionHeight uint, movingUnit uint, distFactor uint) (VisInterface, error)

type VisServer

type VisServer struct {
	// contains filtered or unexported fields
}

func SetupVisServer

func SetupVisServer(port uint, debug bool, vis VisInterface) (*VisServer, error)

func (*VisServer) Run

func (v *VisServer) Run()

func (*VisServer) Stop

func (v *VisServer) Stop()

Jump to

Keyboard shortcuts

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