Ok I think Im going to use that cuz I c how it works. Does the “interface GameElement void show” have to be in it’s own place (its own tab, like a class would) or does it not matter. It prob doesn’t matter.
So any class which implements GameElement must include the thing inside game element. can I add variables? like how you have “void show”, so every class implementing game element must contain a show method, therefore if i place “int x” in game element, every class implementing game element must have a variable “x”.
So now I can have multiple level objects, each with it’s own ‘elements’ list containing all the items that level should have, then in my main class (where everything is actually drawn and done) just loop through the level1elementList, level 2elementList and so on.
In class level, where I add any GameElement object, where it says "ArrayList elements = new ArrayList(); , can I do the same with a normal array? I assume not cuz it might defeat the purpose of doing GameElement… idk I’ll experiment and c what happens.