1 /* This file is part of the Spring engine (GPL v2 or later), see LICENSE.html */ 2 3 #ifndef _DGUN_WEAPON_H 4 #define _DGUN_WEAPON_H 5 6 #include "Weapon.h" 7 8 class CDGunWeapon: public CWeapon 9 { 10 CR_DECLARE(CDGunWeapon) 11 public: 12 CDGunWeapon(CUnit* owner, const WeaponDef* def); 13 14 void Fire(); 15 void Update(); 16 void Init(); 17 18 private: 19 void FireImpl(bool scriptCall); 20 }; 21 22 #endif // _DGUN_WEAPON_H 23 24