Represents a blaster weapon that can be fired by a game object.
More...
#include <Blaster.h>
Represents a blaster weapon that can be fired by a game object.
Definition at line 7 of file Blaster.h.
◆ Blaster()
| Blaster::Blaster |
( |
const std::string & | key | ) |
|
|
inline |
Instantiate a blaster object.
- Parameters
-
| isActive | A flag to determine if the weapon is active. |
Definition at line 14 of file Blaster.h.
◆ ~Blaster()
| virtual Blaster::~Blaster |
( |
| ) |
|
|
inlinevirtual |
◆ CanFire()
| virtual bool Blaster::CanFire |
( |
| ) |
const |
|
inlinevirtual |
Check if the blaster is ready to fire.
- Returns
- True if the blaster is ready to fire.
Definition at line 26 of file Blaster.h.
◆ Fire()
Fire the blaster.
- Parameters
-
| triggerType | The type of trigger that fired the weapon. |
Implements Weapon.
Definition at line 42 of file Blaster.h.
◆ GetCooldownSeconds()
| virtual float Blaster::GetCooldownSeconds |
( |
| ) |
|
|
inlinevirtual |
Get the number of seconds the blaster must wait between shots.
- Returns
- The number of seconds the blaster must wait between shots.
Definition at line 33 of file Blaster.h.
◆ ResetCooldown()
| virtual void Blaster::ResetCooldown |
( |
| ) |
|
|
inlinevirtual |
Reset the cooldown of the blaster.
Definition at line 29 of file Blaster.h.
◆ SetCooldownSeconds()
| virtual void Blaster::SetCooldownSeconds |
( |
const float | seconds | ) |
|
|
inlinevirtual |
Set the number of seconds the blaster must wait between shots.
- Parameters
-
| seconds | The number of seconds the blaster must wait between shots. |
Definition at line 37 of file Blaster.h.
◆ Update()
| virtual void Blaster::Update |
( |
const GameTime & | gameTime | ) |
|
|
inlinevirtual |
Update the blaster.
- Parameters
-
| gameTime | A reference to the game time object. |
Reimplemented from Weapon.
Definition at line 19 of file Blaster.h.
The documentation for this class was generated from the following file: