2010-07-29 05:21:18 +00:00
|
|
|
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
|
|
|
|
|
|
|
|
#ifndef GAME_SERVER_CEntity_CLight_H
|
|
|
|
#define GAME_SERVER_CEntity_CLight_H
|
|
|
|
|
|
|
|
#include <game/server/entity.h>
|
|
|
|
|
|
|
|
class CLight : public CEntity
|
|
|
|
{
|
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;
|
2010-07-29 05:21:18 +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();
|
2010-07-29 05:21:18 +00:00
|
|
|
public:
|
2010-08-30 23:45:42 +00:00
|
|
|
int m_CurveLength;
|
|
|
|
int m_LengthL;
|
|
|
|
int m_Speed;
|
|
|
|
int m_Length;
|
2010-10-01 22:00:41 +00:00
|
|
|
int m_RotationSpeed;
|
2010-07-29 05:21:18 +00:00
|
|
|
|
2010-08-30 23:45:42 +00:00
|
|
|
CLight(CGameWorld *pGameWorld, vec2 Pos, float Rotation, int Length);
|
2010-07-29 05:21:18 +00:00
|
|
|
|
|
|
|
virtual void Reset();
|
|
|
|
virtual void Tick();
|
|
|
|
virtual void Snap(int SnappingClient);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|