示例#1
0
 public void AddToViewQueue(ItemQueue item, bool forceIt)
 {
     viewQueue.Add(item, forceIt);
 }
示例#2
0
 public void AddToViewQueue(ItemQueue item)
 {
     AddToViewQueue(item, false);
 }
示例#3
0
 /// <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);
 }
示例#4
0
文件: Map.cs 项目: alenkacz/Expanze
        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();
        }
示例#5
0
 public void Add(ItemQueue item)
 {
     Add(item, false);
 }