Beispiel #1
0
 public void addlocalPl(NPlayer pl) {
   if (player == null) {
     this.player = pl;
     player.setChatterBox(chat, chatinput);
     main.controller.setPlayer(pl);
     tableModel.fireTableDataChanged();
   }
 }
Beispiel #2
0
 public void updateTable() {
   tableModel.playerList = nGame.playerList;
   tableModel.fireTableDataChanged();
   tableModel.fireTableStructureChanged();
   if (player.getGame().serverOwner) {
     boolean allready = true;
     if (nGame.playerList.size() == 0) allready = false;
     for (NPlayer pl : nGame.playerList) if (!pl.isReady()) allready = false;
     start.setEnabled(allready);
   }
 }
Beispiel #3
0
 public void addPl(NPlayer pl) {
   nGame.playerList.add(pl);
   tableModel.fireTableDataChanged();
 }