/** Load Group Score Graphics. */ public void init_GroupScore() { // get all players names to pass into grouptTotalScore type. String playerNames[] = new String[players.length]; for (int i = 0; i < playerNames.length; i++) { playerNames[i] = new String(players[i].getName()); } GroupTotalScoreView totalScore = GroupTotalScoreView.getGroupTotalScoreInstance(players.length, playerNames); p_groupScoreContainer.add(totalScore.getView()); }
/** * Reset all game attributes, such as score. * * <p>This resets attributes present from game to game, ones that span over the lifetime of * multiple plays such as a player's deposited money. */ private void resetGame() { // reset all current game score, ect. to start a 'new game'. // note: does not reset the money deposit, that is done when // user goes to main menu GroupTotalScoreView groupScoreView = GroupTotalScoreView.getGroupTotalScoreInstance(); for (int i = 0; i < players.length; i++) { this.players[i].reset(); groupScoreView.updateScore(i, 0); } // make sure first player's graphics are all shown this.currentPlayerPlaying = 0; this.show_UpperGraphicPage("Standard Play Graphic"); this.show_GlobalControllerGraphics(currentPlayerPlaying); this.show_PlayerGraphics(currentPlayerPlaying); this.show_currentScoreCard(currenPage_currentScoreCard); }