70 DtCustomProjectile(
const DtString& name, DtReaderWriterRegistry*
const parentRegistry =
nullptr);
75 DtCustomProjectile(
const DtSymbolString& name, DtReaderWriterRegistry*
const parentRegistry =
nullptr);
135 virtual DtString
type()
const override;
bool operator!=(const DtCustomProjectile &rhs) const
Inequality comparison for projectile state.
Definition customProjectile.h:120
double myTimeInFlight
Custom time-in-flight parameter.
Definition customProjectile.h:191
virtual DtString type() const override
Return the class type identifier string.
virtual makVre::DtProjectile * clone() const override
Create a deep copy of this projectile.
DtCustomProjectile(const DtString &name, DtReaderWriterRegistry *const parentRegistry=nullptr)
Construct projectile with string name.
DtCustomProjectile(const DtCustomProjectile &orig, DtReaderWriterRegistry *const parentRegistry=nullptr)
Copy constructor for projectile cloning.
DtCustomProjectile & operator=(const DtCustomProjectile &orig)
Assignment operator for projectile state copying.
bool operator==(const DtCustomProjectile &) const
Equality comparison for projectile state.
DtCustomProjectile(const DtSymbolString &name, DtReaderWriterRegistry *const parentRegistry=nullptr)
Construct projectile with symbol string name.
virtual ~DtCustomProjectile() override
Destructor - base class handles cleanup.
Definition customProjectile.h:91
DtCustomProjectile()
Default constructor - not implemented (projectiles require names)
virtual makVre::DtProjectileDetonationResult update(double deltaTime) override
Update projectile state for one simulation frame.
static makVre::DtProjectile * creator(const DtString &name, DtReaderWriterRegistry *const parentRegistry=nullptr)
Static factory creator method.
Class representing the result of a projectile detonation.
Definition projectileDetonationResult.h:33
Class representing ballistic projectiles in simulations.
Definition projectile.h:42
constexpr char DtCustomProjectileType[]
Type identifier string for custom projectile class Used by factory system to create instances and for...
Definition customProjectile.h:25
Projectile class for VREngage.