SHARE
TWEET

Untitled

a guest May 24th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package nl.avans.model;
  2.  
  3. import nl.avans.controller.dashboard.StatisticsController;
  4.  
  5. import java.util.HashMap;
  6.  
  7. public class Statistics {
  8.  
  9.     String name, dicecolor;
  10.     HashMap<String, Integer> results;
  11.  
  12.     int diceworth;
  13.     int opponents;
  14.  
  15.     public String getName() {
  16.         return name;
  17.     }
  18.  
  19.     public void setName(String name) {
  20.         this.name = name;
  21.     }
  22.  
  23.     public String getDicecolor() {
  24.         return dicecolor;
  25.     }
  26.  
  27.     public void setDicecolor(String dicecolor) {
  28.         this.dicecolor = dicecolor;
  29.     }
  30.  
  31.  
  32.  
  33.  
  34.     public int getDiceworth() {
  35.         return diceworth;
  36.     }
  37.  
  38.     public void setDiceworth(int diceworth) {
  39.         this.diceworth = diceworth;
  40.     }
  41.  
  42.     public int getOpponents() {
  43.         return opponents;
  44.     }
  45.  
  46.     public void setOpponents(int opponents) {
  47.         this.opponents = opponents;
  48.     }
  49.  
  50.     public Statistics( String dicecolor, int diceworth, int opponents, HashMap<String, Integer> results) {
  51.         StatisticsController st = new StatisticsController();
  52.         this.dicecolor = st.getMostPlacedColor();
  53.         this.results = st.getGameResults();
  54.  
  55.         this.diceworth = st.getMostPlacedEye();
  56.         this.opponents = st.getAmountOfOpponentsPlayed();
  57.     }
  58. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top