Skip to content
Permalink
52665039a4
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
31 lines (24 sloc) 492 Bytes
package model;
public class CharityTile extends Tile
{
public CharityTile(String type, int boardIndex)
{
super(type, boardIndex);
}
@Override
public void getLandedOn(Player p)
{
FinancialStatement f = p.getFinancialStatement();
// call view method
// TODO
if (p.donateCharity())
{
p.setCharityCount(p.getCharityCount() + 3);
p.getFinancialStatement().increaseCashBalance((int) -((f.getTotalIncome()*.1)));
}
else
{
//you're an asshole
}
}
}