Пример #1
0
        public Guest()
            : base()
        {
            // When a guest is first created, give them a random name!
            Name = NameGenerator.NextName();

            // Give this guest a wallet with 100 bucks
            Wallet = new Wallet();

            // Give an empty inventory
            Inventory = new GuestInventory();

            // Give a guest basics stats
            foreach (StatType statType in StatTypes.FindByTarget(GameObjectType.Guest))
            {
                float asd = statType.GetBaseValue(this);

                CurrentStats.Add(new Stat()
                {
                    Type  = statType,
                    Value = asd
                });
            }

            Desires = new ObservableQueue <Desire>();
            // React when an item is added or removed from the queue
            Desires.CollectionChanged += Guest_DesiresChanged;

            RefreshDesires();
        }
Пример #2
0
        public Employee()
        {
            Name = NameGenerator.NextName();

            Boost.StatType   = StatTypes.GetByUniqueId("excitement");
            Boost.Multiplier = 1.25f;
            Boost.Duration   = 60;
        }
Пример #3
0
        public Employee(string role)
        {
            Name = NameGenerator.NextName();

            int Randomizer = NumberGenerator.Next(0, 10);

            Function = role;
            if (Function == "Performer")
            {
                Boost.StatType = StatTypes.GetByUniqueId("excitement");
            }

            /*else if(Function == "Mechanic")
             * {
             *
             * }*/
            else
            {
                Exception exception = new Exception("This function does not exist!");
                throw exception;
            }

            Boost.Multiplier = 1.00f;
            Boost.Duration   = 60;

            // Extra opdracht

            if (Randomizer == 0)
            {
                Efficiency        = 'A';
                Salary            = 110;
                Boost.Multiplier += 0.6f;
            }
            else if (Randomizer > 0 && Randomizer <= 5)
            {
                Efficiency        = 'B';
                Salary            = 100;
                Boost.Multiplier += 0.35f;
            }
            else if (Randomizer > 5)
            {
                Efficiency        = 'C';
                Salary            = 90;
                Boost.Multiplier += 0.2f;
            }
        }
Пример #4
0
 public Employee()
 {
     Name = NameGenerator.NextName();
 }