Ejemplo n.º 1
0
 public Enemy(SpriteN sprite, Movement movement, int health = 100)
     : base(sprite, movement)
 {
     this.isHit           = false;
     this.health          = new Health(health);
     this.health.OnDeath += delegate { this.Die(); };
 }
Ejemplo n.º 2
0
 public PlayerLivesDisplay(PlayerLives playerLives)
 {
     this.playerSprite = Player.Instance().PlayerSprite;
     this.playerLives  = playerLives;
 }
Ejemplo n.º 3
0
 public LifetimeEntity(SpriteN sprite, Movement movement)
     : base(sprite)
 {
     this.move        = movement;
     this.isAliveFlag = true;
 }
Ejemplo n.º 4
0
 public Entity(SpriteN sprite)
 {
     this.Sprite = sprite;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Bullet"/> class.
 /// </summary>
 /// <param name="sprite">bullet sprite.</param>
 /// <param name="movementPattern">movement pattern of bullet.</param>
 public Bullet(SpriteN sprite, VectorMovement movement)
     : base(sprite, movement)
 {
 }