Projectiles get emitted by Weapon. Weapons give them their impuls, their live, and mainly all the essential initial values. From there on, they are on their own, and fly through space searching for something to destroy and initiate the ~ operator …
- Projectiles (Metallic or Metalloplastic)
- Joining (like the linking-gun of some other games…)
- other doomsdaydevice-equal destruction Methods
- Zero Point Gravity/Black? Hole
Here follows a listing of the most important Functions of this Class:
void setFlightDirection(const Quaternion& flightDirection); void setVelocity(const Vector &velocity); void setLifeSpan(float lifeSpan); void setEnergies(float energyMin, float energyMax); /** @brief This is called, when the Projectile is Emitted */ virtual void activate() = 0; /** @brief This is called, when the Projectile is being destroyed, or deleted */ virtual void deactivate() = 0; virtual void destroy (); virtual void tick (float time); virtual void draw () const;
Creating Projectiles is a rather easy process, but if you like, Projecties can be extremely extendable. For instance, if you liked some Gravitation gun (not the one from HL2), then you would connect a physical field to the Gun, that sucks in all NPC's and if they are to near, distroy them (or damage them about some amount).