Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
genericrocketlauncher.h
1 #pragma once
2 
3 #include <string>
4 
5 #include "rocketlauncher.h"
6 #include "display/rendering/visuals.h"
7 #include "sound/soundproperties.h"
8 
9 
10 class Rocket;
11 
13 public:
14  GenericRocketLauncher(const std::string& name);
15 
16  virtual const Visuals& visuals() const override;
17  void setVisuals(const Visuals& visuals);
18 
19  virtual float cooldownTime() const override;
20  void setCooldownTime(float cooldownTime);
21 
22  const Rocket* rocketPrototype() const;
23  void setRocketPrototype(Rocket* rocketPrototype);
24 
25  const std::string& rocketName() const;
26  void setRocketName(const std::string& rocketName);
27 
28 
29 protected:
30  float m_cooldownTime;
31  SoundProperties m_rocketSound;
32  SoundProperties m_explosionSound;
33  Visuals m_visuals;
34  std::string m_rocketName;
35  virtual Rocket* createRocket() override;
36 };
37 
Definition: rocketlauncher.h:12
Definition: rocket.h:22
Definition: visuals.h:11
Definition: genericrocketlauncher.h:12
Definition: soundproperties.h:5