Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
sup
  • Loading branch information
Joe Hill committed Apr 11, 2017
1 parent 97af0d4 commit f277afe
Show file tree
Hide file tree
Showing 49 changed files with 79 additions and 4 deletions.
3 changes: 0 additions & 3 deletions bin/.gitignore
@@ -1,4 +1 @@
/.DS_Store
/controller/
/model/
/view/
Binary file modified bin/model/Card.class
Binary file not shown.
Binary file modified bin/model/DealTile.class
Binary file not shown.
Binary file modified bin/model/Die.class
Binary file not shown.
Binary file modified bin/model/GameBoard.class
Binary file not shown.
Binary file modified bin/model/MarketCard.class
Binary file not shown.
Binary file modified bin/model/MarketStack.class
Binary file not shown.
Binary file modified bin/model/MarketTile.class
Binary file not shown.
Binary file modified bin/model/OwnedRealEstate.class
Binary file not shown.
Binary file modified bin/model/PaydayTile.class
Binary file not shown.
Binary file modified bin/model/Profession.class
Binary file not shown.
Binary file modified bin/model/Professions.class
Binary file not shown.
Binary file modified bin/model/Stock.class
Binary file not shown.
Binary file modified bin/model/TileCircularLinkedList$Node.class
Binary file not shown.
Binary file modified bin/model/TileCircularLinkedList.class
Binary file not shown.
Binary file added bin/view/CharityWindow$1.class
Binary file not shown.
Binary file added bin/view/CharityWindow$2.class
Binary file not shown.
Binary file added bin/view/CharityWindow$3.class
Binary file not shown.
Binary file added bin/view/CharityWindow.class
Binary file not shown.
Binary file added bin/view/ChildWindow$1.class
Binary file not shown.
Binary file added bin/view/ChildWindow$2.class
Binary file not shown.
Binary file added bin/view/ChildWindow.class
Binary file not shown.
Binary file added bin/view/DealCardWindow$1.class
Binary file not shown.
Binary file added bin/view/DealCardWindow$2.class
Binary file not shown.
Binary file added bin/view/DealCardWindow$3$1.class
Binary file not shown.
Binary file added bin/view/DealCardWindow$3$2.class
Binary file not shown.
Binary file added bin/view/DealCardWindow$3.class
Binary file not shown.
Binary file added bin/view/DealCardWindow$4$1.class
Binary file not shown.
Binary file added bin/view/DealCardWindow$4$2.class
Binary file not shown.
Binary file added bin/view/DealCardWindow$4.class
Binary file not shown.
Binary file added bin/view/DealCardWindow.class
Binary file not shown.
Binary file added bin/view/DoodadCardWindow$1.class
Binary file not shown.
Binary file added bin/view/DoodadCardWindow$2.class
Binary file not shown.
Binary file added bin/view/DoodadCardWindow.class
Binary file not shown.
75 changes: 75 additions & 0 deletions bin/view/DownSizeWindow
@@ -0,0 +1,75 @@
package view;

import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class DownSizeWindow {
private JFrame mainFrame;
private JLabel headerLabel;
private JLabel statusLabel;
private JPanel controlPanel;

public DownSizeWindow(){
prepareGUI();
}
public static void main(String[] args){
DownSizeWindow DownSizeWindow = new DownSizeWindow();
DownSizeWindow.showButtonDemo();
}
private void prepareGUI(){
mainFrame = new JFrame("Doodad");
mainFrame.getContentPane().setBackground(new Color(149, 32, 216));
mainFrame.setSize(400,250);
//need to set this to null and position everything manually
mainFrame.setLayout(new GridLayout(3, 1));

// mainFrame.addWindowListener(new WindowAdapter() {
// public void windowClosing(WindowEvent windowEvent){
// System.exit(0);
// }
// });
headerLabel = new JLabel("", JLabel.CENTER);
headerLabel.setFont(headerLabel.getFont().deriveFont(Font.BOLD, 16f));
statusLabel = new JLabel("",JLabel.CENTER);
statusLabel.setSize(350,100);

controlPanel = new JPanel();
controlPanel.setLayout(new FlowLayout());
controlPanel.setBackground(new Color(149, 32, 216));

mainFrame.add(headerLabel);
mainFrame.add(controlPanel);
mainFrame.add(statusLabel);
mainFrame.setVisible(true);
}

private void showButtonDemo(){
headerLabel.setText("Downsize");
statusLabel.setText("You lose 3 turns.");
//resources folder should be inside SWING folder.

JButton Downsize = new JButton("Downsize");
// Downsize.setLayout(null);
// Downsize.setLocation(10,220);
Downsize.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
//run downsize update method
System.exit(0);
}
});

controlPanel.add(Downsize);
mainFrame.setVisible(true);
}
}
Binary file added bin/view/FSWindow$1.class
Binary file not shown.
Binary file added bin/view/FSWindow$2.class
Binary file not shown.
Binary file added bin/view/FSWindow.class
Binary file not shown.
Binary file modified bin/view/MainWindow$1.class
Binary file not shown.
Binary file modified bin/view/MainWindow.class
Binary file not shown.
Binary file modified bin/view/MainWindow1$1.class
Binary file not shown.
Binary file modified bin/view/MainWindow1.class
Binary file not shown.
Binary file added bin/view/SDStockCardWindow$1.class
Binary file not shown.
Binary file added bin/view/SDStockCardWindow$2.class
Binary file not shown.
Binary file added bin/view/SDStockCardWindow$3.class
Binary file not shown.
Binary file added bin/view/SDStockCardWindow.class
Binary file not shown.
Binary file modified bin/view/Window.class
Binary file not shown.
2 changes: 1 addition & 1 deletion src/controller/Cashflow.java
Expand Up @@ -77,7 +77,7 @@ public class Cashflow


public static void testCards()
{
{
BigDealStack ms = new BigDealStack();
int initialSize = ms.getSize();
for(int i=0; i<initialSize; i++)
Expand Down
3 changes: 3 additions & 0 deletions src/model/DealTile.java
@@ -1,7 +1,10 @@
package model;

import view.*;
import controller.*;
import java.util.Scanner;


public class DealTile extends Tile
{
private static SmallDealStack _smallDealStack;
Expand Down

0 comments on commit f277afe

Please sign in to comment.