Example #1
0
        public bool Collisions(clsPlayer Player, int Map, ref clsNPC Collider, ref clsHUDBank Hud, ref clsChatBox Databank, ref int HudNum, ref string HudText)
        {
            Show(Map);

            if (Player.GetQuest() > 0)
            {
               NPCS[2].SetSpeech("Nice work. You must have done this kind of thing before.");
               NPCS[1].SetSpeech("Let's hope you are as good as your boss says you are. We can't let\nthis kind of thing spread.");
            }

            for (int i = 0; i < NPCS.Length; i++)
            {
                if (NPCS[i].Visible)
                {
                    if (Player.Sprite.Collides(NPCS[i].Sprite))
                    {
                        Collider = NPCS[i];
                        HudText = NPCS[i].GetUnlockText();
                        HudNum = NPCS[i].GetLockNom();
                        return true;
                    }
                }
            }

            return false;
        }
Example #2
0
        public clsNPCBank(ContentManager Content, ref clsSpriteBank Sprites)
        {
            NPCS = new clsNPC[13];

            for (int i = 0; i < NPCS.Length; i++)
                NPCS[i] = new clsNPC(Sprites.sprNPC[i],"","","",0);

            NPCS[0].SetName("Katie Stib");
            NPCS[0].SetSpeech("I dont see why everyone is getting worked up. I feel fine!");
            NPCS[0].SetUnlock(15,"Not Showing Signs");
            NPCS[1].SetName("Lee Gul");
            NPCS[1].SetSpeech("My job is to make sure nobody gets into this village because of the disease.\n What's that? A relief worker? Until I can talk to your boss on the radio, you can't come in.");
            NPCS[1].SetUnlock(8,"Infection by Numbers");
            NPCS[2].SetName("Alan Doob");
            NPCS[2].SetSpeech("Fix the tower you say? It looks pretty demolished if you ask me...");
            NPCS[2].SetUnlock(1,"Building Up");
            NPCS[3].SetName("Ben Jab");
            NPCS[3].SetSpeech("I'm so thirsty...");
            NPCS[3].SetUnlock(13, "Rehydrate Me!");
            NPCS[4].SetName("Claire Aaby");
            NPCS[4].SetSpeech("Ohhhh my tummy hurts... I never drink dirty water though.");
            NPCS[4].SetUnlock(5,"Transmitting");
            NPCS[5].SetName("Josh Bosh");
            NPCS[5].SetSpeech("Maybe I should have cooked my steak before I ate it...");
            NPCS[5].SetUnlock(9,"Raw Meats");
            NPCS[6].SetName("Elliot Bea");
            NPCS[6].SetSpeech("I just enjoyed a nice salad, now I feel terrible.");
            NPCS[6].SetUnlock(3,"Green Vegetables");
            NPCS[7].SetName("Amelia Tuck");
            NPCS[7].SetSpeech("We have to stop this thing from spreading!.");
            NPCS[7].SetUnlock(10, "Stubborn");
            NPCS[8].SetName("Emma Tee");
            NPCS[8].SetSpeech("I cant find my brother anywhere! His name is Alan!.");
            NPCS[8].SetUnlock(11, "Family Ties");
            NPCS[9].SetName("Sarah Roze");
            NPCS[9].SetSpeech("How are we supposed to stay clean after taking a dump?.");
            NPCS[9].SetUnlock(7, "Prevent and Destroy");
            NPCS[10].SetName("Adman Bannister");
            NPCS[10].SetSpeech("I hate you guys, coming in here thinking you know how to save the world...");
            NPCS[10].SetUnlock(6, "Define: Relief Work");
            NPCS[11].SetName("Jimmy Booth");
            NPCS[11].SetSpeech("Everyone else was eating the same food. They are all fine.");
            NPCS[11].SetUnlock(12, "Sharing the Wealth");
            NPCS[12].SetName("Alex Jawn");
            NPCS[12].SetSpeech("I only came here on a trip! I've been here three days!");
            NPCS[12].SetUnlock(14, "Travellers Beware");
        }