src

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameCommands

type GameCommands struct {
	Caller *TelnetCaller
}

GameCommands - Structure holding all game related commands

func (*GameCommands) Away

func (gc *GameCommands) Away(arg string)

Away - Spectate the away board

func (*GameCommands) BenchUnit

func (gc *GameCommands) BenchUnit(arg string)

BenchUnit - Bench the currently selected unit

func (*GameCommands) BoardSpray

func (gc *GameCommands) BoardSpray(arg string)

BoardSpray - Spray a board spray at the current cursor location

func (*GameCommands) BuySlot

func (gc *GameCommands) BuySlot(arg string)

BuySlot - Buy a unit from the shop from slot number 1-5

func (*GameCommands) CameraDown

func (gc *GameCommands) CameraDown(arg string)

CameraDown - Move the camera down

func (*GameCommands) CameraUp

func (gc *GameCommands) CameraUp(arg string)

CameraUp - Move the camera up

func (*GameCommands) Disconnect

func (gc *GameCommands) Disconnect(arg string)

Disconnect - Disconnect from the current server

func (*GameCommands) Dps

func (gc *GameCommands) Dps(arg string)

Dps - Switch to the dps tab

func (*GameCommands) EnemiesDown

func (gc *GameCommands) EnemiesDown(arg string)

EnemiesDown - Move on enemy board down

func (*GameCommands) EnemiesUp

func (gc *GameCommands) EnemiesUp(arg string)

EnemiesUp - Move one enemy board up

func (*GameCommands) FakeGCDown

func (gc *GameCommands) FakeGCDown(arg string)

FakeGCDown - Fake a game coordinator downtime

func (*GameCommands) Home

func (gc *GameCommands) Home(arg string)

Home - Spectate own board

func (*GameCommands) Levelup

func (gc *GameCommands) Levelup(arg string)

Levelup - Send a levelup command

func (*GameCommands) Lock

func (gc *GameCommands) Lock(arg string)

Lock - Lock the shop

func (*GameCommands) Opponent

func (gc *GameCommands) Opponent(arg string)

Opponent - Spectate current's opponents board

func (*GameCommands) Quit

func (gc *GameCommands) Quit(arg string)

Quit - Quit the game client

func (*GameCommands) Reroll

func (gc *GameCommands) Reroll(arg string)

Reroll - Reroll the shop

func (*GameCommands) SellUnit

func (gc *GameCommands) SellUnit(arg string)

SellUnit - Sell the currently selected unit

func (*GameCommands) SendCommand

func (gc *GameCommands) SendCommand(command string)

SendCommand - Function writing commands to the game console

func (*GameCommands) Sharecode

func (gc *GameCommands) Sharecode(arg string)

Sharecode - Generate a board sharecode and print it in the game's console

func (*GameCommands) Toggle

func (gc *GameCommands) Toggle(arg string)

Toggle - Toggle the shop

type TelnetCaller

type TelnetCaller struct {
	Writer *telnet.Writer
	Reader *telnet.Reader
}

TelnetCaller - Custom TelnetCaller structure

func (*TelnetCaller) CallTELNET

func (c *TelnetCaller) CallTELNET(ctx telnet.Context, w telnet.Writer, r telnet.Reader)

CallTELNET - Custom CallTELNET implementation

Jump to

Keyboard shortcuts

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