Package jpotter.spells

Examples of jpotter.spells.Spell


    return false;
  }

  public boolean enemyCast(int from) {
    Random rand = new Random();
    Spell s = Enemy.knownSpells.get(rand.nextInt(Enemy.knownSpells.size()));
    Point target = getTargetPos(from, s);
    jPanel.add(s.getComponent());
    jPanel.setComponentZOrder(s.getComponent(), 0);
    jPanel.validate();
    if (target != null) {
      s.cast(target, getDefaultStartPos(s), jPanel, false);
      return true;
    }
    return false;
  }
View Full Code Here


        IncantationManager.getInstance().finish();
//        GestureManager.getInstance().finish();
        tries++;
        System.err
            .println("received incantation:" + lastReceivedIncantation + ";received gesture:" + lastReceivedGesture);
        Spell s = getSpell(lastReceivedIncantation, lastReceivedGesture);
        if (s != null) {
          System.out.println("casting " + s);
          IHM.getInstance().cast(s);
          tries = 0;
          try {
View Full Code Here

TOP

Related Classes of jpotter.spells.Spell

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.