2021-01-17 16:18:08 +00:00
|
|
|
/* (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_CLIENT_PROJECTILE_DATA_H
|
|
|
|
#define GAME_CLIENT_PROJECTILE_DATA_H
|
|
|
|
|
|
|
|
#include <base/vmath.h>
|
|
|
|
|
|
|
|
struct CNetObj_Projectile;
|
|
|
|
struct CNetObj_DDNetProjectile;
|
|
|
|
|
|
|
|
class CProjectileData
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
vec2 m_StartPos;
|
|
|
|
vec2 m_StartVel;
|
|
|
|
int m_Type;
|
|
|
|
int m_StartTick;
|
|
|
|
bool m_ExtraInfo;
|
|
|
|
// The rest is only set if m_ExtraInfo is true.
|
|
|
|
int m_Owner;
|
|
|
|
bool m_Explosive;
|
|
|
|
int m_Bouncing;
|
|
|
|
bool m_Freeze;
|
2021-04-23 03:01:38 +00:00
|
|
|
// TuneZone is introduced locally
|
|
|
|
int m_TuneZone;
|
2021-01-17 16:18:08 +00:00
|
|
|
};
|
|
|
|
|
2021-04-23 03:01:38 +00:00
|
|
|
CProjectileData ExtractProjectileInfo(const CNetObj_Projectile *pProj, class CGameWorld *pGameWorld);
|
|
|
|
CProjectileData ExtractProjectileInfoDDNet(const CNetObj_DDNetProjectile *pProj, class CGameWorld *pGameWorld);
|
2021-01-17 16:18:08 +00:00
|
|
|
|
|
|
|
#endif // GAME_CLIENT_PROJECTILE_DATA_H
|