コード例 #1
0
    /******
    *
    *
    ******/

    public void MakeEventChoice(Choice choice)
    {
        if (stateMachine_.currentState is EventState)
        {
            EventState state = (EventState)stateMachine_.currentState;

            choice.PerformChallengeSetResult();
            // TODO deduct costs for the choice, update the inventory
            gameOver_ = ExecuteResult(choice.LastResult);
            state.MakeEventChoice(choice, gameOver_);
            DeductCosts(choice);
        }
    }