2022-05-02 18:31:17 +00:00
|
|
|
/* See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
|
|
|
|
#ifndef GAME_SERVER_ENTITIES_DRAGGER_BEAM_H
|
|
|
|
#define GAME_SERVER_ENTITIES_DRAGGER_BEAM_H
|
|
|
|
|
|
|
|
#include "dragger.h"
|
|
|
|
#include <game/server/entity.h>
|
|
|
|
|
|
|
|
class CDraggerBeam : public CEntity
|
|
|
|
{
|
2022-05-04 17:33:48 +00:00
|
|
|
CDragger *m_pDragger;
|
2022-05-02 18:31:17 +00:00
|
|
|
float m_Strength;
|
2022-05-04 17:33:48 +00:00
|
|
|
bool m_IgnoreWalls;
|
2022-05-02 18:31:17 +00:00
|
|
|
int m_ForClientID;
|
|
|
|
int m_EvalTick;
|
|
|
|
bool m_Active;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CDraggerBeam(CGameWorld *pGameWorld, CDragger *pDragger, vec2 Pos, float Strength, bool IgnoreWalls, int ForClientID);
|
|
|
|
|
|
|
|
void SetPos(vec2 Pos);
|
|
|
|
|
|
|
|
virtual void Reset();
|
|
|
|
virtual void Tick();
|
|
|
|
virtual void Snap(int SnappingClient);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GAME_SERVER_ENTITIES_DRAGGER_BEAM_H
|