Skip to content
Permalink
8ce6614dff
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
69 lines (48 sloc) 887 Bytes
package model;
public class Player
{
private FinancialStatement _fs;
private int _charityCount; //charity counter
private int _downsizeCount; //downsize counter
private int _location;
private boolean _hasWon;
public Player() {
_charityCount = 0;
_downsizeCount = 0;
_location = 0;
_hasWon = false;
}
public boolean hasWon() {
return _hasWon;
}
public FinancialStatement getFinancialStatement()
{
return _fs;
}
public boolean donateCharity() {
//
return false;
}
public void setLocation(int i) {
_location = i;
}
public int getLocation() {
return this._location;
}
public int getCharityCount()
{
return _charityCount;
}
public void decrementCharityCount()
{
_charityCount--;
}
public int getDownsizeCount()
{
return _downsizeCount;
}
public void decrememntDownsizeCount()
{
_downsizeCount--;
}
}