node

package
v0.0.0-...-71ffa5d Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Name        string `json:"name"`
	Url         string `json:"url"`
	MaxSessions int    `json:"max_sessions"`
	Error       bool   `json:"error"`
	// contains filtered or unexported fields
}

func (*Node) Connect

func (n *Node) Connect() error

func (*Node) CreateBattle

func (n *Node) CreateBattle(startPlayers []*player.Player) string

func (*Node) CreateBot

func (n *Node) CreateBot(battleUUID string, playerID, x, y, teamID int)

func (*Node) CreateObj

func (n *Node) CreateObj(battleUUID string, playerID, objID, x, y, teamID int)

func (*Node) CreateUnit

func (n *Node) CreateUnit(battleUUID string, playerID, x, y int)

func (*Node) FindBattle

func (n *Node) FindBattle(battleUUID string) bool

func (*Node) InitBattle

func (n *Node) InitBattle(battleUUID string, playerID int) rpc_request.Request

func (*Node) InitNode

func (n *Node) InitNode() error

func (*Node) Input

func (n *Node) Input(battleUUID string, playerID int, w, a, s, d, sp, st, z bool, x, y int, fire bool)

func (*Node) StartLoad

func (n *Node) StartLoad(battleUUID string, playerID int) rpc_request.Request

func (*Node) Stop

func (n *Node) Stop()

Jump to

Keyboard shortcuts

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