mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-21 18:14:19 +00:00
37 lines
588 B
C
37 lines
588 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 rotation;
|
||
|
vec2 to;
|
||
|
vec2 core;
|
||
|
|
||
|
int eval_tick;
|
||
|
|
||
|
int TICK;
|
||
|
|
||
|
bool hit_character();
|
||
|
void move();
|
||
|
void step();
|
||
|
public:
|
||
|
int cur_length;
|
||
|
int length_l;
|
||
|
float ang_speed;
|
||
|
int speed;
|
||
|
int length;
|
||
|
|
||
|
|
||
|
CLight(CGameWorld *pGameWorld, vec2 pos, float rotation, int length);
|
||
|
|
||
|
virtual void Reset();
|
||
|
virtual void Tick();
|
||
|
virtual void Snap(int SnappingClient);
|
||
|
};
|
||
|
|
||
|
#endif
|