Ai Players
This commit is contained in:
@@ -34,11 +34,11 @@ public class AiPlayerManager {
|
|||||||
public static void init(){
|
public static void init(){
|
||||||
while(AiPlayers.size() < totalPlayers){
|
while(AiPlayers.size() < totalPlayers){
|
||||||
AiPlayer aiPlayer = new AiPlayer();
|
AiPlayer aiPlayer = new AiPlayer();
|
||||||
if(aiPlayer != null && aiPlayer.emulated != null){
|
if(aiPlayer != null)
|
||||||
|
if(aiPlayer.emulated != null)
|
||||||
AiPlayers.add(aiPlayer);
|
AiPlayers.add(aiPlayer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
public static String generateFirstName(){
|
public static String generateFirstName(){
|
||||||
return GENDER_NEUTRAL_NAMES.get(RANDOM.nextInt(GENDER_NEUTRAL_NAMES.size()));
|
return GENDER_NEUTRAL_NAMES.get(RANDOM.nextInt(GENDER_NEUTRAL_NAMES.size()));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user