DDNet 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
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
void ResetCollision()
Definition door.cpp:65
vec2 m_Direction
Definition door.h:12
void Read(const CLaserData *pData)
Definition door.cpp:131
int m_Length
Definition door.h:13
bool Match(const CDoor *pDoor) const
Definition door.cpp:138
vec2 m_To
Definition door.h:11
int MapLength(int Side)
Definition door.cpp:41
CDoor(CGameWorld *pGameWorld, int Id, const CLaserData *pData)
Definition door.cpp:12
void Destroy() override
Definition door.cpp:115
int MapSide() const
Definition door.cpp:29
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:168