mirror of
https://github.com/rehlds/reapi.git
synced 2024-12-28 15:45:31 +03:00
API Interfaces: make virtual functions pure to explicitly define tables of RTTI. GCC can't resolve them.
This commit is contained in:
parent
14c7411b39
commit
defe8588d4
@ -38,8 +38,8 @@ public:
|
||||
}
|
||||
|
||||
virtual ~CCSEntity() {}
|
||||
virtual void FireBullets(int iShots, Vector &vecSrc, Vector &vecDirShooting, Vector &vecSpread, float flDistance, int iBulletType, int iTracerFreq, int iDamage, entvars_t *pevAttacker);
|
||||
virtual Vector FireBullets3(Vector &vecSrc, Vector &vecDirShooting, float vecSpread, float flDistance, int iPenetration, int iBulletType, int iDamage, float flRangeModifier, entvars_t *pevAttacker, bool bPistol, int shared_rand);
|
||||
virtual void FireBullets(int iShots, Vector &vecSrc, Vector &vecDirShooting, Vector &vecSpread, float flDistance, int iBulletType, int iTracerFreq, int iDamage, entvars_t *pevAttacker) = 0;
|
||||
virtual Vector FireBullets3(Vector &vecSrc, Vector &vecDirShooting, float vecSpread, float flDistance, int iPenetration, int iBulletType, int iDamage, float flRangeModifier, entvars_t *pevAttacker, bool bPistol, int shared_rand) = 0;
|
||||
|
||||
public:
|
||||
CBaseEntity *m_pContainingEntity;
|
||||
|
@ -50,51 +50,51 @@ public:
|
||||
m_szModel[0] = '\0';
|
||||
}
|
||||
|
||||
virtual bool IsConnected() const;
|
||||
virtual void SetAnimation(PLAYER_ANIM playerAnim);
|
||||
virtual void AddAccount(int amount, RewardType type = RT_NONE, bool bTrackChange = true);
|
||||
virtual CBaseEntity *GiveNamedItem(const char *pszName);
|
||||
virtual CBaseEntity *GiveNamedItemEx(const char *pszName);
|
||||
virtual void GiveDefaultItems();
|
||||
virtual void GiveShield(bool bDeploy = true);
|
||||
virtual void DropShield(bool bDeploy = true);
|
||||
virtual void DropPlayerItem(const char *pszItemName);
|
||||
virtual bool RemoveShield();
|
||||
virtual void RemoveAllItems(bool bRemoveSuit);
|
||||
virtual bool RemovePlayerItem(const char* pszItemName);
|
||||
virtual void SetPlayerModel(bool bHasC4);
|
||||
virtual void SetPlayerModelEx(const char *modelName);
|
||||
virtual void SetNewPlayerModel(const char *modelName);
|
||||
virtual void ClientCommand(const char *cmd, const char *arg1 = nullptr, const char *arg2 = nullptr, const char *arg3 = nullptr);
|
||||
virtual void SetProgressBarTime(int time);
|
||||
virtual void SetProgressBarTime2(int time, float timeElapsed);
|
||||
virtual struct edict_s *EntSelectSpawnPoint();
|
||||
virtual void SetBombIcon(bool bFlash = false);
|
||||
virtual void SetScoreAttrib(CBasePlayer *dest);
|
||||
virtual void SendItemStatus();
|
||||
virtual void ReloadWeapons(CBasePlayerItem *pWeapon = nullptr, bool bForceReload = false, bool bForceRefill = false);
|
||||
virtual void Observer_SetMode(int iMode);
|
||||
virtual bool SelectSpawnSpot(const char *pEntClassName, CBaseEntity* &pSpot);
|
||||
virtual bool SwitchWeapon(CBasePlayerItem *pWeapon);
|
||||
virtual void SwitchTeam();
|
||||
virtual bool JoinTeam(TeamName team);
|
||||
virtual void StartObserver(Vector& vecPosition, Vector& vecViewAngle);
|
||||
virtual void TeamChangeUpdate();
|
||||
virtual void DropSecondary();
|
||||
virtual void DropPrimary();
|
||||
virtual bool HasPlayerItem(CBasePlayerItem *pCheckItem);
|
||||
virtual bool HasNamedPlayerItem(const char *pszItemName);
|
||||
virtual CBasePlayerItem *GetItemById(WeaponIdType weaponID);
|
||||
virtual CBasePlayerItem *GetItemByName(const char *itemName);
|
||||
virtual void Disappear();
|
||||
virtual void MakeVIP();
|
||||
virtual bool MakeBomber();
|
||||
virtual void ResetSequenceInfo();
|
||||
virtual void StartDeathCam();
|
||||
virtual bool RemovePlayerItemEx(const char* pszItemName, bool bRemoveAmmo);
|
||||
virtual void SetSpawnProtection(float flProtectionTime);
|
||||
virtual void RemoveSpawnProtection();
|
||||
virtual bool HintMessageEx(const char *pMessage, float duration = 6.0f, bool bDisplayIfPlayerDead = false, bool bOverride = false);
|
||||
virtual bool IsConnected() const = 0;
|
||||
virtual void SetAnimation(PLAYER_ANIM playerAnim) = 0;
|
||||
virtual void AddAccount(int amount, RewardType type = RT_NONE, bool bTrackChange = true) = 0;
|
||||
virtual CBaseEntity *GiveNamedItem(const char *pszName) = 0;
|
||||
virtual CBaseEntity *GiveNamedItemEx(const char *pszName) = 0;
|
||||
virtual void GiveDefaultItems() = 0;
|
||||
virtual void GiveShield(bool bDeploy = true) = 0;
|
||||
virtual void DropShield(bool bDeploy = true) = 0;
|
||||
virtual void DropPlayerItem(const char *pszItemName) = 0;
|
||||
virtual bool RemoveShield() = 0;
|
||||
virtual void RemoveAllItems(bool bRemoveSuit) = 0;
|
||||
virtual bool RemovePlayerItem(const char* pszItemName) = 0;
|
||||
virtual void SetPlayerModel(bool bHasC4) = 0;
|
||||
virtual void SetPlayerModelEx(const char *modelName) = 0;
|
||||
virtual void SetNewPlayerModel(const char *modelName) = 0;
|
||||
virtual void ClientCommand(const char *cmd, const char *arg1 = nullptr, const char *arg2 = nullptr, const char *arg3 = nullptr) = 0;
|
||||
virtual void SetProgressBarTime(int time) = 0;
|
||||
virtual void SetProgressBarTime2(int time, float timeElapsed) = 0;
|
||||
virtual struct edict_s *EntSelectSpawnPoint() = 0;
|
||||
virtual void SetBombIcon(bool bFlash = false) = 0;
|
||||
virtual void SetScoreAttrib(CBasePlayer *dest) = 0;
|
||||
virtual void SendItemStatus() = 0;
|
||||
virtual void ReloadWeapons(CBasePlayerItem *pWeapon = nullptr, bool bForceReload = false, bool bForceRefill = false) = 0;
|
||||
virtual void Observer_SetMode(int iMode) = 0;
|
||||
virtual bool SelectSpawnSpot(const char *pEntClassName, CBaseEntity* &pSpot) = 0;
|
||||
virtual bool SwitchWeapon(CBasePlayerItem *pWeapon) = 0;
|
||||
virtual void SwitchTeam() = 0;
|
||||
virtual bool JoinTeam(TeamName team) = 0;
|
||||
virtual void StartObserver(Vector& vecPosition, Vector& vecViewAngle) = 0;
|
||||
virtual void TeamChangeUpdate() = 0;
|
||||
virtual void DropSecondary() = 0;
|
||||
virtual void DropPrimary() = 0;
|
||||
virtual bool HasPlayerItem(CBasePlayerItem *pCheckItem) = 0;
|
||||
virtual bool HasNamedPlayerItem(const char *pszItemName) = 0;
|
||||
virtual CBasePlayerItem *GetItemById(WeaponIdType weaponID) = 0;
|
||||
virtual CBasePlayerItem *GetItemByName(const char *itemName) = 0;
|
||||
virtual void Disappear() = 0;
|
||||
virtual void MakeVIP() = 0;
|
||||
virtual bool MakeBomber() = 0;
|
||||
virtual void ResetSequenceInfo() = 0;
|
||||
virtual void StartDeathCam() = 0;
|
||||
virtual bool RemovePlayerItemEx(const char* pszItemName, bool bRemoveAmmo) = 0;
|
||||
virtual void SetSpawnProtection(float flProtectionTime) = 0;
|
||||
virtual void RemoveSpawnProtection() = 0;
|
||||
virtual bool HintMessageEx(const char *pMessage, float duration = 6.0f, bool bDisplayIfPlayerDead = false, bool bOverride = false) = 0;
|
||||
|
||||
void Reset();
|
||||
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
Q_memset(&m_ItemInfo, 0, sizeof(m_ItemInfo));
|
||||
}
|
||||
|
||||
virtual void SetItemInfo(ItemInfo *pInfo);
|
||||
virtual void SetItemInfo(ItemInfo *pInfo) = 0;
|
||||
|
||||
CBasePlayerItem *BasePlayerItem() const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user