ddnet/src/game/server/entities/door.h

29 lines
571 B
C
Raw Normal View History

#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;
2010-09-01 09:50:42 +00:00
int m_EvalTick[MAX_CLIENTS];
bool m_Opened[MAX_CLIENTS];
2010-09-25 16:39:52 +00:00
void ResetCollision();
int m_Length;
vec2 m_Direction;
int m_Angle;
public:
void Open(int Tick, bool ActivatedTeam[]);
2010-09-25 16:39:52 +00:00
void Open(int Team);
2010-09-01 10:22:15 +00:00
void Close(int Team);
CDoor(CGameWorld *pGameWorld, vec2 Pos, float Rotation, int Length, bool Opened);
virtual void Reset();
virtual void Tick();
virtual void Snap(int SnappingClient);
};
#endif