mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 03:28:19 +00:00
3be8a592e5
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
56 lines
1 KiB
C++
56 lines
1 KiB
C++
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
|
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
|
#ifndef GAME_SERVER_ENTITIES_PROJECTILE_H
|
|
#define GAME_SERVER_ENTITIES_PROJECTILE_H
|
|
|
|
#include <game/server/entity.h>
|
|
|
|
class CProjectile : public CEntity
|
|
{
|
|
public:
|
|
CProjectile(
|
|
CGameWorld *pGameWorld,
|
|
int Type,
|
|
int Owner,
|
|
vec2 Pos,
|
|
vec2 Dir,
|
|
int Span,
|
|
bool Freeeze,
|
|
bool Explosive,
|
|
float Force,
|
|
int SoundImpact,
|
|
int Layer = 0,
|
|
int Number = 0);
|
|
|
|
vec2 GetPos(float Time);
|
|
void FillInfo(CNetObj_Projectile *pProj);
|
|
|
|
virtual void Reset();
|
|
virtual void Tick();
|
|
virtual void TickPaused();
|
|
virtual void Snap(int SnappingClient);
|
|
|
|
private:
|
|
vec2 m_Direction;
|
|
int m_LifeSpan;
|
|
int m_Owner;
|
|
int m_Type;
|
|
//int m_Damage;
|
|
int m_SoundImpact;
|
|
float m_Force;
|
|
int m_StartTick;
|
|
bool m_Explosive;
|
|
|
|
// DDRace
|
|
|
|
int m_Bouncing;
|
|
bool m_Freeze;
|
|
int m_TuneZone;
|
|
|
|
public:
|
|
void SetBouncing(int Value);
|
|
void FillExtraInfo(CNetObj_Projectile *pProj);
|
|
};
|
|
|
|
#endif
|