Ejemplo n.º 1
0
        private void PlaceShopkeeper()
        {
            var shopkeep = new Shopkeeper();

            shopkeep.X = _map.Rooms[0].Center.X + 1;
            shopkeep.Y = _map.Rooms[0].Center.Y + 1;
            _map.AddShopkeeper(shopkeep);
        }
Ejemplo n.º 2
0
        private void PlaceShopkeeperInRoom(bool isFirst)
        {
            Rectangle room;

            if (isFirst)
            {
                room = _map.Rooms[0];
            }
            else
            {
                room = _map.Rooms.Last();
            }

            _map.AddShopkeeper(ActorGenerator.CreateNPC(_level, _map.GetRandomLocationInFirstRoom(room)));
        }