package org.academiadecodigo.bootcamp11.pokemon.map.city;

import org.academiadecodigo.bootcamp11.pokemon.map.Map;
import org.academiadecodigo.bootcamp11.pokemon.trainer.MainCharacter;

/**
 * Show a message stating that you've arrived here.
 * Get a map.
 * If you don't get a map, you lose the game.
 * If you get a map, mark city as cleared.
 */

public class PalletTown extends City {

    private Map map;

    public PalletTown() {
        super("Pallet Town");
        this.map = new Map(this);
    }

    @Override
    public void play(MainCharacter character) {
        System.out.println(getWelcome());
        character.setMap(this.map);
        setCleared();
    }
}
