예제 #1
0
        public Inventory(IHasInventory parent, DemandList demands, EngineSettings settings)
        {
            Parent = parent;

            Settings = settings;

            Demands = demands;

            Construct();
        }
예제 #2
0
        public Inventory(IHasInventory parent, DemandList demands, EngineSettings settings)
        {
            Parent = parent;

            Settings = settings;

            Demands = demands;

            Construct ();
        }
예제 #3
0
        public Person(EngineSettings settings)
        {
            Demands = new DemandList (this);
            Inventory = new Inventory (this, Demands, settings);

            Vitals.Add (PersonVitalType.Energy, 100);
            Vitals.Add (PersonVitalType.Health, 100);
            Vitals.Add (PersonVitalType.Thirst, 0);
            Vitals.Add (PersonVitalType.Hunger, 0);
        }