MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / InitializeDragon

Function InitializeDragon

TombEngine/Objects/TR2/Entity/Dragon.cpp:150–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 void InitializeDragon(short itemNumber)
151 {
152 auto& item = g_Level.Items[itemNumber];
153
154 // Initialize front body segment.
155 InitializeCreature(item.Index);
156 SetAnimation(item, DRAGON_ANIM_IDLE);
157
158 // Initialize back body segment.
159 InitializeDragonBack(item);
160 }
161
162 static void SyncDragonBackSegment(ItemInfo& frontItem)
163 {

Callers

nothing calls this directly

Calls 3

InitializeCreatureFunction · 0.85
SetAnimationFunction · 0.85
InitializeDragonBackFunction · 0.85

Tested by

no test coverage detected