mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 11:38:19 +00:00
15542a6c20
also did some refactoring Signed-off-by: GreYFoXGTi <GreYFoXGTi@GMaiL.CoM>
37 lines
609 B
C++
37 lines
609 B
C++
/* 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
|
|
{
|
|
float m_Rotation;
|
|
vec2 m_To;
|
|
vec2 m_Core;
|
|
|
|
int m_EvalTick;
|
|
|
|
int m_Tick;
|
|
|
|
bool HitCharacter();
|
|
void Move();
|
|
void Step();
|
|
public:
|
|
int m_CurveLength;
|
|
int m_LengthL;
|
|
float m_AngularSpeed;
|
|
int m_Speed;
|
|
int m_Length;
|
|
|
|
|
|
CLight(CGameWorld *pGameWorld, vec2 Pos, float Rotation, int Length);
|
|
|
|
virtual void Reset();
|
|
virtual void Tick();
|
|
virtual void Snap(int SnappingClient);
|
|
};
|
|
|
|
#endif
|