/**
  * @return Game
  */
 public static function getInstance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Exemple #2
0
 public static function init()
 {
     if (is_null(self::$game)) {
         self::$game = new self();
     }
     return self::$game;
 }