Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
genericengine.h
1 #pragma once
2 
3 #include "property/property.h"
4 
5 #include "display/rendering/visuals.h"
6 #include "sound/soundproperties.h"
7 
8 #include "equipment/engine.h"
9 
10 
11 class GenericEngine: public Engine {
12 public:
13  GenericEngine(const std::string& equipmentKey);
14 
15  virtual const Visuals& visuals() const override;
16  void setVisuals(const Visuals& visuals);
17 
18  virtual const SoundProperties& sound() const override;
19  void setEngineSound(const SoundProperties& engineSound);
20 
21  virtual EnginePower power() const override;
22  void setPower(const EnginePower& power);
23 
24  virtual void update(float deltaSec) override;
25 
26 
27 protected:
28  EnginePower m_power;
29  Visuals m_visuals;
30  SoundProperties m_engineSound;
31 };
32 
Definition: enginepower.h:22
Definition: genericengine.h:11
Definition: visuals.h:11
Definition: engine.h:19
Definition: soundproperties.h:5