public bool ThereAreShotsAvailable(CannonObject tmpController) { if (tmpController.totalShotsCanBeFired == -1) { return(true); } return(tmpController.GetShotsFiredSoFar() < tmpController.totalShotsCanBeFired); }
public override void Shoot(CannonObject tmpController) { if (!ThereAreShotsAvailable(tmpController)) { return; } else { cannonObject = tmpController; ShotBehaviorStartToFinish(); } }
void ShotBehavior(CannonObject controller) { }
public override void Shoot(CannonObject controller) { ShotBehavior(controller); }
public abstract void Shoot(CannonObject controller);