This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
47 additions
and 34 deletions.
- +3 −2 src/audio/AudioManager.cpp
- +1 −1 src/objects/ObjectData.cpp
- +14 −0 src/objects/Projectile.cpp
- +1 −0 src/objects/Projectile.h
- +0 −10 src/weapons/CProjectileInfo.cpp
- +0 −20 src/weapons/CProjectileInfo.h
- +9 −0 src/weapons/ProjectileInfo.cpp
- +19 −1 src/weapons/ProjectileInfo.h
There are no files selected for viewing
| @@ -1,11 +1,29 @@ | ||
| #pragma once | ||
|
|
||
| class CEntity; | ||
| class CObject; | ||
| class CProjectile; | ||
| enum eWeaponType; | ||
|
|
||
| class CProjectileInfo | ||
| { | ||
| public: | ||
| eWeaponType m_eWeaponType; | ||
| CEntity* m_pSource; | ||
| int m_nExplosionTime; | ||
| char m_bInUse; | ||
| char field_13; | ||
| char field_14; | ||
| char field_15; | ||
| CVector m_vecPos; | ||
|
|
||
| public: | ||
| static CProjectileInfo* GetProjectileInfo(int32 id); | ||
| static CProjectile* (&ms_apProjectile)[32]; | ||
|
|
||
| static bool RemoveIfThisIsAProjectile(CObject *pObject); | ||
| static void RemoveAllProjectiles(void); | ||
| static bool IsProjectileInRange(float x1, float x2, float y1, float y2, float z1, float z2, bool remove); | ||
| }; | ||
| }; | ||
|
|
||
| extern CProjectileInfo* gaProjectileInfo; |