Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
weaponbuilder.h
1 #pragma once
2 
3 #include <string>
4 
5 
6 class Weapon;
7 class GenericGun;
9 
10 /*
11  Dedicated to load either a GenericGun or GenericRocketLauncher
12  from a given property-prefix or - if any is known by that name -
13  a special engine that has its own non-generic implementation
14 */
16 public:
17  WeaponBuilder(const std::string& name);
18 
19  Weapon* build();
20 
21  GenericGun* buildGenericGun();
22  GenericRocketLauncher* buildGenericRocketLauncher();
23 
24 
25 protected:
26  const std::string& m_name;
27 };
28 
Definition: weapon.h:24
Definition: genericgun.h:14
Definition: weaponbuilder.h:15
Definition: genericrocketlauncher.h:12