core

package
v0.0.0-...-57333fd Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2014 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Name   string
	Params []string
}

type CommandError

type CommandError struct {
	Id   int
	Desc string
}

func AuthenticationFailedError

func AuthenticationFailedError() CommandError

func BadFormatError

func BadFormatError() CommandError

func CommandLimitReachedError

func CommandLimitReachedError() CommandError

func UnknownCommandError

func UnknownCommandError() CommandError

func (*CommandError) ShouldWait

func (err *CommandError) ShouldWait() bool

type CommandResult

type CommandResult struct {
	Err    *CommandError
	Params [][]interface{}
}

func ErrResult

func ErrResult(err CommandError) CommandResult

func NewErrResult

func NewErrResult(id int, desc string) CommandResult

func NewOkResult

func NewOkResult(params ...[]interface{}) CommandResult

type Game

type Game interface {
	Execute(team Team, cmd Command) CommandResult
	Tick()
}

type Team

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

func NewTeam

func NewTeam(login string) Team

func (Team) String

func (team Team) String() string

Jump to

Keyboard shortcuts

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