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

Method worker_build_health

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

The health restored when building a structure. InappropriateUnitType - the unit is not a worker.

(&self)

Source from the content-addressed store, hash-verified

647 ///
648 /// * InappropriateUnitType - the unit is not a worker.
649 pub fn worker_build_health(&self) -> Result<u32, GameError> {
650 self.ok_if_unit_type(Worker)?;
651 Ok(self.build_health)
652 }
653
654 /// The health restored when repairing a structure.
655 ///

Callers 1

buildMethod · 0.80

Calls 1

ok_if_unit_typeMethod · 0.80

Tested by

no test coverage detected