Ejemplo n.º 1
0
        public override string GetNaturalLanguage()
        {
            string ifText;

            if (slot.Contents == null)
            {
                ifText = "if some condition is true, then";
            }
            else
            {
                ifText = String.Format("if {0}, then", slot.GetNaturalLanguage());
            }

            string thenText;

            if (spine.IsEmpty)
            {
                thenText = " something happens";
            }
            else
            {
                thenText = " " + spine.GetNaturalLanguage();
            }

            return(ifText + thenText);
        }
Ejemplo n.º 2
0
        public override string GetNaturalLanguage()
        {
            string whileText = slot.GetNaturalLanguage();
            string doText    = consequenceSpine.GetNaturalLanguage();

            return(String.Format("this happens: {0}... and then keeps happening until {1}", doText, whileText));
        }
Ejemplo n.º 3
0
        public override string GetNaturalLanguage()
        {
            string whileText = slot.GetNaturalLanguage();
            string doText    = consequenceSpine.GetNaturalLanguage();

            return(String.Format("while {0}, {1}", whileText, doText));
        }
Ejemplo n.º 4
0
 public override string GetNaturalLanguage()
 {
     // TODO:
     // slot1 should be able to return different natural language depending on
     // whether it has a not appended. i.e. it should be 'player has sword'
     // or 'player doesn't have sword', not 'player has sword' or 'it is not the case that player has sword'.
     return(String.Format("it is not the case that {0}", slot1.GetNaturalLanguage()));
 }
Ejemplo n.º 5
0
        public string GetNaturalLanguage()
        {
            string slotNL = slot.GetNaturalLanguage();

            if (slotNL == "some condition")
            {
                return("Only say this line if...");
            }
            else
            {
                return(String.Format("Only say this line if {0}.", slotNL));
            }
        }
Ejemplo n.º 6
0
        public override string GetNaturalLanguage()
        {
            string ifText;

            if (slot.Contents == null)
            {
                ifText = "if some condition is true, then";
            }
            else
            {
                ifText = String.Format("if {0}, then", slot.GetNaturalLanguage());
            }

            string thenText;

            if (consequenceSpine.IsEmpty)
            {
                thenText = " something happens, otherwise";
            }
            else
            {
                thenText = String.Format(" {0}, otherwise", consequenceSpine.GetNaturalLanguage());
            }

            string elseText;

            if (alternativeSpine.IsEmpty)
            {
                elseText = " something else happens";
            }
            else
            {
                elseText = " " + alternativeSpine.GetNaturalLanguage();
            }

            return(ifText + thenText + elseText);
        }
Ejemplo n.º 7
0
 public override string GetNaturalLanguage()
 {
     return(String.Format("{0} and {1}", slot1.GetNaturalLanguage(), slot2.GetNaturalLanguage()));
 }