mrqs
Android Expert
i'm coming from a mainly c++/c# background and haven't done much with java, so this is something that caught my eye when looking at some simple examples of android code
this to my eyes is absolutely hideous and i'm wondering if you actually have to do it like this or if you can just make GameThread its own .java file and import that (moving the red part to a different file) ?
if it has to be done like this, why?
and if not, why would you?
Code:
class GameView extends SurfaceView implements SurfaceHolder.Callback {
[COLOR="Red"]class GameThread extends Thread {
[...]
}[/COLOR]
private GameThread thread;
[...]
}
this to my eyes is absolutely hideous and i'm wondering if you actually have to do it like this or if you can just make GameThread its own .java file and import that (moving the red part to a different file) ?
if it has to be done like this, why?
and if not, why would you?