Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="dressingToModify"></param>
 /// <returns></returns>
 public Dressing Modify_Dressing(Dressing dressingToModify)
 {
     try
     {
         //TODO: MODIFY_DRESSING TO IMPLEMENT
         return(new Dressing());
     }
     catch (Exception ex)
     {
         return(new Dressing());
     }
 }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="dressingToAdd"></param>
 /// <returns></returns>
 public bool Add_Dressing(Dressing dressingToAdd)
 {
     try
     {
         this.dressingList.Add(dressingToAdd);
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
Beispiel #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="dressingToDelete"></param>
 /// <returns></returns>
 public bool Delete_Dressing(Dressing dressingToDelete)
 {
     try
     {
         this.dressingList.Remove(dressingToDelete);
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
Beispiel #4
0
    // Bestaat uit een grootte, opgeruimd / smerig, en heeft aankleding.
    // Daarnaast kan een kamer baddies bevatten, items of een doorgang zijn.
    private void GenerateRoom()
    {
        Random r          = new Random();
        int    rInt       = r.Next(0, 100);
        double sizeChance = r.NextDouble() * 100;

        if (sizeChance >= 85)
        {
            this.size = Size.Large;
        }
        else if (sizeChance >= 60)
        {
            this.size = Size.Medium;
        }
        else
        {
            this.size = Size.Small;
        }

        double cleanliness = r.NextDouble() * 100;

        if (cleanliness >= 70)
        {
            this.cleanliness = Cleanliness.Clean;
        }
        else
        {
            this.cleanliness = Cleanliness.Dirty;
        }

        double dressing = r.NextDouble() * 100;

        if (dressing >= 80)
        {
            this.dressing = Dressing.Bed;
        }
        else if (dressing >= 60)
        {
            this.dressing = Dressing.Chairs;
        }
        else
        {
            this.dressing = Dressing.Empty;
        }
    }
Beispiel #5
0
        private static void Dress_OnCommand(CommandEventArgs e)
        {
            Dressing instance;

            if (!Dressing.Running)
            {
                instance = new Dressing();
            }

            Mobile from = e.Mobile;

            if (CanBegin(from))
            {
                from.Target = new DressingCommand.InternalTarget();
                from.SendMessage("Target a container to equip up.");
                from.SendMessage("Or target yourself to access menu.");
            }
        }
Beispiel #6
0
 void Awake()
 {
     var main = GameObject.FindGameObjectWithTag("GameController");
     sceneController = main.GetComponent<Dressing>();
 }
Beispiel #7
0
 public Dressing UpdateDressing(Dressing vDressing)
 {
     throw new NotImplementedException();
 }
Beispiel #8
0
 public bool UnDeleteDressing(Dressing vDressing)
 {
     throw new NotImplementedException();
 }
Beispiel #9
0
 public Coffee AddDressing(Dressing dress)
 {
     dress.coffee = this;
     return(dress);
 }