using System; using System.Diagnostics; namespace SpaceInvaders { public class SingleMissile : Missiles { public float delta = 15.0f; public SingleMissile(GameObject.ObjectName objName, Sprite.SpriteName spriteName, float x, float y) : base(objName, spriteName, x, y) { } public void SetPosition(float x, float y) { //do i need this? } //TODO: this may not work out? public override void Move(float x, float y) { this.x += x; this.y += y; } public override void Update() { base.Update(); } public override void Accept(Visitor other) { other.VisitMissile(this); } } }