mirror of
https://github.com/ddnet/ddnet.git
synced 2024-10-20 07:48:18 +00:00
583d6e6c01
while IFS= read -r line; do file=${line%%:*}; lineno=$(echo $line | cut -d':' -f2); echo "Treating $file line $lineno"; sed -i -e "${lineno}s/virtual //" -e "${lineno}s/);\$/) override;/" -e "${lineno}s/)\$/) override/" -e "${lineno}s/const\$/const override/" -e "${lineno}s/) {/) override {/" -e "${lineno}s/) const {/) const override {/" -e "${lineno}s/const;$/const override;/" "$file"; done < a
37 lines
727 B
C++
37 lines
727 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);
|
|
|
|
void Reset() override;
|
|
void Tick() override;
|
|
void Snap(int SnappingClient) override;
|
|
};
|
|
|
|
#endif // GAME_SERVER_ENTITIES_LIGHT_H
|