mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 11:38:19 +00:00
25 lines
397 B
C++
25 lines
397 B
C++
#ifndef GAME_SERVER_ENTITY_TRIGGER_H
|
|
#define GAME_SERVER_ENTITY_TRIGGER_H
|
|
|
|
#include <game/server/entity.h>
|
|
|
|
//class DOOR;
|
|
|
|
class CTrigger : public CEntity
|
|
{
|
|
CEntity *m_Target;
|
|
|
|
bool HitCharacter();
|
|
void OpenDoor(int Tick);
|
|
|
|
public:
|
|
|
|
CTrigger(CGameWorld *pGameWorld, vec2 Pos, CEntity *Target);
|
|
|
|
virtual void Reset();
|
|
virtual void Tick();
|
|
virtual void Snap(int SnappingClient);
|
|
};
|
|
|
|
#endif
|