#![warn(clippy::all,clippy::pedantic)]
use crate::prelude::*;
use super::MapArchitect;

pub struct EmptyArchitect {}

impl MapArchitect for EmptyArchitect{
    fn new(&mut self, rng: &mut RandomNumberGenerator) -> MapBuilder {
        let mut mb = boiler_plate_mapbuilder();
        mb.fill(TileType::Floor);
        mb.player_start = Point::new(SCREEN_WIDTH/2, SCREEN_HEIGHT/2);
        mb.amulet_start = mb.find_most_distant();
        for _ in 0..50{
            mb.monster_spawns.push(
                Point::new(
                    rng.range(1, SCREEN_WIDTH),
                    rng.range(1, SCREEN_HEIGHT)
                )
            )
        }
        mb
    }
}