Beispiel #1
0
 public Bullet(Directions direction,
               IBulletMovementStrategy strategy,
               CloseBulletHandler closeBulletHandler)
 {
     _strategy               = strategy;
     State.X                 = GameStateSingleton.Instance.State.Chaser.State.X;
     State.Y                 = GameStateSingleton.Instance.State.Chaser.State.Y;
     State.Width             = 30;
     State.Height            = 30;
     Direction               = direction;
     State.IsCollidable      = true;
     this.closeBulletHandler = closeBulletHandler;
 }
Beispiel #2
0
 public void SetSuccessor(CloseBulletHandler successor)
 {
     this.successor = successor;
 }