| 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 | |
| 7 | class CLaserData; |
| 8 | |
| 9 | class CDoor : public CEntity |
| 10 | { |
| 11 | vec2 m_To; |
| 12 | vec2 m_Direction; |
| 13 | int m_Length; |
| 14 | bool m_Active; |
| 15 | |
| 16 | public: |
| 17 | CDoor(CGameWorld *pGameWorld, int Id, const CLaserData *pData); |
| 18 | void ResetCollision(); |
| 19 | bool Match(const CDoor *pDoor) const; |
| 20 | void Read(const CLaserData *pData); |
| 21 | |
| 22 | void Destroy() override; |
| 23 | }; |
| 24 | |
| 25 | #endif // GAME_CLIENT_PREDICTION_ENTITIES_DOOR_H |
| 26 | |