MCPcopy Index your code
hub / github.com/battlecode/battlecode-2018 / be_overcharged

Method be_overcharged

battlecode-engine/src/unit.rs:897–901  ·  view source on GitHub ↗

Resets a unit's move, attack, and ability cooldowns.

(&mut self)

Source from the content-addressed store, hash-verified

895
896 /// Resets a unit's move, attack, and ability cooldowns.
897 pub(crate) fn be_overcharged(&mut self) {
898 self.movement_heat = 0;
899 self.attack_heat = 0;
900 self.ability_heat = 0;
901 }
902
903 // ************************************************************************
904 // ************************* STRUCTURE METHODS ****************************

Callers 1

overchargeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected