Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Did some GUI stuff
  • Loading branch information
Joe Hill committed Apr 25, 2017
1 parent af04e34 commit d34d54a
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 2 deletions.
Binary file modified bin/model/CharityTile.class
Binary file not shown.
Binary file modified bin/model/DealTile.class
Binary file not shown.
Binary file modified bin/view/CharityWindow$2.class
Binary file not shown.
Binary file modified bin/view/CharityWindow$3.class
Binary file not shown.
Binary file modified bin/view/CharityWindow.class
Binary file not shown.
20 changes: 20 additions & 0 deletions src/model/CharityTile.java
@@ -1,5 +1,7 @@
package model; package model;


import view.CharityWindow;

public class CharityTile extends Tile public class CharityTile extends Tile
{ {


Expand All @@ -15,6 +17,24 @@ public class CharityTile extends Tile
FinancialStatement f = p.getFinancialStatement(); FinancialStatement f = p.getFinancialStatement();
// call view method // call view method
// TODO // 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()) if (p.donateCharity())
{ {
Expand Down
2 changes: 1 addition & 1 deletion src/model/DealTile.java
Expand Up @@ -43,7 +43,7 @@ public class DealTile extends Tile
} }
else else
{ {
c = _smallDealStack.pickCard(); c = _bigDealStack.pickCard();
} }


// If stock, update price, then ask user if they want to buy and ask everyone if they want to sell: // If stock, update price, then ask user if they want to buy and ask everyone if they want to sell:
Expand Down
1 change: 0 additions & 1 deletion src/view/CharityWindow.java
Expand Up @@ -60,7 +60,6 @@ public class CharityWindow {
JButton DontDonate = new JButton("Don't Donate"); JButton DontDonate = new JButton("Don't Donate");
DontDonate.setHorizontalTextPosition(SwingConstants.LEFT); DontDonate.setHorizontalTextPosition(SwingConstants.LEFT);


boolean donate = false;


Donate.addMouseListener(new MouseListener() { Donate.addMouseListener(new MouseListener() {
@Override @Override
Expand Down

0 comments on commit d34d54a

Please sign in to comment.