C# Class BaseComm.BotConnection

Inheritance: IDisposable
Show file Open project: intel-cornellcup/r2bot Class Usage Examples

Public Methods

Method 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

Method Description
pinger ( ) : void

Method Details

BotConnection() public method

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.
return System

DecodeObstacleGrid() public static method

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

Dispose() public method

Cleanup resources associated with the connection.
public Dispose ( ) : void
return void