Example #1
0
        /*
         * BuildDialogue2 builds shown dialogue:
         * NPC: „Hej czy to Ty jesteś tym słynnym {ImięPostaci} – pogromcą smoków?”
         *  Hero: „Tak, jestem {ImięPostaci}”
         *      NPC: „WOW! Miło poznać!”. <KONIEC>
         *  Hero: „Nie.” <KONIEC>
         */
        private NpcDialogPart BuildDiague2()
        {
            List <IDialogPart> heroPartLists = new List <IDialogPart>();
            NpcDialogPart      oneNpcPart    = new NpcDialogPart("„WOW! Miło poznać!”", null);
            HeroDialogPart     oneHeroPart   = new HeroDialogPart("„Tak, jestem {ImięPostaci}”", oneNpcPart);

            heroPartLists.Add(oneHeroPart);
            oneHeroPart = new HeroDialogPart("„Nie.”", null);
            heroPartLists.Add(oneHeroPart);
            oneNpcPart = new NpcDialogPart("„Hej czy to Ty jesteś tym słynnym {ImięPostaci} – pogromcą smoków?”", heroPartLists);
            return(oneNpcPart);
        }
Example #2
0
        /*
         * BuildDialogue1 builds shown dialogue:
         *
         * NPC: „Witaj, czy możesz mi pomóc dostać się do innego miasta?”
         * Hero: „Tak, chętnie pomogę”
         * NPC: „Dziękuję! W nagrodę otrzymasz ode mnie 100 sztuk złota”.
         * Hero: „Dam znać jak będę gotowy” <KONIEC>
         * Hero: „100 sztuk złota to za mało!”
         * NPC: „Niestety nie mam więcej. Jestem bardzo biedny”.
         * Hero: „OK, może być 100 sztuk złota.”
         *  NPC: „Dziękuję.” <KONIEC>
         * Hero: „W takim razie radź sobie sam.” <KONIEC>
         * Hero: „Nie, nie pomogę, żegnaj.” <KONIEC>
         */
        private NpcDialogPart BuildDialogue1()
        {
            List <IDialogPart> heroPartLists = new List <IDialogPart>();
            NpcDialogPart      oneNpcPart    = new NpcDialogPart("„Dziękuję.”", null);
            IDialogPart        oneHeroPart   = (IDialogPart) new HeroDialogPart("„OK, może być 100 sztuk złota.”", oneNpcPart);

            heroPartLists.Add(oneHeroPart);
            oneHeroPart = (IDialogPart) new HeroDialogPart("„W takim razie radź sobie sam.”", null);
            heroPartLists.Add(oneHeroPart);
            oneNpcPart  = new NpcDialogPart("„Niestety nie mam więcej. Jestem bardzo biedny”", new List <IDialogPart>(heroPartLists));
            oneHeroPart = (IDialogPart) new HeroDialogPart("„100 sztuk złota to za mało!”", oneNpcPart);
            heroPartLists.Clear();
            heroPartLists.Add(oneHeroPart);
            oneHeroPart = (IDialogPart) new HeroDialogPart("„Dam znać jak będę gotowy”", null);
            heroPartLists.Add(oneHeroPart);
            oneNpcPart  = new NpcDialogPart("„Dziękuję! W nagrodę otrzymasz ode mnie 100 sztuk złota”", new List <IDialogPart>(heroPartLists));
            oneHeroPart = (IDialogPart) new HeroDialogPart("„Tak, chętnie pomogę”", oneNpcPart);
            heroPartLists.Clear();
            heroPartLists.Add(oneHeroPart);
            oneHeroPart = (IDialogPart) new HeroDialogPart("„Nie, nie pomogę, żegnaj.”", null);
            heroPartLists.Add(oneHeroPart);
            oneNpcPart = new NpcDialogPart("„Witaj, czy możesz mi pomóc dostać się do innego miasta?”", new List <IDialogPart>(heroPartLists));
            return(oneNpcPart);
        }
Example #3
0
 public HeroDialogPart(String message, NpcDialogPart npcParts)
 {
     this.currStatement      = message;
     this.possibleStatements = npcParts;
 }
Example #4
0
 public NPC(String name, NpcDialogPart start)
 {
     this.Name   = name;
     startDialog = start;
 }