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

Method clone

game/state/rules/battle/battlemapsector.cpp:21–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21sp<BattleMapSector::LineOfSightBlock> BattleMapSector::LineOfSightBlock::clone(Vec3<int> shift)
22{
23 auto b = mksp<BattleMapSector::LineOfSightBlock>();
24
25 b->start = start + shift;
26 b->end = end + shift;
27
28 b->ai_patrol_priority = ai_patrol_priority;
29 b->ai_target_priority = ai_target_priority;
30
31 b->also_allow_civilians = also_allow_civilians;
32 b->low_priority = low_priority;
33 b->spawn_type = spawn_type;
34 b->spawn_priority = spawn_priority;
35 b->spawn_large_units = spawn_large_units;
36 b->spawn_walking_units = spawn_walking_units;
37
38 return b;
39}
40
41UString BattleMapSectorTiles::getMapSectorPath() { return fw().getDataDir() + "/maps"; }
42} // namespace OpenApoc

Callers 1

battlemap.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected