Arcade Shooter
Public Member Functions | List of all members
Sample::Launcher Class Reference

Class for a missile launcher. More...

#include <Launcher.h>

Inheritance diagram for Sample::Launcher:
ShooterLibrary::Gun< Missile > ShooterLibrary::Weapon

Public Member Functions

 Launcher (const bool isActive)
 Instantiates a new missile launcher object. More...
 
- Public Member Functions inherited from ShooterLibrary::Gun< Missile >
 Gun (const bool isActive)
 Instantiates a new weapon object. More...
 
virtual void Update (const GameTime *pGameTime)
 Called when the game determines it is time to draw a frame. More...
 
virtual void Fire (TriggerType triggerType)
 Fires the weapon. More...
 
virtual void SetProjectilePool (ProjectilePool *pPool)
 Sets the pool where the weapon gets it's projectiles. More...
 
virtual bool CanFire () const
 Determines if the weapon is ready to fire. More...
 
virtual void SetCooldownSeconds (const float seconds)
 Sets the time in seconds that the weapon takes between firing. More...
 
virtual void ResetCooldown ()
 Instantly cools the weapon, making it ready to fire.
 
- Public Member Functions inherited from ShooterLibrary::Weapon
 Weapon (bool isActive=true)
 Instantiates a new weapon object. More...
 
virtual void Draw (SpriteBatch *pSpriteBatch)
 Called when the game determines it is time to draw a frame. More...
 
virtual void SetGameObject (GameObject *pGameObject)
 Sets the game object that the weapon is attached to. More...
 
virtual void SetOffset (Vector2 offset)
 Sets the position on the parented game object. More...
 
virtual void SetTriggerType (TriggerType triggerType)
 Sets how the weapon is triggered. More...
 
virtual void Activate ()
 Activates the weapon.
 
virtual void Dectivate ()
 Deactivates the weapon.
 
virtual bool IsActive () const
 Determines if the weapon is active. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ShooterLibrary::Weapon
virtual TriggerType GetTriggerType () const
 Gets the action that triggers the weapon. More...
 
virtual Vector2 GetPosition () const
 Gets the weapon's position. More...
 

Detailed Description

Class for a missile launcher.

Constructor & Destructor Documentation

◆ Launcher()

Sample::Launcher::Launcher ( const bool  isActive)
inline

Instantiates a new missile launcher object.

Parameters
isActiveSpecifies if the weapon is active.

The documentation for this class was generated from the following file: