Documentation ¶
Index ¶
- func GetActionTypes(playerName string) []mqtt.ActionType
- func GetActions(playerName string) []mqtt.SpheroAction
- func HandleIncomingSpheroActions()
- func ProvideNextActionTypes()
- func SetActionTypes(actionTypes []mqtt.ActionType, playerName string)
- func SetActions(actions []mqtt.SpheroAction, playerName string)
- func ValidateActions(actions []mqtt.SpheroAction, playerName string) (bool, string)
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.
Click to show internal directories.
Click to hide internal directories.