utils

package
Version: v0.0.0-...-5062497 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

func Max(x, y uint32) uint32

func Min

func Min(x, y uint32) uint32

Types

type IdManager

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

func NewIdManager

func NewIdManager() *IdManager

func (*IdManager) IsAsteroidsId

func (manager *IdManager) IsAsteroidsId(id uint32) bool

func (*IdManager) IsBotsId

func (manager *IdManager) IsBotsId(id uint32) bool

func (*IdManager) IsPlayerId

func (manager *IdManager) IsPlayerId(id uint32) bool

func (*IdManager) NextAsteroidsId

func (manager *IdManager) NextAsteroidsId() uint32

func (*IdManager) NextBotId

func (manager *IdManager) NextBotId() uint32

func (*IdManager) NextPlayerId

func (manager *IdManager) NextPlayerId() uint32

type UserNamesRegistry

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

func NewUserNameRegistry

func NewUserNameRegistry() *UserNamesRegistry

func (*UserNamesRegistry) AddUserName

func (registry *UserNamesRegistry) AddUserName(id uint32, userName string)

func (*UserNamesRegistry) GetUserName

func (registry *UserNamesRegistry) GetUserName(id uint32) string

Jump to

Keyboard shortcuts

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