pikmin2/include/ResetManager.h
EpochFlame 393dcd1dba consistent member variable naming
requested by @intns
2023-01-25 18:02:08 -05:00

37 lines
768 B
C

#ifndef _RESETMANAGER_H
#define _RESETMANAGER_H
#include "types.h"
#include "BitFlag.h"
enum ResetManagerFlags {
RESETFLAG_1 = 0x1,
RESETFLAG_2 = 0x2,
RESETFLAG_3 = 0x4,
RESETFLAG_4 = 0x8,
RESETFLAG_29 = 0x10000000,
};
struct ResetManager {
ResetManager(f32);
virtual void draw(); // _08
virtual bool updateStatusEffects(); // _0C
void update();
bool isWritingMemoryCard();
bool isSoundSystemStopped();
inline void setFlag(u32 flag) { mFlags.typeView |= flag; }
inline void resetFlag(u32 flag) { mFlags.typeView &= ~flag; }
inline bool isFlag(u32 flag) { return mFlags.typeView & flag; }
// _00 VTBL
u32 mState; // _04
f32 mStatusTimer; // _08
BitFlag<u32> mFlags; // _40
int mCounter; // _10
};
#endif