00001
#ifndef ENTITY_H
00002
#define ENTITY_H
00003
00004
#pragma once
00005
#include "Common.h"
00006
00007
#include <PropertyLib\IPropertyHost.h>
00008
00010
00014 class CEntity :
public IPropertyHost
00015 {
00016
public:
00017
CEntity();
00018
virtual ~
CEntity();
00023
void SetID(UINT uiID);
00028 UINT
GetID();
00033
void SetName(CString& strName);
00038 CString&
GetName();
00043 eEntityType
GetEntityType();
00049
virtual bool PropertyChanging(
const void* pvProperty ,
void* pvNewValue);
00054
virtual void GetProperties(EPropList& PropList);
00055
00056
protected:
00061
void SetEntityType(eEntityType eType);
00066
virtual bool IsOfType(eEntityType eType);
00067
00068
private:
00069 UINT m_uiID;
00070 eEntityType m_EntityType;
00071 CString m_strName;
00072 };
00073
00074
#endif