891Chapter 46A Trivia Gamepublic $_gameLost = FALSE; public (Best web design)

891Chapter 46A Trivia Gamepublic $_gameLost = FALSE; public $_gameWon = FALSE; // CONSTRUCTORfunction __construct () { $this->gameParameters = new GameParameters(); $this->_dbConnection = $this->gameParameters->getDbConnection(); if (!$this->_dbConnection) { throw new Exception( No database connection ); } else { $this->_correctAnswers = 0; $this->_level = $this->gameParameters->getStartingLevel(); $this->_credit = $this->gameParameters->getStartingCredit(); // make a list of questions to be asked at the// starting level$this->_setupQuestionIds(); // actually retrieve the first question$this->_installQuestion(); } } // PUBLIC FUNCTIONS// accessorsfunction getGameParameters() {return($this->gameParameters);} function getCurrentQuestion() {return($this->currentQuestion);} function getPreviousQuestion() {return($this->previousQuestion);} function getCredit() {return($this->_credit);} function getLevel() {return($this->_level);} function getQuestionsAskedAtLevel() {return($this->_questionsAskedAtLevel);} function getTotalQuestions() {return($this->_totalQuestions);} function getCorrectAnswers() {return($this->_correctAnswers);} function getGameLost() {return($this->_gameLost);} Continued52
Searching for affordable and proven webhost to host and run your servlet applications? Go to Linux Web Hosting services and you will find it.

Leave a Reply