コード例 #1
0
 /** Return the logs from the last turn */
 public synchronized String[] getLastTurnLog() {
   GameTurnLog turnLog = gameTurnLog.get(currentTurn);
   return turnLog.getTurnLogMessages();
 }
コード例 #2
0
 /**
  * Appends a message to the log of the current turn
  *
  * @param message
  */
 public synchronized void appendLog(String message) {
   GameTurnLog currentLog = gameTurnLog.get(currentTurn);
   currentLog.appendMessage(message);
 }