http://wiki.l33tlabs.org/bin/view/TWL/I ... eBasedGameI followed this tutorial in implementing TWL with Slick, but I've run into a query to do with overriding.
As far as I know, an override is meant to have the same return type and parameters as the method it is overriding.
But in that tutorial above, you have:
@Override
protected void createRootPane() {
But the extended class BasicTWLGameState has the method:
protected RootPane createRootPane() {
They have different return types, and therefore my NetBeans is complaining at me and saying it isn't a valid override.
In adddition, it says that 'rootPane' has private access in BasicTWLGameState, and therefore I can't access it in the context. I have to do 'getRootPane()' for it to not complain.
I'm kind of new to OOP + java sorry, so I'm probably missing out something simple.
Thank you for any help you can provide,
Thomas.