Package megamek.client.bot
Class BotLogger
java.lang.Object
megamek.client.bot.BotLogger
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordHow a unit is fighting, as its own bot already decided it - not recomputed here. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(RankedPath rankedPath, int index) Appends a move path to the log filevoidvoidappend(Game game, boolean withHeader, Map<Integer, BotLogger.UnitContext> unitContexts) Appends a game state, tagging this bot's own units with how they are fighting.
-
Field Details
-
LOG_DECIMAL
-
-
Constructor Details
-
BotLogger
public BotLogger()
-
-
Method Details
-
append
-
append
Appends a game state, tagging this bot's own units with how they are fighting.- Parameters:
game- the game state to appendwithHeader- if true, includes a header line with column namesunitContexts- 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
Appends a move path to the log file- Parameters:
rankedPath- the RankedPath to append, which contains the path, rank, scores, and entity informationindex- if 0 it will print header, otherwise it wil just add the index here.
-