user; } /** * Retrieves the logged in player. * * @return Player The current player, null if not logged in. */ public function get_player(){ return $this->player; } /** * Retrieves the database connection. * * @return SQLITE3 The database connection. */ public function get_db(){ return $this->db; } /** * Retrieves the current game mode. * * @return int Game mode. */ public function get_game_mode(){ return $this->game_mode; } /** * Sets the current user. * * @param The current user.s */ protected function set_user($user){ $this->user = $user; } /** * Sets the currently logged-in player. * * @param Player Logged-in player. */ protected function set_player($player){ $this->player = $player; } /** * Sets the database connection * * @param SQLITE3 Database connection. */ protected function set_db($db){ $this->db = $db; } /** * Sets the game mode. * * @param int Game mode. */ protected function set_game_mode($game_mode){ $this->game_mode = $game_mode; } } ?>