Files
ss/include/m/m3d/m_banm.h
T
Elijah Thomas 26af4db82d update from dtk-template - clangd :) (#66)
* update from dtk-template and start work towards using clangd

* include <a> -> "a"

* Update build.yml

* remove/add non-trivial class in union warning
2024-10-16 15:36:02 -04:00

39 lines
755 B
C++

#ifndef M3D_M_BANM_H
#define M3D_M_BANM_H
#include "egg/core/eggFrmHeap.h"
#include "m/m_allocator.h"
#include "nw4r/g3d/g3d_anmobj.h"
namespace m3d {
class banm_c {
public:
banm_c() : mpAnmObj(nullptr), mpFrameHeap(nullptr) {}
virtual ~banm_c();
virtual int getType() const = 0;
virtual void remove();
virtual void play();
bool createAllocator(mAllocator_c *alloc, u32 *pSize);
bool IsBound() const;
f32 getFrame() const;
void setFrameOnly(f32);
f32 getRate() const;
void setRate(f32);
inline nw4r::g3d::AnmObj *getAnimObj() const {
return mpAnmObj;
}
protected:
nw4r::g3d::AnmObj *mpAnmObj;
EGG::FrmHeap *mpFrameHeap;
mAllocator_c mAllocator;
};
} // namespace m3d
#endif