Re3/src/weapons/BulletInfo.h

25 lines
557 B
C
Raw Normal View History

2020-01-03 11:48:13 -05:00
#pragma once
2020-04-14 18:06:32 -04:00
2020-04-19 12:34:08 -04:00
#include "WeaponType.h"
2020-04-14 18:06:32 -04:00
class CEntity;
2020-01-03 11:48:13 -05:00
class CBulletInfo
{
2020-04-15 17:00:04 -04: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 11:48:13 -05:00
public:
2020-04-15 17:00:04 -04:00
enum {
NUM_BULLETS = 100
};
2020-04-14 18:06:32 -04:00
static void Initialise(void);
static void Shutdown(void);
2020-04-15 17:00:04 -04:00
static bool AddBullet(CEntity* pSource, eWeaponType type, CVector vecPosition, CVector vecSpeed);
2020-04-14 18:06:32 -04:00
static void Update(void);
2020-01-03 11:48:13 -05:00
static bool TestForSniperBullet(float x1, float x2, float y1, float y2, float z1, float z2);
};