package hu.ppke.itk.hakta.hf03;

public class Orc extends Entity {

	public Orc(String name, String dwelling, int EoL, String species) {
		super(name, dwelling, EoL, species);
	}
	
	static String[] names = { "Azog", "Films", "Balcmeg", "Boldog", "Bolg", "Golfimbul", "Gorbag", "Gorgol", "Grishnákh",
			"Lagduf", "Lug", "Lugdush", "Mauhúr", "Muzgash", "Orcobal", "Othrod", "Radbug", "Shagrat", "Snaga", "Ufthak", "Uglúk" };
	static String enemies = "man, elf, dwarf, hobbit";

	public Orc() {
		super(names[(int) Math.floor(Math.random()*12)], "Mordor", 40, "ork");
	}
	
	public boolean friends(Entity who) {
		return ! enemies.contains(who.species);
	}
	
}
