Skip to content
Permalink
master
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
package model;
import view.CharityWindow;
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
CharityWindow charityWindow = new CharityWindow();
charityWindow.showButtonDemo();
while(!charityWindow.hasAnswered)
{
try {
Thread.sleep(200);
} catch(InterruptedException e) {
}
}
System.out.println(charityWindow.doesDonate);
// Pick card from big/small deal stack:
Card c;
if(charityWindow.doesDonate)
if (p.donateCharity())
{
p.setCharityCount(p.getCharityCount() + 3);
p.getFinancialStatement().increaseCashBalance((int) -((f.getTotalIncome()*.1)));
}
else
{
//you're an asshole
}
}
}