Class BotLogger

java.lang.Object
megamek.client.bot.BotLogger

public class BotLogger extends Object
The GameDatasetLogger class is used to log game data to a file in the log directory with TSV format. It contains every action taken by every unit in the game and the result of the game state after those actions.
  • Field Details

  • Constructor Details

    • BotLogger

      public BotLogger()
  • Method Details

    • append

      public void append(Game game, boolean withHeader)
    • append

      public void append(Game game, boolean withHeader, Map<Integer,BotLogger.UnitContext> unitContexts)
      Appends a game state, tagging this bot's own units with how they are fighting.
      Parameters:
      game - the game state to append
      withHeader - if true, includes a header line with column names
      unitContexts - entity id to behavior and posture, for the logging bot's units only; other players' units are left blank because this bot does not know their intent
    • append

      public void append(RankedPath rankedPath, int index)
      Appends a move path to the log file
      Parameters:
      rankedPath - the RankedPath to append, which contains the path, rank, scores, and entity information
      index - if 0 it will print header, otherwise it wil just add the index here.