This commit is contained in:
BetaSteward 2010-04-11 22:28:51 +00:00
parent efdceacaf6
commit a9a0075768
15 changed files with 257 additions and 259 deletions

View file

@ -72,8 +72,9 @@ public class PlayerFactory {
return playerTypes.keySet();
}
public void addPlayerType(String name, Class gameType) {
this.playerTypes.put(name, gameType);
public void addPlayerType(String name, Class playerType) {
if (playerType != null)
this.playerTypes.put(name, playerType);
}
}