mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 02:28:18 +00:00
29 lines
530 B
C++
29 lines
530 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;
|
|
void ResetCollision();
|
|
int m_Length;
|
|
vec2 m_Direction;
|
|
int m_Angle;
|
|
|
|
public:
|
|
void Open(int Tick, bool ActivatedTeam[]);
|
|
void Open(int Team);
|
|
void Close(int Team);
|
|
CDoor(CGameWorld *pGameWorld, vec2 Pos, float Rotation, int Length, int Number);
|
|
|
|
virtual void Reset();
|
|
virtual void Tick();
|
|
virtual void Snap(int SnappingClient);
|
|
};
|
|
|
|
#endif
|