equal
deleted
inserted
replaced
50 Graphics (Engine &engine, CL_ResourceManager &resources, const DisplayConfig &display_config); |
50 Graphics (Engine &engine, CL_ResourceManager &resources, const DisplayConfig &display_config); |
51 |
51 |
52 /** |
52 /** |
53 * Display a new GameView |
53 * Display a new GameView |
54 */ |
54 */ |
55 void displayGameView (GameState &state, LocalPlayer *player) { |
55 GameView* displayGameView (GameState &state, LocalPlayer *player) { |
56 // allocate a new GameView |
56 // allocate a new GameView |
57 GameView *view = new GameView(state, player); |
57 GameView *view = new GameView(state, player); |
58 |
58 |
59 // assign it to the display |
59 // assign it to the display |
60 display.setView(view); |
60 display.setView(view); |
|
61 |
|
62 // return it |
|
63 return view; |
61 } |
64 } |
62 |
65 |
63 }; |
66 }; |
64 |
67 |
65 /** |
68 /** |