mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 10:38:20 +00:00
1fe93f4592
Signed-off-by: GreYFoXGTi <GreYFoXGTi@GMaiL.CoM>
47 lines
746 B
C++
47 lines
746 B
C++
#ifndef GAME_SERVER_ENTITIES_PROJECTILE_H
|
|
#define GAME_SERVER_ENTITIES_PROJECTILE_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 Weapon
|
|
);
|
|
|
|
vec2 GetPos(float Time);
|
|
void FillInfo(CNetObj_Projectile *pProj);
|
|
void SetBouncing(int Value);
|
|
|
|
virtual void Reset();
|
|
virtual void Tick();
|
|
virtual void Snap(int SnappingClient);
|
|
|
|
private:
|
|
vec2 m_Direction;
|
|
int m_LifeSpan;
|
|
int m_Owner;
|
|
int m_Type;
|
|
//int m_Damage;
|
|
int m_SoundImpact;
|
|
int m_Weapon;
|
|
float m_Force;
|
|
int m_StartTick;
|
|
bool m_Explosive;
|
|
int m_Bouncing;
|
|
bool m_Freeze;
|
|
bool m_Collised;
|
|
};
|
|
|
|
#endif
|