public void AddToViewQueue(ItemQueue item, bool forceIt) { viewQueue.Add(item, forceIt); }
public void AddToViewQueue(ItemQueue item) { AddToViewQueue(item, false); }
/// <summary> /// Adds one item to queue /// </summary> /// <param name="item">Item added to queue</param> public void Add(ItemQueue item, bool forceIt) { if (ENQUEUE_TIME == 0 || forceIt) { item.Execute(); } else queue.Enqueue(item); }
public void NextTurn() { if (mapView.getIsViewQueueClear()) { ItemQueue item = new ItemQueue(mapView); mapView.AddToViewQueue(item); } for (int i = 0; i < hexaMapModel.Length; i++) for (int j = 0; j < hexaMapModel[i].Length; j++) if (hexaMapModel[i][j] != null) hexaMapModel[i][j].NextTurn(); }
public void Add(ItemQueue item) { Add(item, false); }