I am currently making a game. In this game, there is a class called "Tile" that has a list of all tiles in this format:
public static final Tile <TILE_NAME> = new BasicTile<BasicSolidTile>(id, SpriteSheetX, SpriteSheetY, 0xFFColorInMap, isBackground, isLiquid);
One of the main aspects of this game is the ability to "mod" it at will (There will be a mod.smf file that has declarations of modding). In this file, you will create a new Tile like this:
--Tile--
BasicTile/BasicSolidTile <Name>: X,Y,HexColor,<Background/Foreground>,<NotLiquid/Liquid>
The ID will be calculated in the code.
I was wondering how I would create more "public static final Tile's" in my Tile class using a for loop running through all the new Tiles in the mod file. Is it possible, or will I have to change how the Tile's are stored (An ArrayList for instance?)?