summaryrefslogtreecommitdiffstats
path: root/src/weapons/ProjectileInfo.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-09 20:50:24 +0200
committeraap <aap@papnet.eu>2020-04-09 20:50:24 +0200
commit34349c4df2683fca35be37ec626aaa8eef2ddaee (patch)
tree6a86b547819f30ab784d00891ee99b8924580093 /src/weapons/ProjectileInfo.h
parentMerge remote-tracking branch 'Fire-Head/master' (diff)
downloadre3-34349c4df2683fca35be37ec626aaa8eef2ddaee.tar
re3-34349c4df2683fca35be37ec626aaa8eef2ddaee.tar.gz
re3-34349c4df2683fca35be37ec626aaa8eef2ddaee.tar.bz2
re3-34349c4df2683fca35be37ec626aaa8eef2ddaee.tar.lz
re3-34349c4df2683fca35be37ec626aaa8eef2ddaee.tar.xz
re3-34349c4df2683fca35be37ec626aaa8eef2ddaee.tar.zst
re3-34349c4df2683fca35be37ec626aaa8eef2ddaee.zip
Diffstat (limited to 'src/weapons/ProjectileInfo.h')
-rw-r--r--src/weapons/ProjectileInfo.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/src/weapons/ProjectileInfo.h b/src/weapons/ProjectileInfo.h
index dafb48db..a4ea369a 100644
--- a/src/weapons/ProjectileInfo.h
+++ b/src/weapons/ProjectileInfo.h
@@ -1,32 +1,32 @@
-#pragma once
-
-class CEntity;
-class CObject;
-class CProjectile;
-enum eWeaponType;
-
-class CProjectileInfo
-{
-public:
- eWeaponType m_eWeaponType;
- CEntity* m_pSource;
- uint32 m_nExplosionTime;
- bool m_bInUse;
- CVector m_vecPos;
-
-public:
- static CProjectileInfo* GetProjectileInfo(int32 id);
- static CProjectile* (&ms_apProjectile)[NUM_PROJECTILES];
-
- static void Initialise();
- static void Shutdown();
- static bool AddProjectile(CEntity *ped, eWeaponType weapon, CVector pos, float speed);
- static void RemoveProjectile(CProjectileInfo *info, CProjectile *projectile);
- static void RemoveNotAdd(CEntity *entity, eWeaponType weaponType, CVector pos);
- static bool RemoveIfThisIsAProjectile(CObject *pObject);
- static void RemoveAllProjectiles();
- static void Update();
- static bool IsProjectileInRange(float x1, float x2, float y1, float y2, float z1, float z2, bool remove);
-};
-
+#pragma once
+
+class CEntity;
+class CObject;
+class CProjectile;
+enum eWeaponType;
+
+class CProjectileInfo
+{
+public:
+ eWeaponType m_eWeaponType;
+ CEntity* m_pSource;
+ uint32 m_nExplosionTime;
+ bool m_bInUse;
+ CVector m_vecPos;
+
+public:
+ static CProjectileInfo* GetProjectileInfo(int32 id);
+ static CProjectile* (&ms_apProjectile)[NUM_PROJECTILES];
+
+ static void Initialise();
+ static void Shutdown();
+ static bool AddProjectile(CEntity *ped, eWeaponType weapon, CVector pos, float speed);
+ static void RemoveProjectile(CProjectileInfo *info, CProjectile *projectile);
+ static void RemoveNotAdd(CEntity *entity, eWeaponType weaponType, CVector pos);
+ static bool RemoveIfThisIsAProjectile(CObject *pObject);
+ static void RemoveAllProjectiles();
+ static void Update();
+ static bool IsProjectileInRange(float x1, float x2, float y1, float y2, float z1, float z2, bool remove);
+};
+
extern CProjectileInfo (&gaProjectileInfo)[NUM_PROJECTILES]; \ No newline at end of file