0ad/source/simulation/EntityHandles.h
MarkT 6d5afc10ff Added PASAP entity systems
This was SVN commit r246.
2004-05-21 23:46:16 +00:00

35 lines
No EOL
501 B
C++
Executable file

#ifndef ENTITY_HANDLE_INCLUDED
#define ENTITY_HANDLE_INCLUDED
#include "types.h"
#define INVALID_HANDLE 65535
class CEntity;
class CEntityManager;
class CHandle
{
public:
CEntity* m_entity;
u16 m_refcount;
CHandle();
};
class HEntity
{
friend CEntityManager;
u16 m_handle;
void addRef();
void decRef();
HEntity( u16 index );
public:
CEntity& operator*();
CEntity* operator->();
HEntity();
HEntity( const HEntity& copy );
void operator=( const HEntity& copy );
~HEntity();
};
#endif