Dependencies: AmmoPusher AmmoSupplier Shooter
Diff: ShootingSystem.cpp
- Revision:
- 3:bf4ae302724c
- Parent:
- 1:3b0b583eba77
diff -r 4972946a6dfc -r bf4ae302724c ShootingSystem.cpp --- a/ShootingSystem.cpp Wed Oct 14 06:02:19 2015 +0000 +++ b/ShootingSystem.cpp Thu Oct 15 08:45:53 2015 +0000 @@ -60,6 +60,14 @@ } } +ShootingSystem::~ShootingSystem(){ + delete mShooterAngleServo; + delete mAmmoPusher; + delete mAmmoSupplier; + delete mShooter; + delete mPositionManager; +} + void ShootingSystem::waiting( Command command ){ if ( command.isSupplying() ){ mAmmoSupplier->supply();