Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
bowedcontainer2 authored Jun 1, 2018
1 parent 1026dde commit 8086f26
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Transaction.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
public class Transaction {

public int betAmount, payout;
public String betType, name; // bet type(red, black, number, etc) and name of player


public Transaction( String name, int betAmount, int payout) {

this.name = name;
betType = Wheel.BetType();
this.betAmount = betAmount;
this.payout = payout;

}

public String toString() {

String output = "";

output += Wheel.transactionNum + "\t" + name + "\t" + betAmount + "\t" + betType + payout;
return output;

}

}

0 comments on commit 8086f26

Please sign in to comment.