@SuppressWarnings("unchecked") public Player(Civilization civ) { civilization = civ; name = civilization.getDefaultName(); shortName = civilization.getDefaultShortName(); technologySources = new List[TechTree.TECH_COUNT]; for (int i = 0; i < TechTree.TECH_COUNT; i++) { technologySources[i] = new ArrayList<Event>(); } }
public String getNewShipName() { String r = civilization.getShipName(noofGeneratedShips); noofGeneratedShips++; return r; }