DDraceNetwork Documentation
Loading...
Searching...
No Matches
door.h
Go to the documentation of this file.
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
6
7class CLaserData;
8
9class CDoor : public CEntity
10{
15
16public:
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
void ResetCollision()
Definition door.cpp:22
vec2 m_Direction
Definition door.h:12
void Read(const CLaserData *pData)
Definition door.cpp:66
int m_Length
Definition door.h:13
bool Match(const CDoor *pDoor) const
Definition door.cpp:73
vec2 m_To
Definition door.h:11
CDoor(CGameWorld *pGameWorld, int Id, const CLaserData *pData)
Definition door.cpp:10
void Destroy() override
Definition door.cpp:50
bool m_Active
Definition door.h:14
friend CGameWorld
Definition entity.h:17
CEntity(CGameWorld *pGameWorld, int Objtype, vec2 Pos=vec2(0, 0), int ProximityRadius=0)
Definition entity.cpp:11
Definition laser_data.h:13
vector2_base< float > vec2
Definition vmath.h:161