Created
November 29, 2011 14:30
-
-
Save edhedges/1404987 to your computer and use it in GitHub Desktop.
User class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace HedgesBlackjack | |
{ | |
class User : Player | |
{ | |
private int _numWins = 0; | |
private int _numLosses = 0; | |
private int _numTies = 0; | |
private decimal _betAmount = 0; | |
public User(decimal m): base(m) | |
{ | |
} | |
public int Wins | |
{ | |
set | |
{ | |
_numWins = value; | |
} | |
get | |
{ | |
return _numWins; | |
} | |
} | |
public int Losses | |
{ | |
set | |
{ | |
_numLosses = value; | |
} | |
get | |
{ | |
return _numLosses; | |
} | |
} | |
public int Ties | |
{ | |
set | |
{ | |
_numTies = value; | |
} | |
get | |
{ | |
return _numTies; | |
} | |
} | |
public decimal Bet | |
{ | |
set | |
{ | |
_betAmount = value; | |
} | |
get | |
{ | |
return _betAmount; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment