43typedef unsigned long HObj;
45 friend void CObjHolder_Step( b8PpuCmd* cmd_ );
48 private: u32 _id_cobj;
58 private: u32 _cnt_step_called = 0;
59 private:
virtual void vOnStep() = 0;
63 private:
virtual void vOnTouch(){}
64 private:
void Touch();
67 private:
virtual void vOnDraw( b8PpuCmd* cmd_ ){
70 private:
void Draw( b8PpuCmd* cmd_ );
73 private: HObj _hObj = HANDLE_NULL;
91 private: u32 _priority = 0;
97 _priority = priority_;
108 private:
bool _req_kill =
false;
124 private: u32 _type_id = 0x00000000;
145 return _type_id == type_id_ ? true :
false;
153extern void CObjHolder_Reset();
154extern HObj CObjHolder_Entry(
CObj* obj , u32 priority );
155extern void CObjHolder_Remove( HObj hObj );
156extern void CObjHolder_Enum( std::vector< HObj >& dest_ , u32 prio_ , u32 type_id_ );
157extern void CObjHolder_Step( b8PpuCmd* cmd_ );
158extern void CObjHolder_Pause( s32 cnt_pause_ );
159extern CObj* cobj( HObj hObj );
162 HObj _h = HANDLE_NULL;
166 _p =
dynamic_cast< T*
>( cobj( _h ) );
167 _ASSERT( _p ,
"failed dynamic_cast" );
177 _ASSERT( 0 ,
"failed dynamic_cast" );
bool IsTypeOf(u32 type_id_)
Check if the object is of a specific type.
Definition cobj.h:144
u32 GetPriority() const
Get the priority of the object.
Definition cobj.h:103
HObj GetHandle() const
Get the handle of the object.
Definition cobj.h:78
void SetTypeId(u32 type_id_)
Set the type ID of the object.
Definition cobj.h:129
void ReqKill()
Request to kill the object.
Definition cobj.h:112
u32 GetId() const
Get the ID of the object.
Definition cobj.h:53
bool IsReqKill() const
Check if the object is requested to be killed.
Definition cobj.h:119
u32 GetTypeId()
Get the type ID of the object.
Definition cobj.h:136
void SetHandle(HObj hObj_)
Set the handle of the object.
Definition cobj.h:86
void SetPriority(u32 priority_)
Set the priority of the object.
Definition cobj.h:96
Handle< T > operator=(HObj h_)
Assignment operator for handle.
Definition cobj.h:187
Handle(HObj hObj_)
Constructor with handle parameter.
Definition cobj.h:208
T * operator->()
Arrow operator to access the underlying object.
Definition cobj.h:175
Module for managing pointers using handles.