private void fromJSONDealerHand(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); BlackjackHandJSON convert_classy = BlackjackHandJSON.from_json(json_value, ignore_extras, true); setDealerHand(convert_classy); }
public void setDealerHand(BlackjackHandJSON new_value) { if (flagHasDealerHand) { } flagHasDealerHand = true; storeDealerHand = new_value; }
public void setPlayerHand(BlackjackHandJSON new_value) { if (flagHasPlayerHand) { } flagHasPlayerHand = true; storePlayerHand = new_value; }
protected void finish() { Debug.Assert(have_value); BlackjackHandJSON result = new BlackjackHandJSON(); result.initValue(); int count = value.Count; for (int num = 0; num < count; ++num) { result.appendValue(value[num]); } handle_result(result); }
protected override void handle_result(BlackjackHandJSON result) { top.value.Add(result); }
protected override void handle_result(BlackjackHandJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(BlackjackHandJSON new_result);