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

Method queue_research

battlecode-engine/src/world.rs:1180–1182  ·  view source on GitHub ↗

Adds a branch to the back of the queue, if it is a valid upgrade, and starts research if it is the first in the queue. Returns whether the branch was successfully added.

(&mut self, branch: Branch)

Source from the content-addressed store, hash-verified

1178 ///
1179 /// Returns whether the branch was successfully added.
1180 pub fn queue_research(&mut self, branch: Branch) -> bool {
1181 self.my_research_mut().add_to_queue(&branch)
1182 }
1183
1184 /// Update the current research and process any completed upgrades.
1185 fn process_research(&mut self, team: Team) {

Callers 4

run.pyFile · 0.45
run.pyFile · 0.45
applyMethod · 0.45
examplefuncsplayerFunction · 0.45

Calls 2

add_to_queueMethod · 0.80
my_research_mutMethod · 0.80

Tested by

no test coverage detected