mirror of
https://github.com/zeldaret/ss
synced 2026-05-24 07:10:53 -04:00
26af4db82d
* update from dtk-template and start work towards using clangd * include <a> -> "a" * Update build.yml * remove/add non-trivial class in union warning
42 lines
803 B
C++
42 lines
803 B
C++
#ifndef D_T_TOUCH_H
|
|
#define D_T_TOUCH_H
|
|
|
|
#include "d/t/d_tg.h"
|
|
#include "m/m_mtx.h"
|
|
#include "s/s_State.hpp"
|
|
#include "s/s_StateMgr.hpp"
|
|
|
|
class dTgTouchTag : public dTg_c {
|
|
public:
|
|
dTgTouchTag() : mStateMgr(*this, sStateID::null) {}
|
|
virtual ~dTgTouchTag() {}
|
|
virtual int create() override;
|
|
virtual int actorExecute() override;
|
|
virtual int draw() override;
|
|
virtual int doDelete() override;
|
|
|
|
STATE_FUNC_DECLARE(dTgTouchTag, Wait);
|
|
|
|
private:
|
|
u8 getActivatorIndex() {
|
|
return params & 0xF;
|
|
}
|
|
|
|
u8 getZoneFlag() {
|
|
return params >> 0x4;
|
|
}
|
|
|
|
u8 getChkFlag() {
|
|
return params >> 0xC;
|
|
}
|
|
|
|
STATE_MGR_DECLARE(dTgTouchTag);
|
|
mMtx_c mAreaOfEffect;
|
|
u16 mFlagTimer;
|
|
u8 mActivatorIndex;
|
|
u8 mZoneFlag;
|
|
u8 mChkFlag;
|
|
};
|
|
|
|
#endif
|