protected override void Insert(EnvironmentObject obj) { if (obj == null) { throw new ArgumentNullException("Object cannot be null"); } base.Insert(obj); }
protected override void Insert(Models.Objects.EnvironmentObject obj) { if (obj == null) { throw new ArgumentException("Advanced engine Insert object.", "Object cannot be null."); } base.Insert(obj); }
public override void RespondToCollision(CollisionInfo collisionInfo) { var hitObjectGroup = collisionInfo.HitObject.CollisionGroup; if (hitObjectGroup == CollisionGroup.Ground || hitObjectGroup == CollisionGroup.Snow) { this.snow = new Snow(this.Bounds.TopLeft.X, this.Bounds.TopLeft.Y - this.Bounds.Height, this.Bounds.Width, this.Bounds.Height); this.Exists = false; } }
public override void Update() { base.Update(); if (counter == 8) { counter = 0; this.Exists = false; this.expObj = new Explostion(this.Bounds.TopLeft.X, this.Bounds.TopLeft.Y + 1, 5, 5); } else counter++; }
public override void Update() { base.Update(); if (counter == 8) { counter = 0; this.Exists = false; this.expObj = new Explostion(this.Bounds.TopLeft.X, this.Bounds.TopLeft.Y + 1, 5, 5); } else { counter++; } }
protected virtual void Insert(EnvironmentObject obj) { this.objects.Add(obj); }