Exemplo n.º 1
0
 @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>();
   }
 }
Exemplo n.º 2
0
 public String getNewShipName() {
   String r = civilization.getShipName(noofGeneratedShips);
   noofGeneratedShips++;
   return r;
 }