Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package roulette;
- /**
- *
- * @author Southern Trendkiller
- */
- public class RouletteGameRecord {
- private String date;
- private boolean outcome;
- private int bet;
- private int gain;
- private int hit;
- public RouletteGameRecord(String date, boolean outcome, int bet, int gain)
- {
- this.date = date;
- this.outcome = outcome;
- this.bet = bet;
- this.gain = gain;
- }
- public RouletteGameRecord()
- {
- }
- @Override
- public String toString()
- {
- String ret = getDate() + " money bet: " + getBet() ;
- if(isOutcome())
- {
- ret += " outcome: game won ";
- ret += "money won: " + getGain();
- }
- else
- {
- ret += " outcome: game lost";
- }
- return ret;
- }
- /**
- * @return the date
- */
- public String getDate() {
- return date;
- }
- /**
- * @param date the date to set
- */
- public void setDate(String date) {
- this.date = date;
- }
- /**
- * @return the outcome
- */
- public boolean isOutcome() {
- return outcome;
- }
- /**
- * @param outcome the outcome to set
- */
- public void setOutcome(boolean outcome) {
- this.outcome = outcome;
- }
- /**
- * @return the bet
- */
- public int getBet() {
- return bet;
- }
- /**
- * @param bet the bet to set
- */
- public void setBet(int bet) {
- this.bet = bet;
- }
- /**
- * @return the gain
- */
- public int getGain() {
- return gain;
- }
- /**
- * @param gain the gain to set
- */
- public void setGain(int gain) {
- this.gain = gain;
- }
- public int getHit() {
- return hit;
- }
- public void setHit(int hit) {
- this.hit = hit;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement