| 1 | /* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */ |
| 2 | #ifndef GAME_SERVER_ENTITIES_DOOR_H |
| 3 | #define GAME_SERVER_ENTITIES_DOOR_H |
| 4 | |
| 5 | #include <game/server/entity.h> |
| 6 | |
| 7 | class CGameWorld; |
| 8 | |
| 9 | class CDoor : public CEntity |
| 10 | { |
| 11 | vec2 m_To; |
| 12 | void ResetCollision(); |
| 13 | int m_Length; |
| 14 | vec2 m_Direction; |
| 15 | |
| 16 | public: |
| 17 | CDoor(CGameWorld *pGameWorld, vec2 Pos, float Rotation, int Length, |
| 18 | int Number); |
| 19 | |
| 20 | void Reset() override; |
| 21 | void Snap(int SnappingClient) override; |
| 22 | }; |
| 23 | |
| 24 | #endif // GAME_SERVER_ENTITIES_DOOR_H |
| 25 | |