Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
rocket.h
1 #pragma once
2 
3 #include <memory>
4 
5 #include "ai/aitask.h"
6 #include "ai/boardcomputer.h"
7 
8 #include "utils/handle/handle.h"
9 
10 #include "worldobject/worldobject.h"
11 
12 #include "projectile.h"
13 #include "sound/soundproperties.h"
14 
15 
16 class Sound;
17 
22 class Rocket: public Projectile {
23 public:
24  Rocket();
25 
26  virtual WorldObjectType objectType() const override;
27 
28  WorldObject* target();
29  void setTarget(WorldObject* targetObject);
30 
31  virtual void update(float deltaSec) override;
32 
33 
34 protected:
35  Handle<WorldObject> m_targetHandle;
36  BoardComputer m_boardComputer;
37  std::unique_ptr<AiTask> m_aiTask;
38 
39 };
40 
Definition: worldobject.h:43
Definition: sound.h:12
Definition: rocket.h:22
Definition: projectile.h:12
Definition: boardcomputer.h:19