Example #1
0
    public string SimpleRiddle_takethisto(DeliveryItem argDeliveryItem, int argCurfloor, int numberofWronsForThisSession)
    {
        string nameofGiver           = _hotelManager.GetCurFloorDweller().GEtMyName(true);
        string nameOfDestinationDude = argDeliveryItem.GetDestFloorDweller().AnimalName;
        string ItemNAme = argDeliveryItem.RefName;
        int    DestinationFloorNumber = argDeliveryItem.GetDestFloorDweller().MyFinalResidenceFloorNumber;
        int    RandomFloorDiscovered  = _hotelManager.Get_Random_FloorDiscovered();


        string strToSay = "";

        if (numberofWronsForThisSession == 0)
        {
            if (_hotelManager.DiscoveredFloors.Count <= 1)
            {
                //we jsut started
                strToSay = "a_" + Take_thisThing_to_FloorNumberRelativeToHere(ItemNAme, DestinationFloorNumber, argCurfloor);
            }
            else
            {
                strToSay = "b_" + Take_thisThing_to_FloorNumberRelativeToHere(ItemNAme, DestinationFloorNumber, argCurfloor);
            }
        }
        else
        if (numberofWronsForThisSession > 0 && numberofWronsForThisSession < 2)
        {
            strToSay = "c_" + Take_this_to_FloorNumberRelativeTo_Memorized(ItemNAme, DestinationFloorNumber, RandomFloorDiscovered);
        }
        else if (numberofWronsForThisSession >= 2)
        {
            strToSay = "d_" + Take_thisThing_to_FloorNumber(ItemNAme, argDeliveryItem.GetDestFloorDweller().MyFinalResidenceFloorNumber);
        }

        return(strToSay);
    }
    public void CreateSessionWhenBellHopObtainsANewItem(DeliveryItem argItem)
    {
        print("making new Session itenm dest is floor " + argItem.GetDestFloorDweller().MyFinalResidenceFloorNumber);
        DeliverySession temp = new DeliverySession(argItem, GameSessionID);

        curSession = temp;
        gameSessions.Add(temp);
        GameSessionID++;
    }
Example #3
0
    public string RiddleMaker(DeliveryItem argDeliveryItem, int numberofWronsForThisSession)
    {
        string strToSay                        = "";
        string nameofGiver                     = _hotelManager.GetCurFloorDweller().GEtMyName(true);
        string nameOfDestinationDude           = argDeliveryItem.GetDestFloorDweller().AnimalName;
        string ItemNAme                        = argDeliveryItem.RefName;
        int    DestinationFloorNumberZeroBased = argDeliveryItem.GetDestFloorDweller().MyFinalResidenceFloorNumber;

        DestinationFloorNumberZeroBased++;
        int Curfloor = _hotelManager.Get_curFloor().FloorNumber;

        Curfloor++;
        int RandomFloorDiscovered = _hotelManager.Get_Random_FloorDiscovered();

        Debug.Log("wrongs: " + numberofWronsForThisSession);
        if (numberofWronsForThisSession > HIGH_wrongs)
        {
            strToSay = "just " + DestinationFloorNumberZeroBased;
        }
        else
        if (numberofWronsForThisSession > Med_wrongs)
        {
            strToSay = "Go to " + DestinationFloorNumberZeroBased;
        }
        else
        if (numberofWronsForThisSession > Low_wrongs)
        {
            strToSay = Algebra_SimpleAdditionSubstraction(DestinationFloorNumberZeroBased, numberofWronsForThisSession);
        }
        else
        {
            strToSay = Algebra_BigSubstraction(DestinationFloorNumberZeroBased, numberofWronsForThisSession);
        }

        return(strToSay);
    }