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

Method worker_harvest_amount

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

The maximum amount of karbonite harvested from a deposit in one turn. InappropriateUnitType - the unit is not a worker.

(&self)

Source from the content-addressed store, hash-verified

663 ///
664 /// * InappropriateUnitType - the unit is not a worker.
665 pub fn worker_harvest_amount(&self) -> Result<u32, GameError> {
666 self.ok_if_unit_type(Worker)?;
667 Ok(self.harvest_amount)
668 }
669
670 /// Ok if the worker can perform a worker action (building, blueprinting,
671 /// harvesting, or replicating).

Callers 1

harvestMethod · 0.80

Calls 1

ok_if_unit_typeMethod · 0.80

Tested by

no test coverage detected