コード例 #1
0
    public string ThrusterReverseDescription()
    {
        string result = string.Empty;
        enumBlockOrientations orientationWithRespectToConstruct = this._focus.OrientationWithRespectToConstruct;

        if (orientationWithRespectToConstruct == enumBlockOrientations.up)
        {
            result = "This upwards facing " + this._focus.Name + " will be activated with \"J\".";
        }
        else if (orientationWithRespectToConstruct == enumBlockOrientations.down)
        {
            result = "This downwards facing " + this._focus.Name + " will be activated with \"U\".";
        }
        else if (orientationWithRespectToConstruct == enumBlockOrientations.forwards)
        {
            result = "Given the forwards orientation of this " + this._focus.Name + " the mode makes no difference.";
        }
        else if (orientationWithRespectToConstruct == enumBlockOrientations.left)
        {
            result = "This left facing " + this._focus.Name + " will be activated with \"K\" in water mode or \"I\" in air mode.";
        }
        else if (orientationWithRespectToConstruct == enumBlockOrientations.right)
        {
            result = "This right facing " + this._focus.Name + " will be activated with \"H\" in water mode or \"Y\" in air mode.";
        }
        else if (orientationWithRespectToConstruct == enumBlockOrientations.backwards)
        {
            result = "Given the backwards facing orientation of this " + this._focus.Name + " it cannot be controlled in reverse thruster mode.";
        }
        return(result);
    }
コード例 #2
0
    public string RollReverseDescription()
    {
        string result = string.Empty;
        enumBlockOrientations orientationWithRespectToConstruct = this._focus.OrientationWithRespectToConstruct;

        if (orientationWithRespectToConstruct == enumBlockOrientations.up)
        {
            result = "This upwards facing " + this._focus.Name + " will be activated with \"K\" and negatively activated with \"H\". Use for components on the right hand side of the vehicle";
        }
        else if (orientationWithRespectToConstruct == enumBlockOrientations.down)
        {
            result = "This downwards facing " + this._focus.Name + " will be activated with \"H\" and negatively activated with \"K\". Use for components on the right hand side of the vehicle";
        }
        return(result);
    }