Documentation
¶
Overview ¶
Package remote contains tcp server and clients to control the game over the network.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a remote connection to the game server, allowing communication and interaction with the game world.
func NewClient ¶
NewClient creates a new Client instance and establishes a connection to the game server at the provided host and port. It initializes the TCP connection and polls the world status every 100ms.
func (*Client) Fire ¶
Fire sends a 'Fire' command to the game server to initiate an attack from one tile to another. (see Fire methode from core.World)
func (*Client) Move ¶
Move sends a 'Move' command to the game server to move a unit from one tile to another. (see Move methode from core.World)
Click to show internal directories.
Click to hide internal directories.