Documentation ¶
Index ¶
- type GameCommands
- func (gc *GameCommands) Away(arg string)
- func (gc *GameCommands) BenchUnit(arg string)
- func (gc *GameCommands) BoardSpray(arg string)
- func (gc *GameCommands) BuySlot(arg string)
- func (gc *GameCommands) CameraDown(arg string)
- func (gc *GameCommands) CameraUp(arg string)
- func (gc *GameCommands) Disconnect(arg string)
- func (gc *GameCommands) Dps(arg string)
- func (gc *GameCommands) EnemiesDown(arg string)
- func (gc *GameCommands) EnemiesUp(arg string)
- func (gc *GameCommands) FakeGCDown(arg string)
- func (gc *GameCommands) Home(arg string)
- func (gc *GameCommands) Levelup(arg string)
- func (gc *GameCommands) Lock(arg string)
- func (gc *GameCommands) Opponent(arg string)
- func (gc *GameCommands) Quit(arg string)
- func (gc *GameCommands) Reroll(arg string)
- func (gc *GameCommands) SellUnit(arg string)
- func (gc *GameCommands) SendCommand(command string)
- func (gc *GameCommands) Sharecode(arg string)
- func (gc *GameCommands) Toggle(arg string)
- type TelnetCaller
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) 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) 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) Levelup ¶
func (gc *GameCommands) Levelup(arg string)
Levelup - Send a levelup command
func (*GameCommands) Opponent ¶
func (gc *GameCommands) Opponent(arg string)
Opponent - Spectate current's opponents board
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
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