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(); }; }
public PlayerLivesDisplay(PlayerLives playerLives) { this.playerSprite = Player.Instance().PlayerSprite; this.playerLives = playerLives; }
public LifetimeEntity(SpriteN sprite, Movement movement) : base(sprite) { this.move = movement; this.isAliveFlag = true; }
public Entity(SpriteN sprite) { this.Sprite = sprite; }
/// <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) { }