branch | new_graphics |
changeset 419 | 9cd4e54693b6 |
parent 414 | cede5463b845 |
child 423 | 947ab54de4b7 |
--- a/src/Graphics/Graphics.hh Thu Jan 22 02:38:33 2009 +0200 +++ b/src/Graphics/Graphics.hh Thu Jan 22 02:47:53 2009 +0200 @@ -52,12 +52,15 @@ /** * Display a new GameView */ - void displayGameView (GameState &state, LocalPlayer *player) { + GameView* displayGameView (GameState &state, LocalPlayer *player) { // allocate a new GameView GameView *view = new GameView(state, player); // assign it to the display display.setView(view); + + // return it + return view; } };