public override void VisitRightUFO(RightUFO m) { // MissileRoot vs WallRoot GameObject pGameObj = (GameObject)Iterator.GetChild(this); ColPair.Collide(m, pGameObj); }
public override void Execute(float deltaTime, TimeEvent.Name name) { GameObject pUFO = null; switch (this.flag) { case false: pUFO = new LeftUFO(gameObjectName, spriteName, 800, 600); this.flag = true; break; case true: pUFO = new RightUFO(gameObjectName, spriteName, 100, 600); this.flag = false; break; default: // something is wrong Debug.Assert(false); break; } this.pTree.Add(pUFO); // Attached to Group pUFO.ActivateGameSprite(this.pSpriteBatch); pUFO.ActivateCollisionSprite(this.pCollisionSpriteBatch); Random rnd = new Random(); int num = rnd.Next(20, 50); TimerMan.Add(name, this, num); }
public override void VisitRightUFO(RightUFO a) { Debug.WriteLine(" --->DONE<----"); ColPair pColPair = ColPairMan.GetActiveColPair(); Debug.Assert(pColPair != null); pColPair.SetCollision(a, this); pColPair.NotifyListeners(); }
public virtual void VisitRightUFO(RightUFO s) { Debug.WriteLine("Visit by Right Moving UFO not implemented"); Debug.Assert(false); }