1/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
2#ifndef GAME_CLIENT_PREDICTION_ENTITIES_DOOR_H
3#define GAME_CLIENT_PREDICTION_ENTITIES_DOOR_H
4
5#include <game/client/prediction/entity.h>
6
7class CLaserData;
8
9class CDoor : public CEntity
10{
11 vec2 m_To;
12 vec2 m_Direction;
13 int m_Length;
14 bool m_Active;
15
16 int MapSide() const;
17 int MapLength(int Side);
18
19public:
20 CDoor(CGameWorld *pGameWorld, int Id, const CLaserData *pData);
21 void ResetCollision();
22 bool Match(const CDoor *pDoor) const;
23 void Read(const CLaserData *pData);
24
25 void Destroy() override;
26};
27
28#endif // GAME_CLIENT_PREDICTION_ENTITIES_DOOR_H
29