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

Method factory_max_rounds_left

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

The maximum number of rounds left to produce a robot in this factory. InappropriateUnitType - the unit is not a factory.

(&self)

Source from the content-addressed store, hash-verified

1047 ///
1048 /// * InappropriateUnitType - the unit is not a factory.
1049 pub fn factory_max_rounds_left(&self) -> Result<Rounds, GameError> {
1050 self.ok_if_unit_type(Factory)?;
1051 Ok(self.factory_max_rounds_left)
1052 }
1053
1054 /// Returns OK if the factory can produce a robot of this type.
1055 ///

Callers 2

test_factory_productionFunction · 0.80
test_factoryFunction · 0.80

Calls 1

ok_if_unit_typeMethod · 0.80

Tested by 2

test_factory_productionFunction · 0.64
test_factoryFunction · 0.64