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

Method draw

game/state/tilemap/tileobject_vehicle.cpp:17–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15{
16
17void TileObjectVehicle::draw(Renderer &r, TileTransform &transform, Vec2<float> screenPosition,
18 TileViewMode mode, bool visible, int currentLevel, bool friendly,
19 bool hostile)
20{
21 auto vehicle = this->vehicle.lock();
22 if (!vehicle)
23 {
24 LogError("Called with no owning vehicle object");
25 return;
26 }
27 drawStatic(r, vehicle, transform, screenPosition, mode, visible, currentLevel, friendly,
28 hostile);
29}
30
31void TileObjectVehicle::drawStatic(Renderer &r, sp<Vehicle> vehicle, TileTransform &transform,
32 Vec2<float> screenPosition, TileViewMode mode, bool, int,

Callers 1

drawStaticMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected