Package jpotter.spells

Examples of jpotter.spells.Aguamenti


    for (int i = 0; i < enemies.length; i++) {
      ihm.createEnemy(enemies[i]);
    }

    // simulation
    Spell[] spells = new Spell[] { new Aguamenti(), new Avis(),
        new Deprimo(), new Incendio(), new Expelliarmus(), new Accio() };

    // for (int i = 0; i < spells.length; i++) {
    // System.out.println(spells[i].toString());
    // ihm.setEnemyTarget(i%4);
View Full Code Here


  }

  private void initSpells() {
    // add some random spells for now
    knownSpells.add(new Accio());
    knownSpells.add(new Aguamenti());
    knownSpells.add(new Avis());
    knownSpells.add(new Deprimo());
    knownSpells.add(new Expelliarmus());
    knownSpells.add(new Incendio());
  }
View Full Code Here

      @Override
      public void actionPerformed(ActionEvent e) {
        container.removeAll();
        container.setLayout(null);
        Aguamenti agua = new Aguamenti();
        Component comp = agua.getComponent();
//        comp.setSize(agua.getDimension());
        container.add(comp);
        container.validate();
        System.out.println("displayable?"+(comp.getGraphics()!=null)+";"+comp.getWidth()+";"+comp.getHeight());
        agua.cast(new Point(20, 20), new Point(100, 100), container);
      }
    });
    setLayout(new GridBagLayout());
    GridBagConstraints gbc = new GridBagConstraints(0, 0, 1, 1, 0d, 0d,
        GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(2, 2,
View Full Code Here

TOP

Related Classes of jpotter.spells.Aguamenti

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.