Méthode | Description | |
---|---|---|
FakeRobot ( EnvironmentMap map ) : System |
Creates a fake robot that plays in the given map.
|
|
Move ( int steps, System.Action callback ) : void |
Moves the robot forwards or backwards.
|
|
Rotate ( int degrees, System.Action callback ) : void |
Rotates the robot in place.
|
|
SonarPing ( Action |
Sends a SONAR ping.
|
|
Step ( ) : void |
Runs a single step of the robot's simulation. This method should be called repeatedly.
|
|
Teleport ( Location destination ) : void |
Instantly teleports the robot to an arbitrary location.
|
Méthode | Description | |
---|---|---|
MotionIterator ( int steps, System.Action callback ) : IEnumerator | ||
RotationIterator ( int degrees, System.Action callback ) : IEnumerator |
public FakeRobot ( EnvironmentMap map ) : System | ||
map | EnvironmentMap | |
Résultat | System |
public Move ( int steps, System.Action callback ) : void | ||
steps | int | The (signed) number of units to move. |
callback | System.Action | A callback to call when the movement completes. |
Résultat | void |
public Rotate ( int degrees, System.Action callback ) : void | ||
degrees | int | The number of degrees to rotate by. |
callback | System.Action | A callback to call when the rotation completes. |
Résultat | void |
public SonarPing ( Action |
||
callback | Action |
|
Résultat | void |
public Teleport ( Location destination ) : void | ||
destination | Location | The location to move to. This location must be unoccupied. |
Résultat | void |