2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2018-06-04 19:30:04 +00:00
|
|
|
|
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
#include "zeus/CVector3f.hpp"
|
|
|
|
#include "World/CDamageInfo.hpp"
|
|
|
|
#include "Particle/CWeaponDescription.hpp"
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2018-06-04 19:30:04 +00:00
|
|
|
class CPlayer;
|
2018-12-08 05:30:43 +00:00
|
|
|
class CProjectileInfo {
|
|
|
|
TToken<CWeaponDescription> x0_weaponDescription;
|
|
|
|
CDamageInfo xc_damageInfo;
|
|
|
|
|
2018-06-04 19:30:04 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CProjectileInfo(CInputStream&);
|
|
|
|
CProjectileInfo(CAssetId, const CDamageInfo&);
|
2018-06-04 19:30:04 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
zeus::CVector3f PredictInterceptPos(const zeus::CVector3f&, const zeus::CVector3f&, const CPlayer&, bool);
|
2018-06-04 19:30:04 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
CDamageInfo GetDamage() const { return xc_damageInfo; }
|
|
|
|
const TToken<CWeaponDescription>& Token() { return x0_weaponDescription; }
|
2018-06-04 19:30:04 +00:00
|
|
|
};
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|