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

Method unload_unit

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

Updates the structure as if it has unloaded a single unit from the structure, returning the unit ID.

(&mut self)

Source from the content-addressed store, hash-verified

984 /// Updates the structure as if it has unloaded a single unit from the
985 /// structure, returning the unit ID.
986 pub(crate) fn unload_unit(&mut self) -> UnitID {
987 self.garrison.remove(0)
988 }
989
990 // ************************************************************************
991 // ************************** FACTORY METHODS *****************************

Callers 1

unloadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected