Esempio n. 1
0
        public override string GetSummary()
        {
            string displaySummary = "";

            if (display != StageDisplayType.None)
            {
                displaySummary = StringFormatter.SplitCamelCase(display.ToString());
            }
            else
            {
                return("Error: No display selected");
            }
            string stageSummary = "";

            if (stage != null)
            {
                stageSummary = " \"" + stage.name + "\"";
            }
            return(displaySummary + stageSummary);
        }
Esempio n. 2
0
        public override string GetSummary()
        {
            if (display == DisplayType.None && character == null)
            {
                return("Error: No character or display selected");
            }
            else if (display == DisplayType.None)
            {
                return("Error: No display selected");
            }
            else if (character == null)
            {
                return("Error: No character selected");
            }

            string displaySummary      = "";
            string characterSummary    = "";
            string fromPositionSummary = "";
            string toPositionSummary   = "";
            string stageSummary        = "";
            string portraitSummary     = "";
            string facingSummary       = "";

            displaySummary = StringFormatter.SplitCamelCase(display.ToString());

            if (display == DisplayType.Replace)
            {
                if (replacedCharacter != null)
                {
                    displaySummary += " \"" + replacedCharacter.name + "\" with";
                }
            }

            characterSummary = character.name;
            if (stage != null)
            {
                stageSummary = " on \"" + stage.name + "\"";
            }

            if (portrait != null)
            {
                portraitSummary = " " + portrait.name;
            }

            if (shiftIntoPlace)
            {
                if (offset != 0)
                {
                    fromPositionSummary = offset.ToString();
                    fromPositionSummary = " from " + "\"" + fromPositionSummary + "\"";
                }
            }
            else if (fromPosition != null)
            {
                fromPositionSummary = " from " + "\"" + fromPosition.name + "\"";
            }

            if (toPosition != null)
            {
                string toPositionPrefixSummary = "";
                if (move)
                {
                    toPositionPrefixSummary = " to ";
                }
                else
                {
                    toPositionPrefixSummary = " at ";
                }

                toPositionSummary = toPositionPrefixSummary + "\"" + toPosition.name + "\"";
            }

            if (facing != FacingDirection.None)
            {
                if (facing == FacingDirection.Left)
                {
                    facingSummary = "<--";
                }
                if (facing == FacingDirection.Right)
                {
                    facingSummary = "-->";
                }

                facingSummary = " facing \"" + facingSummary + "\"";
            }

            return(displaySummary + " \"" + characterSummary + portraitSummary + "\"" + stageSummary + facingSummary + fromPositionSummary + toPositionSummary);
        }