Exemple #1
0
    void OnMouseDown()
    {
        List <Prince> allPrince = SceneHandler.getAllMeeplesFromType <Prince>();

        if (!allPrince[0].goFeastused)
        {
            List <Companion>  allComp = SceneHandler.getAllMeeplesFromType <Companion>();
            List <PackAnimal> allPack = SceneHandler.getAllMeeplesFromType <PackAnimal>();
            int CompCount             = allComp.Count - allPack.Count;
            int amountFood            = CompCount * 3;

            foreach (PackAnimal p in allPack)
            {
                int tempMount = p.loadCapacity - p.ActualLoad;
                if (tempMount > 0)
                {
                    if (tempMount >= amountFood)
                    {
                        p.ActualLoad += amountFood;
                        break;
                    }
                    else
                    {
                        int amountToFill = amountFood - tempMount;
                        p.ActualLoad += amountToFill;
                        amountFood    = amountFood - tempMount;
                    }
                }
            }

            allPrince[0].goFeastused = true;
        }
        ClickWorker.destroyRadialMenu();
    }
Exemple #2
0
 void OnMouseDown()
 {
     if (SceneHandler.activeCompanion.HasActionOutstanding)
     {
         SceneHandler.scoutingActive = true;
         SceneHandler.activeCompanion.HasActionOutstanding = false;
     }
     ClickWorker.destroyRadialMenu();
 }
Exemple #3
0
    void OnMouseDown()
    {
        List <Prince> allPrince = SceneHandler.getAllMeeplesFromType <Prince>();

        if (!allPrince[0].goVIPused)
        {
            List <Healer>    allHeal   = SceneHandler.getAllMeeplesFromType <Healer>();
            List <Hunter>    allHunter = SceneHandler.getAllMeeplesFromType <Hunter>();
            List <Mercenary> allMerc   = SceneHandler.getAllMeeplesFromType <Mercenary>();
            List <Merchant>  allMerch  = SceneHandler.getAllMeeplesFromType <Merchant>();

            List <Scout> allScout = SceneHandler.getAllMeeplesFromType <Scout>();
            foreach (Healer h in allHeal)
            {
                h.Strength += 2;
            }
            foreach (Hunter h in allHunter)
            {
                h.Strength += 2;
            }
            foreach (Mercenary h in allMerc)
            {
                h.Strength += 2;
            }
            foreach (Merchant h in allMerch)
            {
                h.Strength += 2;
            }
            foreach (Prince h in allPrince)
            {
                h.Strength += 2;
            }
            foreach (Scout h in allScout)
            {
                h.Strength += 2;
            }
            allPrince[0].goVIPused = true;
        }
        ClickWorker.destroyRadialMenu();
    }
Exemple #4
0
 void OnMouseDown()
 {
     //butcher implementation missing.
     ClickWorker.destroyRadialMenu();
 }
Exemple #5
0
 // Use this for initialization
 void OnMouseDown()
 {
     SceneHandler.activeCompanion.Alive = false;
     ClickWorker.destroyRadialMenu();
 }
Exemple #6
0
 void OnMouseDown()
 {
     ClickWorker.destroyRadialMenu();
     SceneHandler.activeCompanion.openStatistics();
 }