OK, I was working on getting a simple tiled map system up and running to be used as a library, to help make the prototyping process easier. What I do is I have a register that contains integer array that hold the hexadecimal and a Tile array that just holds the class of the tile.
in the world loading method it take from the data from Tile register and looks for a color that matches. and that brings me to my problem how can I make a new instance of the class that is in the Tile class array; I tried calling newInstance() on it but it just threw an exception and crashed the application.
any help would be appreciated.