/* * Dot.cs * Authors: August Zinsser * * Copyright Matthew Belmonte 2007 */ using System; using System.Collections.Generic; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; using tAC_Engine; namespace Astropolis { /// /// Represents each dot for use in the dot phase of Meteor Madness. /// Only adds a lifespan to the entity class /// class Dot : Entity { private float mLifeSpan; private Vector3 mSpace3DSize; // Size of this entity in space3D coordinates public float LifeSpan { set { mLifeSpan = value; } get { return mLifeSpan; } } public override float Width { set { mSpace3DSize.X = value; } get { return mSpace3DSize.X; } } public override float Height { set { mSpace3DSize.Y = value; } get { return mSpace3DSize.Y; } } /// /// Constructor /// /// Image asset /// /// public Dot(ref Texture2D sprite, float width, float height) : base(sprite) { mSpace3DSize = new Vector3(width, height, width); } } }