|
Arcade Shooter
|
A weapon type that shoots. More...
#include <Gun.h>
Public Member Functions | |
| 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... | |
A weapon type that shoots.
|
inline |
Instantiates a new weapon object.
| isActive | Specifies if the weapon is active. |
|
inlinevirtual |
Determines if the weapon is ready to fire.
|
inlinevirtual |
Fires the weapon.
| triggerType | Specifies how the weapon is triggered. |
Implements ShooterLibrary::Weapon.
|
inlinevirtual |
Sets the time in seconds that the weapon takes between firing.
| seconds | The time between firing shots. |
|
inlinevirtual |
Sets the pool where the weapon gets it's projectiles.
| pPool | The pool to use. |
Implements ShooterLibrary::Weapon.
|
inlinevirtual |
Called when the game determines it is time to draw a frame.
| pGameTime | Timing values including time since last update. |
Reimplemented from ShooterLibrary::Weapon.
1.8.13