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

Method structure_max_capacity

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

The max capacity of a structure. InappropriateUnitType - the unit is not a structure.

(&self)

Source from the content-addressed store, hash-verified

916 ///
917 /// * InappropriateUnitType - the unit is not a structure.
918 pub fn structure_max_capacity(&self) -> Result<usize, GameError> {
919 self.ok_if_structure()?;
920 Ok(self.max_capacity)
921 }
922
923 /// Returns the units in the structure's garrison.
924 ///

Callers 2

test_factoryFunction · 0.80
test_rocketsFunction · 0.80

Calls 1

ok_if_structureMethod · 0.80

Tested by 2

test_factoryFunction · 0.64
test_rocketsFunction · 0.64