Files
TheAzack9 02583fc20a First pass on pakkun (#192)
* Clanker pass on pakkun

* Clean up pakkun

* Formatting + fix removed initAttacker implementation

* Add missing UNUSED for pakkun

* Add missing unused createPakkunSmoke that could not easily be found

* Actually use probable unused inlines

* Add comments to fabricated enums

* Pass params in TPathNode constructor to fix inlining

* Remove fabricated setGoalPathMario and use known setGoalPath

* Call the actual constructor

* Add particle enum, remove unecessary default argument in TPakkun + refactor EnemyAttachment fabricated state check
2026-09-19 18:01:28 +03:00

50 lines
788 B
C++

#ifndef ENEMY_PATH_NODE_HPP
#define ENEMY_PATH_NODE_HPP
#include <Strategic/HitActor.hpp>
class TPathNode {
public:
~TPathNode() { }
TPathNode()
{
unk0 = nullptr;
unk4.x = 0;
unk4.y = 0;
unk4.z = 0;
}
// fabricated
TPathNode(THitActor* actor)
: unk0(actor)
, unk4(0.0f, 0.0f, 0.0f)
{
if (actor) {
unk4.set(actor->mPosition.x, actor->mPosition.y,
actor->mPosition.z);
}
}
// fabricated
TPathNode(const JGeometry::TVec3<f32>& point)
{
unk0 = nullptr;
unk4 = point;
}
// TODO: this inline doesn't match in a couple of places.
const JGeometry::TVec3<f32>& getPoint() const
{
if (unk0 != 0)
return unk0->getPosition();
return unk4;
}
public:
/* 0x0 */ THitActor* unk0;
/* 0x4 */ JGeometry::TVec3<f32> unk4;
};
#endif