示例#1
0
        public bool ThereAreShotsAvailable(CannonObject tmpController)
        {
            if (tmpController.totalShotsCanBeFired == -1)
            {
                return(true);
            }

            return(tmpController.GetShotsFiredSoFar() < tmpController.totalShotsCanBeFired);
        }
示例#2
0
 public override void Shoot(CannonObject tmpController)
 {
     if (!ThereAreShotsAvailable(tmpController))
     {
         return;
     }
     else
     {
         cannonObject = tmpController;
         ShotBehaviorStartToFinish();
     }
 }
示例#3
0
 void ShotBehavior(CannonObject controller)
 {
 }
示例#4
0
 public override void Shoot(CannonObject controller)
 {
     ShotBehavior(controller);
 }
示例#5
0
 public abstract void Shoot(CannonObject controller);