public void SpawnVillagers()
 {
     m_Beggar    = m_Factory.GetNPC(NPCType.Beggar);
     m_Farmer    = m_Factory.GetNPC(NPCType.Farmer);
     m_Shopowner = m_Factory.GetNPC(NPCType.Shopowner);
     m_Guard     = m_Factory.GetNPC(NPCType.Guard);
     m_Beggar.Speak();
     m_Farmer.Speak();
     m_Shopowner.Speak();
     m_Guard.Speak();
 }
Beispiel #2
0
    public void SpawnVillagers()
    {
        m_Beggar     = m_Factory.getNPC(NPCType.Beggar);
        m_Farmer     = m_Factory.getNPC(NPCType.Farmer);
        m_ShopOwner  = m_Factory.getNPC(NPCType.Shopowner);
        m_QuestGiver = m_Factory.getNPC(NPCType.QuestGiver);

        m_Beggar.Speak();
        m_Farmer.Speak();
        m_ShopOwner.Speak();
        m_QuestGiver.Speak();
    }
Beispiel #3
0
        public void SpawnVillagers()
        {
            // We don't want specify the class to instantiate for each type of villager
            // Instead, we ask the factory to "manufacture" it for us.
            _beggar    = factory.GetNPC(NPCType.Beggar);
            _farmer    = factory.GetNPC(NPCType.Farmer);
            _shopOwner = factory.GetNPC(NPCType.ShopOwner);

            _beggar.Speak();
            _farmer.Speak();
            _shopOwner.Speak();
        }
Beispiel #4
0
    public void SpawnVillagers()
    {
        //HAVE FACTORY MANUFACTURE THEM!!!

        mBeggar    = mFactory.GetNPC(NPCType.Beggar);
        mFarmer    = mFactory.GetNPC(NPCType.Farmer);
        mShopowner = mFactory.GetNPC(NPCType.Shopowner);

        mBeggar.Speak();
        mFarmer.Speak();
        mShopowner.Speak();
    }
    public void SpawnVillagers()
    {
        //Have factory manufacture the villagers

        m_Farmer    = m_Factory.GetNPC(NPCType.Farmer);
        m_Beggar    = m_Factory.GetNPC(NPCType.Beggar);
        m_Shopowner = m_Factory.GetNPC(NPCType.Shopowner);

        m_Farmer.Speak();
        m_Beggar.Speak();
        m_Shopowner.Speak();
    }
        public void SpawnVillagers()
        {
            /**
             * We don't want to specify the class to instiate for each type of villager.
             * Instead, we ask the factory to "manufacture" it for us.
             **/

            m_Beggar    = m_Factory.GetNPC(NPCType.Beggar);
            m_Farmer    = m_Factory.GetNPC(NPCType.Farmer);
            m_Shopowner = m_Factory.GetNPC(NPCType.Shopowner);

            m_Beggar.Speak();
            m_Farmer.Speak();
            m_Shopowner.Speak();
        }
Beispiel #7
0
    public void SpawnVillagers()
    {
        m_Beggar    = m_Factory.GetNPC(NPCType.Beggar);
        m_Farmer    = m_Factory.GetNPC(NPCType.Farmer);
        m_Shopowner = m_Factory.GetNPC(NPCType.Shopowner);
        m_Priest    = m_Factory.GetNPC(NPCType.Priest);
        m_Straydog  = m_Factory.GetNPC(NPCType.StrayDog);
        m_Baker     = m_Factory.GetNPC(NPCType.Baker);

        m_Beggar.Speak();
        m_Farmer.Speak();
        m_Shopowner.Speak();
        m_Priest.Speak();
        m_Straydog.Speak();
        m_Baker.Speak();
    }
Beispiel #8
0
        public void SpawnNPCAndSpeak(NPCenum type)
        {
            INPC npc = factory.GetNPC(type);

            npc.Speak();
        }