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

Method worker_act

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

Updates the unit as if it has performed a worker action.

(&mut self)

Source from the content-addressed store, hash-verified

684
685 /// Updates the unit as if it has performed a worker action.
686 pub(crate) fn worker_act(&mut self) {
687 self.has_worker_acted = true;
688 }
689
690 /// Updates the worker as though it has replicated. In reality,
691 /// just updates the worker's ability heat.

Callers 5

harvestMethod · 0.80
blueprintMethod · 0.80
buildMethod · 0.80
repairMethod · 0.80
replicateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected