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
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
CDoor
Definition
door.h:10
CDoor::ResetCollision
void ResetCollision()
CDoor::m_Direction
vec2 m_Direction
Definition
door.h:12
CDoor::m_Length
int m_Length
Definition
door.h:13
CDoor::Reset
void Reset() override
Definition
door.cpp:43
CDoor::m_To
vec2 m_To
Definition
door.h:11
CDoor::CDoor
CDoor(CGameWorld *pGameWorld, int Id, const CLaserData *pData)
Definition
door.cpp:10
CDoor::Snap
void Snap(int SnappingClient) override
Definition
door.cpp:48
CEntity
Definition
entity.h:13
CEntity::CGameWorld
friend CGameWorld
Definition
entity.h:17
CGameWorld
Definition
gameworld.h:18
entity.h
vec2
vector2_base< float > vec2
Definition
vmath.h:161
src
game
server
entities
door.h
Generated by
1.16.1