📄 object.h
字号:
// Object.h: interface for the Object class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_OBJECT_H__BD5D4737_D6F1_4F7C_AB26_54DB2EEB0929__INCLUDED_)
#define AFX_OBJECT_H__BD5D4737_D6F1_4F7C_AB26_54DB2EEB0929__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <SCObject.h>
#include <ProgramCommon/WzDataType.h>
#include <Const.h>
class Field;
struct WzVector;
struct MSG_BASE_FORWARD;
class Object : public SCObject
{
public:
Object();
virtual ~Object();
virtual VOID Update( DWORD dwDeltaTick );
inline DWORD GetSectorIndex() { return m_dwSectorIndex; }
inline VOID SetSectorIndex(DWORD dwIdx) { m_dwSectorIndex = dwIdx; }
inline DWORD GetOldSectorIndex() { return m_dwOldSectorIndex; }
inline VOID SetOldSectorIndex(DWORD dwIdx) { m_dwOldSectorIndex = dwIdx; }
inline Field * GetField() { return m_pField; }
virtual VOID SetField(Field* pField) { m_pField = pField; } ///< Character狼 SetField绰 辨茫扁甫 困茄 内靛啊 歹 甸绢埃促. -> virtual
virtual BOOL SendPacket( MSG_BASE_FORWARD * pMsg, WORD wSize ) { __UNUSED(pMsg); __UNUSED(wSize); return FALSE; }
virtual VOID OnEnterField(Field* pField, WzVector* pwzVec);
virtual VOID OnLeaveField();
public :
virtual VOID Reuse() { Release(); }
protected:
virtual BOOL Init();
virtual VOID Release();
private:
Field * m_pField; // 泅犁 Field狼 器牢磐
DWORD m_dwSectorIndex; // 泅犁 Sector狼 Index
DWORD m_dwOldSectorIndex; // 捞傈 Sector狼 Index
};
#endif // !defined(AFX_OBJECT_H__BD5D4737_D6F1_4F7C_AB26_54DB2EEB0929__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -