Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
rocketlauncher.h
1 #pragma once
2 
3 #include "equipment/weapon.h"
4 
5 #include "rocket.h"
6 
7 
12 class RocketLauncher: public Weapon {
13 public:
14  RocketLauncher(const std::string& equipmentKey);
15 
16  virtual void fireAtObject(WorldObject* target);
17 
18  virtual void update(float deltaSec) override;
19 
20 
21 protected:
22  virtual Rocket* createRocket() = 0;
23  void setupRocket(Rocket* rocket, WorldObject* target);
24 };
25 
Definition: worldobject.h:43
Definition: rocketlauncher.h:12
Definition: weapon.h:24
Definition: rocket.h:22