using Microsoft.Xna.Framework; using Penguloon.Levels; using Penguloon.Projectiles; using System; using System.Collections.Generic; namespace Penguloon.Objects { class PenguinObject : ObjectBase { public PenguinObject(Vector2 position, Map map) : base(position, map) { this.Texture = ContentManager.GetTexture("Objects/penguin1"); this.TileSpanX = 1; this.TileSpanY = 1; this.Range = Map.TileWidth * 2; this.AttackSpeedMS = 1000; this.infoText = map.Level.ParentScene.Main.Resources.GetString(Resource.String.ObjectPenguin); } public PenguinObject(Map map) : base(map) { this.Texture = ContentManager.GetTexture("Objects/penguin1"); this.TileSpanX = 1; this.TileSpanY = 1; this.Range = Map.TileWidth * 2; this.AttackSpeedMS = 1000; this.infoText = map.Level.ParentScene.Main.Resources.GetString(Resource.String.ObjectPenguin); } public override void CreateUpgrades() { ObjectUpgrade upg = new ObjectUpgrade(12341234, UpgradeType.PopCount, "+2 pop", null, Map.Level); UpgradeList.Add(new ObjectUpgrade(100, UpgradeType.PopCount, "+1 pop", upg, Map.Level)); UpgradeList.Add(new ObjectUpgrade(100, UpgradeType.Range, "+15 Range", null, Map.Level)); } public override void DrawUnique(float deltaTime) { } public override void UpdateUnique(float deltaTime) { } public override void SpawnUnique() { Projectiles.Add(new SnowballProjectile(this, this.Rotation)); } } }