package hu.ppke.itk.hakta.hf03;

public class Man extends Entity {

	public Man(String name, String dwelling, int EoL, String species) {
		super(name, dwelling, EoL, species);
	}
	
	static String[] dwellings = { "Gondor", "Rohan" };
	static String[] names = { "Adrahil", "Aegnor", "Angbor", "Arathorn", "Aragorn", "Faramir", "Boromir", "Anghabar", "Uhired", "Iruem", 
			"Owend", "Éomer" };
	static String enemies = "ork";
	
	public Man() {
		super(names[(int) Math.floor(Math.random()*11)], dwellings[(int) Math.floor(Math.random()*2)], 80, "man");
	}
	
	public boolean friends(Entity who) {
		return ! enemies.contains(who.species);
	}
	
}
