Beispiel #1
0
 public void setPlayers(Player p1, Player p2)
 {
     logger.Info("setting players");
     setPlayer(-1, p1);
     setPlayer(1, p2);
 }
Beispiel #2
0
 public void setPlayer(int i, Player player)
 {
     if(player==null)
     {
         logger.Error("Null player add request");
     }
     logger.Info("Player " + i + " added name:" + player.name + " points:" + player.points);
     if (i == 1) players[i] = player;
     else if (i == -1) players[0] = player;
 }