Exemple #1
0
 public function top_scores()
 {
     $this->View->render('info/top_scores', array('ranking' => GameModel::get_ranking()));
 }
Exemple #2
0
 public function end_screen()
 {
     // if the game's not finished, don't allow this method
     if (Session::get('game') != 'end_screen') {
         Redirect::to('game/');
         return false;
     }
     // change the game mode to null - the game is finished
     Session::set('game', null);
     $this->View->render('game/end_screen', array('ranking' => GameModel::get_ranking()));
 }