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

Method structure_is_built

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

Whether this structure has been built. InappropriateUnitType - the unit is not a structure.

(&self)

Source from the content-addressed store, hash-verified

908 ///
909 /// * InappropriateUnitType - the unit is not a structure.
910 pub fn structure_is_built(&self) -> Result<bool, GameError> {
911 self.ok_if_structure()?;
912 Ok(self.is_built)
913 }
914
915 /// The max capacity of a structure.
916 ///

Callers 4

ok_if_can_buildMethod · 0.80
ok_if_can_repairMethod · 0.80
ok_if_structure_builtMethod · 0.80
print_game_ansiMethod · 0.80

Calls 1

ok_if_structureMethod · 0.80

Tested by

no test coverage detected