コード例 #1
0
    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);
    }
コード例 #2
0
 public void setDealerHand(BlackjackHandJSON new_value)
 {
     if (flagHasDealerHand)
     {
     }
     flagHasDealerHand = true;
     storeDealerHand   = new_value;
 }
コード例 #3
0
 public void setPlayerHand(BlackjackHandJSON new_value)
 {
     if (flagHasPlayerHand)
     {
     }
     flagHasPlayerHand = true;
     storePlayerHand   = new_value;
 }
コード例 #4
0
        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);
        }
コード例 #5
0
 protected override void handle_result(BlackjackHandJSON result)
 {
     top.value.Add(result);
 }
コード例 #6
0
        protected override void handle_result(BlackjackHandJSON result)
        {
//@@@            Debug.Assert(!have_value);
            have_value = true;
            value      = result;
        }
コード例 #7
0
 protected abstract void handle_result(BlackjackHandJSON new_result);