public Ufo(float depth = 1f)
 {
     this._frame      = 0;
     this.Position    = Vector2.Zero;
     this.Depth       = depth;
     this.Scale       = 1f;
     this.Opacity     = 0f;
     this.Rotation    = 0f;
     this.IsActive    = false;
     this._controller = null;
 }
Beispiel #2
0
            public void AssignNewBehavior()
            {
                switch (MartianSky.Ufo.Random.Next(2))
                {
                case 0:
                    this.Controller = (MartianSky.IUfoController) new MartianSky.ZipBehavior();
                    break;

                case 1:
                    this.Controller = (MartianSky.IUfoController) new MartianSky.HoverBehavior();
                    break;
                }
            }
Beispiel #3
0
 public Ufo(Texture2D texture, float depth = 1f)
 {
     this._frame      = 0;
     this.Position    = Vector2.Zero;
     this._texture    = texture;
     this.Depth       = depth;
     this.Scale       = 1f;
     this.FrameWidth  = texture.Width;
     this.FrameHeight = texture.Height / 3;
     this.GlowTexture = (Texture2D)null;
     this.Opacity     = 0.0f;
     this.Rotation    = 0.0f;
     this.IsActive    = false;
     this._controller = (MartianSky.IUfoController)null;
 }
 public Ufo(float depth = 1f)
 {
     this._frame = 0;
     this.Position = Vector2.Zero;
     this.Depth = depth;
     this.Scale = 1f;
     this.Opacity = 0f;
     this.Rotation = 0f;
     this.IsActive = false;
     this._controller = null;
 }
			public void AssignNewBehavior()
			{
				switch (MartianSky.Ufo.Random.Next(2))
				{
				case 0:
					this.Controller = new MartianSky.ZipBehavior();
					return;
				case 1:
					this.Controller = new MartianSky.HoverBehavior();
					return;
				default:
					return;
				}
			}
			public Ufo(Texture2D texture, float depth = 1f)
			{
				this._frame = 0;
				this.Position = Vector2.Zero;
				this._texture = texture;
				this.Depth = depth;
				this.Scale = 1f;
				this.FrameWidth = texture.Width;
				this.FrameHeight = texture.Height / 3;
				this.GlowTexture = null;
				this.Opacity = 0f;
				this.Rotation = 0f;
				this.IsActive = false;
				this._controller = null;
			}