DDNet documentation
Toggle main menu visibility
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
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
int
MapSide
()
const
;
17
int
MapLength
(
int
Side);
18
19
public
:
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
CDoor::ResetCollision
void ResetCollision()
Definition
door.cpp:65
CDoor::m_Direction
vec2 m_Direction
Definition
door.h:12
CDoor::Read
void Read(const CLaserData *pData)
Definition
door.cpp:131
CDoor::m_Length
int m_Length
Definition
door.h:13
CDoor::Match
bool Match(const CDoor *pDoor) const
Definition
door.cpp:138
CDoor::m_To
vec2 m_To
Definition
door.h:11
CDoor::MapLength
int MapLength(int Side)
Definition
door.cpp:41
CDoor::CDoor
CDoor(CGameWorld *pGameWorld, int Id, const CLaserData *pData)
Definition
door.cpp:12
CDoor::Destroy
void Destroy() override
Definition
door.cpp:115
CDoor::MapSide
int MapSide() const
Definition
door.cpp:29
CDoor::m_Active
bool m_Active
Definition
door.h:14
CEntity::CGameWorld
friend CGameWorld
Definition
entity.h:17
CEntity::CEntity
CEntity(CGameWorld *pGameWorld, int Objtype, vec2 Pos=vec2(0, 0), int ProximityRadius=0)
Definition
entity.cpp:11
CLaserData
Definition
laser_data.h:13
entity.h
vec2
vector2_base< float > vec2
Definition
vmath.h:168
src
game
client
prediction
entities
door.h
Generated by
1.18.0