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.ObjectMortar); } 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.ObjectMortar); } public override void DrawUnique(float deltaTime) { } public override void UpdateUnique(float deltaTime) { } public override void SpawnUnique() { Projectiles.Add(new CannonballProjectile(this, this.Rotation)); } } }