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