summaryrefslogtreecommitdiff
path: root/Penguloon/Objects/HealthGeneratorObject.cs
diff options
context:
space:
mode:
authoraldrikboy <aldrikboy@gmail.com>2017-12-29 17:27:49 +0100
committeraldrikboy <aldrikboy@gmail.com>2017-12-29 17:27:49 +0100
commitda38e93e55b6ff46a53dcd9d2be393149089d329 (patch)
treec19fdb964ee6f8dd8dd3102b22de541828850983 /Penguloon/Objects/HealthGeneratorObject.cs
parent5373e919a0d9e389fc2076963f610d044c21ccb5 (diff)
obejct info, new level selector, credits haHA
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