summaryrefslogtreecommitdiff
path: root/Penguloon/Objects/MortarObject.cs
diff options
context:
space:
mode:
authoraldrikboy <aldrikboy@gmail.com>2018-01-02 23:36:55 +0100
committeraldrikboy <aldrikboy@gmail.com>2018-01-02 23:36:55 +0100
commita05ae287aa87259817e6ca7627986e14eeab6098 (patch)
tree18578b24ab1c35aec05c465fbdc0af517b716fed /Penguloon/Objects/MortarObject.cs
parent0c58f5048e37ad40c68f56f3dc7756d60816cc0e (diff)
dank
Diffstat (limited to 'Penguloon/Objects/MortarObject.cs')
-rw-r--r--Penguloon/Objects/MortarObject.cs47
1 files changed, 47 insertions, 0 deletions
diff --git a/Penguloon/Objects/MortarObject.cs b/Penguloon/Objects/MortarObject.cs
new file mode 100644
index 0000000..a2687d5
--- /dev/null
+++ b/Penguloon/Objects/MortarObject.cs
@@ -0,0 +1,47 @@
+using Microsoft.Xna.Framework;
+using Penguloon.Levels;
+using Penguloon.Projectiles;
+using System.Collections.Generic;
+
+namespace Penguloon.Objects
+{
+ class MortarObject : ObjectBase
+ {
+ public MortarObject(Vector2 position, Map map) : base(position, map)
+ {
+ this.Texture = ContentManager.GetTexture("Objects/mortar");
+ this.TextureBase = ContentManager.GetTexture("Objects/mortarBase");
+ this.TileSpanX = 2;
+ this.TileSpanY = 2;
+ this.Range = Map.TileWidth * 7f;
+ this.AttackSpeedMS = 4500;
+ this.infoText = map.Level.ParentScene.Main.Resources.GetString(Resource.String.ObjectCannon);
+ }
+
+ public MortarObject(Map map) : base(map)
+ {
+ this.Texture = ContentManager.GetTexture("Objects/mortar");
+ this.TextureBase = ContentManager.GetTexture("Objects/mortarBase");
+ this.TileSpanX = 2;
+ this.TileSpanY = 2;
+ this.Range = Map.TileWidth * 7f;
+ this.AttackSpeedMS = 4500;
+ this.infoText = map.Level.ParentScene.Main.Resources.GetString(Resource.String.ObjectCannon);
+ }
+
+ public override void DrawUnique(float deltaTime)
+ {
+
+ }
+
+ public override void UpdateUnique(float deltaTime)
+ {
+
+ }
+
+ public override void SpawnUnique()
+ {
+ Projectiles.Add(new CannonballProjectile(this, this.Rotation));
+ }
+ }
+} \ No newline at end of file