示例#1
0
        public Paragraph(Novel inbound)
        {
            int quotes = 0;

            for (int i = 0; i <= 3; i++) {
                Sentence nextSentence = new Sentence (inbound);
                sentences.Add (nextSentence);
                text = (text + " " + nextSentence.ToString ());
            }
            Smooth ();
        }
示例#2
0
        public Outline(Novel inboundNovel)
        {
            myNovel = inboundNovel;

            myStats.AddRange (myNovel.Stats); //Add the novel stats
            foreach (Character character in myNovel.Characters) { //Add character relationships as stats
                if ((character.Name != null) && (character.Name != "")) {
                    myStats.Add (new Stat (character));

                }
            }
        }
示例#3
0
        public static void Main()
        {
            string outputPath = @"choicescript-master\web\mygame\scenes";
            //string dictPath = "smalldict.i";
            string dictPath = @"mpos\mobyposi.i";
            Prosebreaker breaker;
            Novel novel;
            Outline outline;

            breaker = new Prosebreaker (dictPath);
            breaker.BreakProse ("sample.txt");

            novel = new Novel (breaker);

            outline = new Outline (novel);

            outline.Build ();

            outline.WriteFiles(outputPath);
        }
示例#4
0
 public Section(Architect builder)
 {
     myNovel = builder.MyNovel;
     myLabel = new Label (this);
     myPage = new Page (builder.MyChapter);
     builder.MyChapter.MySections.Add(this);
     Console.Write ("Section #"+myLabel.ID+" created by Builder #" + builder.ID + " at depth " + builder.Depth + " of " + builder.PlannedSections + ". Built ");
     if (builder.Depth < builder.PlannedSections-1) {
         if (myNovel.Rand.Next (0, builder.ChapterNumber) == 0) {
             myEnd = new Choice (builder);
             Console.WriteLine ("Choice.");
         }
         else {
             myEnd = new StatCheck (builder);
             Console.WriteLine ("StatCheck.");
         }
     }
     else {
         myEnd = new Ending (builder);
         Console.WriteLine ("Ending.");
     }
     myEnd.BuildOptions (builder);
 }
示例#5
0
 public Sentence(Novel inbound)
 {
     //Console.WriteLine ("Building a sentence.");
     novel = inbound;
     BuildSentence ();
 }
示例#6
0
 public Sentence(Novel inbound)
 {
     //Console.WriteLine ("Building a sentence.");
     novel = inbound;
     BuildSentence();
 }