public void ExecuteTurn(Turn t) { if(t.IsValid()){ foreach( Order o in t.GetOrderList()){ if(!ExecuteOrder(o)){ Debug.LogError("invalid order-code: "+o.ToString()); break; } } }else{ Debug.LogError("invalid turn-code: "+t.ToString()); } }
public void ExecuteTurn(Turn t) { if(t.IsValid()){ foreach( Order o in t.GetOrderList()){ if(!ExecuteOrder(o)) break; } }else{ Debug.LogError("invalid turn-code"); } }
public bool EvaluateTurn(Turn t) { if(t.IsValid()){ bool flag = true; foreach( Order o in t.GetOrderList()){ if(!EvaluateOrder(o)){ flag = false; break; } } return flag; } return false; }