src/Graphics/Graphics.hh
branchnew_graphics
changeset 419 9cd4e54693b6
parent 414 cede5463b845
child 423 947ab54de4b7
equal deleted inserted replaced
418:194bc810a570 419:9cd4e54693b6
    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 /**