using Microsoft.Xna.Framework; using Penguloon.Levels; using Penguloon.Projectiles; using System.Collections.Generic; namespace Penguloon.Objects { public class HealthGeneratorObject : ObjectBase { public HealthGeneratorObject(Vector2 position, Map map) : base(position, map) { this.Texture = ContentManager.GetTexture("Objects/healthRegenerator"); this.TileSpanX = 2; this.TileSpanY = 1; this.Range = Map.TileWidth * 1f; this.AttackSpeedMS = 9999999; this.ShouldRotate = false; this.infoText = map.Level.ParentScene.Main.Resources.GetString(Resource.String.ObjectHospital); } public HealthGeneratorObject(Map map) : base(map) { this.Texture = ContentManager.GetTexture("Objects/healthRegenerator"); this.TileSpanX = 2; this.TileSpanY = 1; this.Range = Map.TileWidth * 1f; this.AttackSpeedMS = 9999999; this.ShouldRotate = false; this.infoText = map.Level.ParentScene.Main.Resources.GetString(Resource.String.ObjectHospital); } public override void DrawUnique(float deltaTime) { } public override void UpdateUnique(float deltaTime) { } public override void RoundIsFinished() { base.RoundIsFinished(); Map.Level.Health += 25; } public override void SpawnUnique() { } } }