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

Method setLocation

game/ui/components/agentassignment.cpp:180–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180void AgentAssignment::setLocation(sp<Agent> agent)
181{
182 this->agent = agent;
183 this->vehicle = agent->currentVehicle;
184 this->building = agent->currentBuilding;
185
186 if (agent->currentVehicle && agent->currentVehicle->currentBuilding)
187 {
188 this->building = agent->currentVehicle->currentBuilding;
189 }
190
191 updateLocation();
192}
193
194void AgentAssignment::setLocation(sp<Vehicle> vehicle)
195{

Callers 3

beginMethod · 0.45
beginMethod · 0.45
beginMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected