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

26 lines
434 B
C
Raw Normal View History

#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 m_TeamActivated[MAX_CLIENTS];
bool HitCharacter();
2010-09-25 16:39:52 +00:00
void OpenDoor(int Teams);
public:
CTrigger(CGameWorld *pGameWorld, vec2 Pos, CEntity *Target);
virtual void Reset();
virtual void Tick();
virtual void Snap(int SnappingClient);
};
#endif