Extending Projectile Factory

v1.0

Extending the classes provides immense power and customization for your project. In this section I'll walk through a few areas where you may choose to create new methods to extend the Behaviors, or add functionality specifically for your project.

Behaviors

The most straight forward way to extend Projectile Factory is to create custom Behaviors. Derive your class from ProjectileBehavior or from one of the existing Behavior classes you'd like to modify. All methods are virtual, so you can override them with custom logic unique to your game.

Spawn Behavior Manager

For Projectile Spawners with multiple spawn points, creating a custom Spawn Behavior Manager is a powerful way to enable specfic spawn logic as unique as your objects.

Observers

Creating custom Observers, Global Observers, and Observer Objects allow any object tap into the life-cycle events on Projectiles, and perform custom logic.

Last updated