mirror of
https://github.com/projectPiki/pikmin2.git
synced 2024-12-01 01:00:33 +00:00
393dcd1dba
requested by @intns
37 lines
768 B
C
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
|