2-APL UPC project.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

adjusted table.java

fdesan a80a821a cec421cb

+12 -10
+6 -7
code/2apl_platform/environments/cardtable/Env.java
··· 19 19 20 20 public class Env extends Environment 21 21 { 22 + final protected Table table; 23 + 22 24 private HashMap<String,Agent> agentmap = new HashMap<String,Agent>(); 23 25 24 26 private int numberOfPlayers, numberOfNotaries, numberOfGatekeepers, numberOfDealers; ··· 30 32 // The default constructor 31 33 public Env() 32 34 { 33 - super(); 34 - // Create the window 35 - //m_window = new Window( this ); 36 - 35 + super(); 37 36 numberOfPlayers=0; 38 37 numberOfNotaries=0; 39 38 numberOfGatekeepers=0; 40 39 41 40 deck = new Deck(); 42 41 sb = new Scoreboard(); 42 + 43 + //Create the window 44 + table = new Table(); 43 45 } 44 46 45 47 public Term enterAsNotary(String sAgent) throws ExternalActionFailedException { ··· 271 273 } 272 274 273 275 /* END Standard functions --------------------------------------*/ 274 - 275 - 276 - 277 276 278 277 /* Helper functions --------------------------------------*/ 279 278
+6 -3
code/2apl_platform/environments/cardtable/Table.java
··· 1 + package cardtable; 2 + 1 3 import javax.swing.*; 2 4 import java.awt.*; 3 5 ··· 17 19 ImageIcon CardBack = new ImageIcon("cards/b.gif"); 18 20 19 21 20 - public Table( final Env env ){ 21 - super( "Blockworld" ); 22 + public Table( ){ 23 + super( "Briscola Chiamata" ); 22 24 //----------GUI STUFF---------------------------- 23 25 24 26 ··· 605 607 pane.add(button, c); 606 608 * */ 607 609 608 - } 610 + } 611 + } 609 612 610 613 611 614