Package commands.market

Examples of commands.market.SellTower


          JMenuItem item2 = new JMenuItem("Sell tower (+$"+tower.getSellPrice()+")");
          item2.addActionListener(new ActionListener() {
         
          @Override
          public void actionPerformed(ActionEvent arg0) {
            SellTower command = new SellTower(tower);
            Engine.getInstance().getCommands().add(command);
          }
        });
          menu.add(item2);
         
View Full Code Here


 
  /**
   *  Sell the given tower (by adding the command in the Engine)
   */
  public void sellTower(Tower tower) {
    SellTower command = new SellTower(tower);
    Engine.getInstance().getCommands().add(command);
  }
View Full Code Here

TOP

Related Classes of commands.market.SellTower

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.