public void addObject(ObjectController controller) { DLink temp = managerHead; while (temp != null) { ((PlayerModeStatusManagerData)temp).getManager().add(controller); temp = temp.pNext; } }
public override void AddToActive(int column, int row, ObjectController gameObject) { if (this.activeColumns == null) { activeColumns = new GameObjectNode(row); ((GameObjectNode)activeColumns).setObj(gameObject); } else { GameObjectTree columnTemp = activeColumns; while (columnTemp.nextNode != null && columnTemp.getNum() != row) { columnTemp = columnTemp.nextNode; } columnTemp.nextNode = new GameObjectNode(row); columnTemp = columnTemp.nextNode; ((GameObjectNode)columnTemp).setObj(gameObject); } }
public virtual void AddToActive(int column, int row, ObjectController gameObject) { total++; if (activeColumns == null) { activeColumns = new GameObjectColumn(column); activeColumns.AddToActive(column, row, gameObject); } else { GameObjectTree columnTemp = activeColumns; while (columnTemp.nextNode != null && columnTemp.getNum() != column) { columnTemp = columnTemp.nextNode; } if (columnTemp.getNum() != column) { columnTemp.nextNode = new GameObjectColumn(column); columnTemp = columnTemp.nextNode; } columnTemp.AddToActive(column, row, gameObject); } }
public void add(ObjectController controller) { AddToActive(new ObjectControllerStatusData(controller)); }
public ObjectControllerStatusData(ObjectController objectController) { this.objectController = objectController; }
public void setObj(ObjectController gameObject) { this.gameObject = gameObject; }