2011-12-25 13:33:05 +00:00
|
|
|
/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
|
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;
|
|
|
|
|
2011-12-25 13:51:04 +00:00
|
|
|
class CDoor: public CEntity
|
2010-08-11 10:33:37 +00:00
|
|
|
{
|
|
|
|
vec2 m_To;
|
2010-11-13 13:22:19 +00:00
|
|
|
int m_EvalTick;
|
2010-09-25 16:39:52 +00:00
|
|
|
void ResetCollision();
|
|
|
|
int m_Length;
|
|
|
|
vec2 m_Direction;
|
2011-12-25 13:51:04 +00:00
|
|
|
|
2010-08-11 10:33:37 +00:00
|
|
|
public:
|
2010-09-01 08:52:59 +00:00
|
|
|
void Open(int Tick, bool ActivatedTeam[]);
|
2010-09-25 16:39:52 +00:00
|
|
|
void Open(int Team);
|
2010-09-01 10:22:15 +00:00
|
|
|
void Close(int Team);
|
2011-12-25 13:51:04 +00:00
|
|
|
CDoor(CGameWorld *pGameWorld, vec2 Pos, float Rotation, int Length,
|
|
|
|
int Number);
|
|
|
|
|
2010-08-11 10:33:37 +00:00
|
|
|
virtual void Reset();
|
|
|
|
virtual void Tick();
|
|
|
|
virtual void Snap(int SnappingClient);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|