Arcade Shooter
Launcher.h
1 
2 /* .oooooo..o .o. ooo ooooo ooooooooo. ooooo oooooooooooo
3  d8P' `Y8 .888. `88. .888' `888 `Y88. `888' `888' `8
4  Y88bo. .8"888. 888b d'888 888 .d88' 888 888
5  `"Y8888o. .8' `888. 8 Y88. .P 888 888ooo88P' 888 888oooo8
6  `"Y88b .88ooo8888. 8 `888' 888 888 888 888 "
7  oo .d8P .8' `888. 8 Y 888 888 888 o 888 o
8  8""88888P' o88o o8888o o8o o888o o888o o888ooooood8 o888ooooood8
9 
10  Sample © 2017 - Shuriken Studios LLC */
11 
12 #pragma once
13 
14 using namespace ShooterLibrary;
15 
16 namespace Sample
17 {
19  class Launcher : public Gun<Missile>
20  {
21  public:
22 
25  Launcher(const bool isActive) : Gun<Missile>(isActive)
26  {
27  SetTriggerType(TriggerType::SECONDARY);
28  SetCooldownSeconds(1.25f);
29  }
30 
31  virtual ~Launcher() { }
32 
33  };
34 }
A weapon type that shoots.
Definition: Gun.h:21
Sample is a sample game to use as a template for using Katana Engine and Shooter Library.
Definition: Background.cpp:14
Shooter Library is a library of classes, interfaces, and value types that provides a foundation for d...
Definition: Background.h:16
static const TriggerType SECONDARY
Represents a secondary weapon trigger.
Definition: TriggerType.h:31
Class for missiles.
Definition: Missile.h:18
Launcher(const bool isActive)
Instantiates a new missile launcher object.
Definition: Launcher.h:25
Class for a missile launcher.
Definition: Launcher.h:19