actions

package
v0.0.0-...-df177ff Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetActionTypes

func GetActionTypes(playerName string) []mqtt.ActionType

func GetActions

func GetActions(playerName string) []mqtt.SpheroAction

func HandleIncomingSpheroActions

func HandleIncomingSpheroActions()

func ProvideNextActionTypes

func ProvideNextActionTypes()

Provides a list of Sphero ActionTypes for the next round and sends them to the players mqtt topics

func SetActionTypes

func SetActionTypes(actionTypes []mqtt.ActionType, playerName string)

func SetActions

func SetActions(actions []mqtt.SpheroAction, playerName string)

func ValidateActions

func ValidateActions(actions []mqtt.SpheroAction, playerName string) (bool, string)

Checks whether given list of SpheroActions

  • Contains correct amount of allowed actions
  • Contains just allowed amount of ActionTypes
  • All actions in the list contain correct configuration attributes

Types

This section is empty.

Jump to

Keyboard shortcuts

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