예제 #1
0
 public override void AddHuman(IHuman human)
 {
     HumanList.Add(human);
     if (human.MyRoom == this)                                                       // If the specified room the human is walking to is equal to the this room change the room to an occupied room.
     {
         hotelNode.BackgroundImage = spriteOccupied;
     }
 }
예제 #2
0
        public static void SpawnHumans()
        {
            for (var i = 0; i < SurvivorQuantity; i++)
            {
                var human = new Human
                {
                    HasSpawned = true,
                    IsAlive    = true,
                    Health     = 1,
                    Position   = MapCentre(),
                    Angle      = 0,
                    Speed      = 0.3f,
                    ID         = Guid.NewGuid().ToString()
                };

                HumanList.Add(human);
            }
        }