Hi, I’ve decided that i want to pauze my game and i’ll use thread.pauze.
I created it because otherwise all the code will go in the Game class, So I would like to have the Manager ‘Manage’ the game.
When I say Manage I think of creating stopping pauzing replaying and controlling keybord activity.
The main game loop itself is in Game.
Is this the right way to split the two classes?
This is a code snippet from my Game_Management class:
private Game game;
private Thread GameThread;
/** Creates and Controls a Game */
Public Game_Management() {
bFact = new BlockFactory();
board = new Board(20,10,Block.TILE_SIZE);
game = new Game(this,board,bFact);
startGame();
}
public void startGame() {
/* Initialize the game thread. */
GameThread = new GameThread();
GameThread.start();
}
private class GameThread extends Thread {
public void run() {
game.run();
}
}
Next I have to use the inner class to use Thread but when I try to start it gives me his error:
Exception in thread "main" java.lang.ClassNotFoundException: Game_Management
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
How do I start a thread and do therun method in another class?
Error sorted, I put package in my classes so it couldn’t find the class anymore.
alsoo is it smart to put those 2 things appart?
For more Info I created a javadoc Documentation and I put the src online
Any comment is welcome 
