summaryrefslogtreecommitdiff
path: root/Penguloon/Objects/HealthGeneratorObject.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Penguloon/Objects/HealthGeneratorObject.cs')
-rw-r--r--Penguloon/Objects/HealthGeneratorObject.cs54
1 files changed, 54 insertions, 0 deletions
diff --git a/Penguloon/Objects/HealthGeneratorObject.cs b/Penguloon/Objects/HealthGeneratorObject.cs
new file mode 100644
index 0000000..460387c
--- /dev/null
+++ b/Penguloon/Objects/HealthGeneratorObject.cs
@@ -0,0 +1,54 @@
+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()
+ {
+
+ }
+ }
+} \ No newline at end of file