hall

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Broadcast

func Broadcast(msg string)

func Enter

func Enter(session int, u User) bool

func HandleClientMessage

func HandleClientMessage(session int, msgType string, msgData interface{})

func Leave

func Leave(session int)

func NotifyHCBattleStatus

func NotifyHCBattleStatus()

func NotifyHCPlayerInfos

func NotifyHCPlayerInfos()

Types

type User

type User interface {
	net.Peer
	Name() string

	//TODO remove
	Login()
	Tick()
	Kick(reason string)

	EnterService(service string)

	GetHP() int
	SetHP(hp int)
}

Jump to

Keyboard shortcuts

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