RobotStatus GunHeat Property Robocode Robot API for .NET
Returns the current heat of the gun. The gun cannot Fire unless this is 0. (Calls to Fire will succeed, but will not actually Fire unless GetGunHeat() == 0).

The amount of gun heat generated when the gun is fired is 1 + (firePower / 5). Each turn the gun heat drops by the amount returned by GunCoolingRate, which is a battle setup.

Note that all guns are "hot" at the start of each round, where the gun heat is 3.

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

public double GunHeat { get; }

Property Value

Type: OnlineDouble
See Also