public void Update(GameTime gametime) { int index = 0; GameObj Obj = (GameObj)List.getDatabyIndex(index); while (Obj != null) { Obj.Update(gametime); index++; Obj = (GameObj)List.getDatabyIndex(index); } }
public Node Find(GameObj inObj) { Node ptr = pHeadActive; while (ptr != null) { if (((ListNode)ptr).getData().Equals(inObj)) { return(ptr); } ptr = ptr.pNext; } return(null); }
private ListNode Find(GameObj inObj) { ListNode temp = (ListNode)List.getActiveHead(); while (temp != null) { if (temp.getData().Equals(inObj)) { return(temp); } temp = (ListNode)temp.pNext; } return(null); }
public TreeNode Find(GameObj inObj) { TreeNode ptr = root; if (ptr.getData().Equals(inObj)) { return(ptr); } while (ptr != null) { if (ptr.pChild != null) { ptr = ptr.pChild; while (ptr != null) { if (ptr.getData().Equals(inObj)) { return(ptr); } if (ptr.pSibling != null) { ptr = ptr.pSibling; } else { break; } } ptr = ptr.pParent; ptr = ptr.pSibling; if (ptr.getData().Equals(inObj)) { return(ptr); } } } return(ptr); }
public GameObj Find(GameObjName inName) { int index = 0; GameObj Obj = (GameObj)List.getDatabyIndex(index); while (Obj != null) { if (Obj.getName() == inName) { return(Obj); } index++; Obj = (GameObj)List.getDatabyIndex(index); } return(null); }
public void KillObject(GameObj inObj, SpriteBatchName inSpName) { GameSprite _gameSprite = inObj.getGameSprite(); if (_gameSprite != null) { SpriteBatchManager.getInstance().Kill(_gameSprite, inSpName); } ColObj _colObj = inObj.getColObj(); if (_colObj != null) { ColObjManager.getInstance().Kill(_colObj); } ColGroup _ColGroup = ColGroupManager.getInstance().find(inObj.TempColGroupName); _ColGroup.Kill(inObj); Kill(inObj); }
public override void Accept(GameObj inObj) { inObj.VisitSuper(this); }
public override void Accept(GameObj inObj) { inObj.VisitShield(this); }
public virtual void Accept(GameObj inObj) { }
public override void Accept(GameObj inObj) { }
public override void Accept(GameObj inObj) { inObj.VisitAlien(this); }
public override void Accept(GameObj inObj) { inObj.VisitBomb(this); }
public void Add(GameObj inObj) { List.Add(inObj); }
public override void Accept(GameObj inObj) { inObj.VisitMissile(this); }