ddnet/src/game/server/entities/light.h
def 3be8a592e5 Run clang-format
Purely automatic change. In case of conflict with this change, apply the
other change and rerun the formatting to restore it:

$ python scripts/fix_style.py
2020-09-26 21:50:15 +02:00

37 lines
724 B
C++

/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
#ifndef GAME_SERVER_ENTITIES_LIGHT_H
#define GAME_SERVER_ENTITIES_LIGHT_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,
int Layer = 0, int Number = 0);
virtual void Reset();
virtual void Tick();
virtual void Snap(int SnappingClient);
};
#endif // GAME_SERVER_ENTITIES_LIGHT_H