CGUnit_C::CGUnit_C
function · objectlayer · primitive
- Address
0x5fad50· 1137 bytes, up to0x5fb1c0- Meaning
- Builds a unit: the object, its CMovement at +0x9a8, 182 watcher lists, its members, vtable 0x80c4f8
- Confidence
- verified, proof one
- Finding
- objectlayer/units#the-unit-object
- Test
objectlayer::uh_low_hp_gate_difftest
Finding: The unit object in objectlayer: units
0x5fad50(a, block) builds the object part, points +0x118 at the CMovement it
builds at +0x9a8, empties the 182 watcher lists from +0x11c, sets the unit members and the
vtable, and reads the update's movement block (0x5ff070). 0x5fb5e0 tears it down in the reverse order.
Vtable slots 0 to 3 are the deleting destructor, release, reactivation and the post-update pass.
The derivation is in the doc.
Callers 2
- ObjectConstruct objectlayer
- CGPlayer_C::CGPlayer_C objectlayer
Callees 5
- CGUnit_C::SetLowHealth objectlayer
- CGUnit_C::ReadMovementBlock objectlayer
- IsDeadOrGhost objectlayer
- CGObject_C::CGObject_C objectlayer
- CMovement::CMovement collision
Calls and jumps by a bare address, from tables/calls.tsv.