Dependencies: AmmoPusher AmmoSupplier Shooter
Diff: ShootingSystem.h
- Revision:
- 0:987c53b6a212
- Child:
- 1:3b0b583eba77
diff -r 000000000000 -r 987c53b6a212 ShootingSystem.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ShootingSystem.h Fri Aug 21 04:52:50 2015 +0000 @@ -0,0 +1,30 @@ +#ifndef INCLUDED_SHOOTING_SYSTEM_H +#define INCLUDED_SHOOTING_SYSTEM_H + +class I2CServo; +class I2CMotor; +class Command; +class AmmoPusher; +class AmmoSupplier; +class Shooter; + +class ShootingSystem{ +public: + ShootingSystem( + I2CServo* angleManagerServo, I2CServo* positionManagerServo, + I2CMotor* ammoPusherMotor, I2CMotor** ammoSupplier, + Shooter* shooter ); + void update( Command command ); +private: + void reset(); + + I2CServo* mShooterAngleManager; + I2CServo* mShooterPositionManager; + AmmoPusher* mAmmoPusher; + AmmoSupplier* mAmmoSupplier; + Shooter* mShooter; + bool mIsShooting; + bool mIsResetting; +}; + +#endif