2011-12-25 13:33:05 +00:00
|
|
|
/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
|
2018-07-06 14:11:38 +00:00
|
|
|
#ifndef GAME_SERVER_ENTITIES_LIGHT_H
|
|
|
|
#define GAME_SERVER_ENTITIES_LIGHT_H
|
|
|
|
|
2010-07-29 05:21:18 +00:00
|
|
|
#include <game/server/entity.h>
|
|
|
|
|
2020-09-26 19:41:58 +00:00
|
|
|
class CLight : public CEntity
|
2010-07-29 05:21:18 +00:00
|
|
|
{
|
2010-08-30 23:45:42 +00:00
|
|
|
float m_Rotation;
|
|
|
|
vec2 m_To;
|
|
|
|
vec2 m_Core;
|
2010-07-29 05:21:18 +00:00
|
|
|
|
2010-08-30 23:45:42 +00:00
|
|
|
int m_EvalTick;
|
2011-12-25 13:51:04 +00:00
|
|
|
|
2010-08-30 23:45:42 +00:00
|
|
|
int m_Tick;
|
2010-07-29 05:21:18 +00:00
|
|
|
|
2010-08-30 23:45:42 +00:00
|
|
|
bool HitCharacter();
|
|
|
|
void Move();
|
|
|
|
void Step();
|
2020-09-26 19:41:58 +00:00
|
|
|
|
2010-07-29 05:21:18 +00:00
|
|
|
public:
|
2010-08-30 23:45:42 +00:00
|
|
|
int m_CurveLength;
|
|
|
|
int m_LengthL;
|
2010-10-07 13:28:29 +00:00
|
|
|
float m_AngularSpeed;
|
2010-08-30 23:45:42 +00:00
|
|
|
int m_Speed;
|
|
|
|
int m_Length;
|
2010-07-29 05:21:18 +00:00
|
|
|
|
2011-12-25 13:51:04 +00:00
|
|
|
CLight(CGameWorld *pGameWorld, vec2 Pos, float Rotation, int Length,
|
2020-09-26 19:41:58 +00:00
|
|
|
int Layer = 0, int Number = 0);
|
2011-12-25 13:51:04 +00:00
|
|
|
|
2010-07-29 05:21:18 +00:00
|
|
|
virtual void Reset();
|
|
|
|
virtual void Tick();
|
|
|
|
virtual void Snap(int SnappingClient);
|
|
|
|
};
|
|
|
|
|
2018-07-06 14:11:38 +00:00
|
|
|
#endif // GAME_SERVER_ENTITIES_LIGHT_H
|