re3-wiiu/src/weapons/BulletInfo.h

24 lines
586 B
C
Raw Normal View History

2020-01-03 17:48:13 +01:00
#pragma once
2020-04-15 00:06:32 +02:00
class CEntity;
2020-04-15 07:03:53 +02:00
enum eWeaponType;
2020-01-03 17:48:13 +01:00
class CBulletInfo
{
2020-04-15 00:06:32 +02:00
eWeaponType m_eWeaponType;
CEntity* m_pSource;
float m_fTimer; // big mistake
bool m_bInUse;
CVector m_vecPosition;
CVector m_vecSpeed;
int16 m_nDamage;
2020-01-03 17:48:13 +01:00
public:
2020-04-15 00:06:32 +02:00
enum {
NUM_BULLETS = 100
};
static void Initialise(void);
static void Shutdown(void);
2020-04-15 22:49:23 +02:00
static bool AddBullet(CEntity* pSource, eWeaponType type, CVector vecPosition, CVector vecSpeed);
2020-04-15 00:06:32 +02:00
static void Update(void);
2020-01-03 17:48:13 +01:00
static bool TestForSniperBullet(float x1, float x2, float y1, float y2, float z1, float z2);
};