Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 public void SetSuccessor(CloseBulletHandler successor)
 {
     this.successor = successor;
 }