Dependencies:   AmmoPusher AmmoSupplier Shooter

Dependents:   OBROT_ALL

ShootingSystem.h

Committer:
inst
Date:
2015-08-21
Revision:
0:987c53b6a212
Child:
1:3b0b583eba77

File content as of revision 0:987c53b6a212:

#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