mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-21 10:04:18 +00:00
30 lines
786 B
C
30 lines
786 B
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_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;
|
||
|
};
|
||
|
|
||
|
CProjectileData ExtractProjectileInfo(const CNetObj_Projectile *pProj);
|
||
|
CProjectileData ExtractProjectileInfoDDNet(const CNetObj_DDNetProjectile *pProj);
|
||
|
|
||
|
#endif // GAME_CLIENT_PROJECTILE_DATA_H
|