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. */
|
2018-07-06 14:11:38 +00:00
|
|
|
#ifndef GAME_SERVER_ENTITIES_DOOR_H
|
|
|
|
#define GAME_SERVER_ENTITIES_DOOR_H
|
2010-08-11 10:33:37 +00:00
|
|
|
|
|
|
|
#include <game/server/entity.h>
|
|
|
|
|
|
|
|
class CTrigger;
|
|
|
|
|
2020-09-26 19:41:58 +00:00
|
|
|
class CDoor : public CEntity
|
2010-08-11 10:33:37 +00:00
|
|
|
{
|
|
|
|
vec2 m_To;
|
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:
|
2011-12-25 13:51:04 +00:00
|
|
|
CDoor(CGameWorld *pGameWorld, vec2 Pos, float Rotation, int Length,
|
2020-09-26 19:41:58 +00:00
|
|
|
int Number);
|
2011-12-25 13:51:04 +00:00
|
|
|
|
2010-08-11 10:33:37 +00:00
|
|
|
virtual void Snap(int SnappingClient);
|
|
|
|
};
|
|
|
|
|
2018-07-06 14:11:38 +00:00
|
|
|
#endif // GAME_SERVER_ENTITIES_DOOR_H
|