JuniorRobot BearGunTo Method Robocode Robot API for .NET
Turns the gun to the specified angle (in degrees) relative to body of this robot. The gun will turn to the side with the shortest delta angle to the specified angle.

Namespace: Robocode
Assembly: robocode (in robocode.dll) Version: 1.9.2.0
Syntax

public void BearGunTo(
	int angle
)

Parameters

angle
Type: OnlineSystem Int32
the angle to turn the gun to relative to the body of this robot
See Also