The base representation of the robot being controlled More...
Public Member Functions | |
void | PowerOn () |
Turn on this robot More... | |
void | PowerOff () |
Turn off this robot More... | |
IArena | GetArena () |
Gets the basic information about the arena this robot is in More... | |
void | SendSignalToArena (ArenaSignals signal) |
Sends a signal to the arena from this robot More... | |
IRobotSensor | GetSensor (int index) |
Gets an interface to one of the sensors on this robot More... | |
int | GetSensorCount< T > () |
Gets the count of sensors of the chosen type More... | |
T | GetSensor< T > (int index=0) |
Gets the requested sensor More... | |
IRobotPropeller | GetPropeller (int index) |
Gets an interface to one of the propellers on this robot More... | |
IRobotThruster | GetThruster (int index) |
Gets an interface to one of the thrusters on this robot More... | |
IRobotWheel | GetWheel (int index) |
Gets an interface to one of the wheels on this robot More... | |
LEDColors | GetLEDColor (int index) |
Gets the current color emitted by the LED light at the specified index More... | |
void | SetLEDColor (int index, LEDColors col) |
Set the color to be emitted by an LED on the robot More... | |
bool | AreAnyPartsMoving () |
Returns true if there are any moving parts (which is not allowed prior to the race starting) More... | |
Properties | |
bool | IsPoweredOn [get] |
Whether or not this robot is turned on More... | |
int | NumSensors [get] |
The number of sensors on this robot More... | |
IRobotGyroscope | Gyroscope [get] |
The robot's gyroscope, used for stabilization of rotation More... | |
int | NumPropellers [get] |
The number of propellers on this robot More... | |
int | NumThrusters [get] |
The number of thrusters on this robot More... | |
int | NumWheels [get] |
The number of wheels on this robot More... | |
int | NumLEDs [get] |
Gets the number of LEDs available on this robot for in-flight feedback More... | |
The base representation of the robot being controlled
bool IRobotExplorer.AreAnyPartsMoving | ( | ) |
Returns true if there are any moving parts (which is not allowed prior to the race starting)
IArena IRobotExplorer.GetArena | ( | ) |
Gets the basic information about the arena this robot is in
LEDColors IRobotExplorer.GetLEDColor | ( | int | index | ) |
Gets the current color emitted by the LED light at the specified index
index | The index of the light to query |
IRobotPropeller IRobotExplorer.GetPropeller | ( | int | index | ) |
Gets an interface to one of the propellers on this robot
index | The index of the propeller (from 0 to [NumPropellers-1]) |
IRobotSensor IRobotExplorer.GetSensor | ( | int | index | ) |
Gets an interface to one of the sensors on this robot
index | The index of the sensor (from 0 to [NumSensors-1]) |
T IRobotExplorer.GetSensor< T > | ( | int | index = 0 | ) |
Gets the requested sensor
T | The type of the sensor |
index | The index of sensors of type T |
T | : | IRobotSensor |
int IRobotExplorer.GetSensorCount< T > | ( | ) |
Gets the count of sensors of the chosen type
T | The type of sensors to check for |
T | : | IRobotSensor |
IRobotThruster IRobotExplorer.GetThruster | ( | int | index | ) |
Gets an interface to one of the thrusters on this robot
index | The index of the thruster (from 0 to [NumThrusters-1]) |
IRobotWheel IRobotExplorer.GetWheel | ( | int | index | ) |
Gets an interface to one of the wheels on this robot
index | The index of the wheel (from 0 to [NumWheels-1]) |
void IRobotExplorer.PowerOff | ( | ) |
Turn off this robot
void IRobotExplorer.PowerOn | ( | ) |
Turn on this robot
void IRobotExplorer.SendSignalToArena | ( | ArenaSignals | signal | ) |
Sends a signal to the arena from this robot
signal | The signal to send |
void IRobotExplorer.SetLEDColor | ( | int | index, |
LEDColors | col | ||
) |
Set the color to be emitted by an LED on the robot
index | The index of the light to set |
col | The color for the light to shine |
|
get |
The robot's gyroscope, used for stabilization of rotation
|
get |
Whether or not this robot is turned on
|
get |
Gets the number of LEDs available on this robot for in-flight feedback
|
get |
The number of propellers on this robot
|
get |
The number of sensors on this robot
|
get |
The number of thrusters on this robot
|
get |
The number of wheels on this robot