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_SERVER_ENTITIES_DOOR_H
3#define GAME_SERVER_ENTITIES_DOOR_H
4
6
7class CGameWorld;
8
9class CDoor : public CEntity
10{
11 vec2 m_To;
13 int m_Length;
15
16public:
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
Definition door.h:10
void ResetCollision()
vec2 m_Direction
Definition door.h:12
int m_Length
Definition door.h:13
void Reset() override
Definition door.cpp:43
vec2 m_To
Definition door.h:11
CDoor(CGameWorld *pGameWorld, int Id, const CLaserData *pData)
Definition door.cpp:10
void Snap(int SnappingClient) override
Definition door.cpp:48
Definition entity.h:13
friend CGameWorld
Definition entity.h:17
Definition gameworld.h:18
vector2_base< float > vec2
Definition vmath.h:161