public void OrderConvertSavage(IVillageItem item) { IPeon p = PopPeon(); if (p != null) p.SeekSavageToConvert(item); }
public void SeekVillageItem(IVillageItem item) { if (actionState != ActionState.eIdle) return; }
public void OrderSacrificeItem(IVillageItem item, int queueSlot) { IPeon p = PopPeon(); if (p != null) p.SeekVillageItem(item, queueSlot); else { item.Unselect(); SacrificeQueue.GetInstance().FreeSlot(queueSlot); } }
public void SeekSavageToConvert(IVillageItem item) { mTarget = ((VillageItem)item).transform; actionState = State.eGetSavageForConversion; MoveToPoint(mTarget.position); }
public void SeekVillageItem(IVillageItem item, int queueSlot) { mTarget = ((VillageItem)item).transform; mQueueSlot = queueSlot; actionState = State.eRetrievingItem; MoveToPoint(mTarget.position); }
public void RetrieveSavage(IVillageItem item) { Payload.ShowPayload(VillageItemEnum.eSavage); GameObject.Destroy((item as VillageItem).gameObject); actionState = State.eConvertSavage; MoveToPoint(Chapel.GetInstance().GetEntrace()); }
public void RetrieveVillageItem(IVillageItem item) { IStorageArea a = Village.GetGlobalInstance().AnimalsArea; switch ( item.ItemType) { case VillageItemEnum.eFruit: a = Village.GetGlobalInstance().FruitsArea; break; case VillageItemEnum.eSavage: a = Village.GetGlobalInstance().SavagesArea; break; } VillageItem sI = item as VillageItem; if ( a.retriveList.Contains( sI )) { a.retriveList.Remove(sI); } payLoadVillageItem = item.ItemType; actionState = State.eQueueingItem; Payload.ShowPayload(item.ItemType); MoveToPoint(SacrificeQueue.GetInstance().GetSlotPos(mQueueSlot)); GameObject.Destroy((item as VillageItem).gameObject); mTarget = null; }