MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / hire

Method hire

game/state/shared/agent.cpp:388–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386}
387
388void Agent::hire(GameState &state, StateRef<Building> newHome)
389{
390 owner = newHome->owner;
391 homeBuilding = newHome;
392 recentlyHired = true;
393 setMission(state, AgentMission::gotoBuilding(state, *this, newHome, false, true));
394}
395
396void Agent::transfer(GameState &state, StateRef<Building> newHome)
397{

Callers 1

executeOrdersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected