mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-22 02:24:17 +00:00
27 lines
444 B
C
27 lines
444 B
C
|
#ifndef GAME_SERVER_ENTITY_DOOR_H
|
||
|
#define GAME_SERVER_ENTITY_DOOR_H
|
||
|
|
||
|
#include <game/server/entity.h>
|
||
|
|
||
|
class CTrigger;
|
||
|
|
||
|
class CDoor : public CEntity
|
||
|
{
|
||
|
vec2 m_To;
|
||
|
int m_EvalTick;
|
||
|
bool m_Opened;
|
||
|
bool HitCharacter();
|
||
|
|
||
|
public:
|
||
|
|
||
|
void Open(int Tick);
|
||
|
void Close();
|
||
|
CDoor(GameWorld *pGameWorld, vec2 Pos, float Rotation, int Length, bool Opened);
|
||
|
|
||
|
virtual void Reset();
|
||
|
virtual void Tick();
|
||
|
virtual void Snap(int SnappingClient);
|
||
|
};
|
||
|
|
||
|
#endif
|