2010-08-11 10:33:37 +00:00
|
|
|
#ifndef GAME_SERVER_ENTITY_DOOR_H
|
|
|
|
#define GAME_SERVER_ENTITY_DOOR_H
|
|
|
|
|
|
|
|
#include <game/server/entity.h>
|
|
|
|
|
|
|
|
class CTrigger;
|
|
|
|
|
|
|
|
class CDoor : public CEntity
|
|
|
|
{
|
|
|
|
vec2 m_To;
|
2010-08-31 17:32:25 +00:00
|
|
|
int m_ActivatedTeam;
|
2010-08-11 10:33:37 +00:00
|
|
|
int m_EvalTick;
|
|
|
|
bool m_Opened;
|
|
|
|
bool HitCharacter();
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
void Open(int Tick);
|
|
|
|
void Close();
|
2010-08-11 18:29:08 +00:00
|
|
|
CDoor(CGameWorld *pGameWorld, vec2 Pos, float Rotation, int Length, bool Opened);
|
2010-08-11 10:33:37 +00:00
|
|
|
|
|
|
|
virtual void Reset();
|
|
|
|
virtual void Tick();
|
|
|
|
virtual void Snap(int SnappingClient);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|