C# Class BaseComm.BotConnection

Inheritance: IDisposable
Afficher le fichier Open project: intel-cornellcup/r2bot Class Usage Examples

Méthodes publiques

Méthode Description
BotConnection ( BotToBaseDisp_ botToBase, string hostname = "R2D2" ) : System

Represents a connection to R2D2. On construction, this object creates a two-way connection with the bot. To properly shutdown the connection, make sure that the Dispose method is called; this is especially important if you wish to create a new BotConnection later.

DecodeObstacleGrid ( long grid ) : ].bool[

Decode the grid given by the `updateObstacleGrid` function.

Dispose ( ) : void

Cleanup resources associated with the connection.

Private Methods

Méthode Description
pinger ( ) : void

Method Details

BotConnection() public méthode

Represents a connection to R2D2. On construction, this object creates a two-way connection with the bot. To properly shutdown the connection, make sure that the Dispose method is called; this is especially important if you wish to create a new BotConnection later.
public BotConnection ( BotToBaseDisp_ botToBase, string hostname = "R2D2" ) : System
botToBase R2D2.BotToBaseDisp_ Object implementing functions that receive from the bot
hostname string Hostname of the bo.
Résultat System

DecodeObstacleGrid() public static méthode

Decode the grid given by the `updateObstacleGrid` function.
public static DecodeObstacleGrid ( long grid ) : ].bool[
grid long Encoded grid
Résultat ].bool[

Dispose() public méthode

Cleanup resources associated with the connection.
public Dispose ( ) : void
Résultat void