public override ObjectController acceptGameObjectVisit(CollisionSprite visitor) { GameObjectTree columnTemp = activeColumns; while (columnTemp != null) { if (columnTemp.acceptGridVisit(visitor)) { return(columnTemp.acceptGameObjectVisit(visitor)); } } return(null); }
public override void checkCollision() { CLink temp = headCollisionTests; while (temp != null) { if (tree.acceptGridVisit(((WallCollisionData)temp).getCol())) { notifyObsevers(((WallCollisionData)temp).getName()); return; } temp = temp.next; } notifyObsevers(SpriteType.Unitialized); }