ddnet/src/game/server/entities/door.h
def 3be8a592e5 Run clang-format
Purely automatic change. In case of conflict with this change, apply the
other change and rerun the formatting to restore it:

$ python scripts/fix_style.py
2020-09-26 21:50:15 +02:00

30 lines
676 B
C++

/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
#ifndef GAME_SERVER_ENTITIES_DOOR_H
#define GAME_SERVER_ENTITIES_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;
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 // GAME_SERVER_ENTITIES_DOOR_H