OdysseyDecomp/lib/al/include/Project/HitSensor/HitSensor.h
MonsterDruide1 69d81ebd91
Custom format validation (Linting) (#17)
* Add script to verify formatting
* Add newline to end of files
* Add `#pragma once` to top of headers
* Add own header to includes at top of source files
* Remove useless namespace qualifiers
* Sort visibility modifiers correctly
* Format `#include`s in three blocks
* Remove `;` after namespaces
* Add for custom style checking to `lint`-GitHub-Action
* Format: No "// 0x" offset comments
* Remove macros from padding
2024-01-07 00:33:09 +01:00

46 lines
1.2 KiB
C++

#pragma once
#include <math/seadMatrix.h>
#include <math/seadVector.h>
#include "Project/HitSensor/SensorHitGroup.h"
namespace al {
class LiveActor;
class HitSensor {
public:
HitSensor(LiveActor*, const char*, u32, f32, unsigned short, const sead::Vector3<f32>*,
const sead::Matrix34<f32>*, const sead::Vector3<f32>&);
bool trySensorSort();
void setFollowPosPtr(const sead::Vector3<f32>*);
void setFollowMtxPtr(const sead::Matrix34<f32>*);
void validate();
void invalidate();
void validateBySystem();
void invalidateBySystem();
void update();
void addHitSensor(HitSensor*);
const char* mName; // _0
s32 _8;
f32 _C;
f32 _10;
f32 _14;
f32 _18;
unsigned short mMaxSensorCount; // _1C
unsigned short mSensorCount; // _1E
HitSensor** mSensors; // _20
unsigned long _28;
SensorHitGroup* mHitGroup; // _30
bool mIsValidBySystem; // _38
bool mIsValid; // _39
bool _3A[4]; // unknown type
unsigned short _3E;
LiveActor* mParentActor; // _40
const sead::Vector3<f32>* mFollowPos; // _48
const sead::Matrix34<f32>* mFollowMtx; // _50
};
} // namespace al