Package megamek.utilities
package megamek.utilities
-
ClassDescriptionRuns a scenario headlessly many times and reports the win rate per team (and the
AITypes on each team), so two bot AIs assigned via the scenarioai:key - for example Princess versus CASPAR - can be compared over a batch of games.This utility converts all units that can be converted and for which filter() returns true to AlphaStrike elements and outputs the stats to the clipboard.This class scans the boards directory and allows the selection of a random board based on given size criteria.Scans all boards and applies automated tags to them.This class provides a utility to read in all the boards and check their validity.Program that will scan the data/images directory for images and take all the images in a subdirectory and store them in a single image atlas.This class is for debugging Entity with respect to the internal state of equipment.This util will go through all available units and filter them according to the filter() method and print out any units that match the filter.GifWriter Utility class to create a gif from a series of images of a game summary.Thread that writes frames to a GIF file.This class provides a utility to read in all the /data/mekfiles and print that data out into a CSV format.This class provides a utility to read in all the /data/mekfiles and print that data out into a TSV format, but only with the information that CASPAR training needs to enrich its current training data.This tool goes through the name_changes.txt file and performs various tests: - it finds all lines where the left and right side are equal (i.e.QuickGameRunner This class is used to run a game without minimal preparation all it needs is a game file to load, and it will populate the bots in the game and run the game the predefined number of turns, or until the game ends or until it times out.Runs a Scenario file headless as a fully automated bot-vs-bot game, without any GUI or human interaction.The result of a single scenario game: whether it finished (rather than timing out) and which team won, defined as the sole surviving combatant team.Compares computed static tech level to what is in the unit file and reports all units that have equipment that exceeds the declared tech level, followed by a list of all the equipment that caused failures.This is not a functional tool, just some template code to use when changing unit files programmatically.Author: Drake