Examples of Spell


Examples of pathfinder.bean.spell.Spell

  public int getSourceActions(JComponent c) {
    return TransferHandler.MOVE;
  }

  protected Spell verifyDrop(TransferSupport info) {
    Spell data = null;

    if (info.isDrop()) {
      Transferable t = info.getTransferable();
      try {
        data = (Spell) t
View Full Code Here

Examples of pathfinder.bean.spell.Spell

  /**
   * Perform the actual import.
   */
  @Override
  public boolean importData(TransferSupport info) {
    Spell data = verifyDrop(info);

    if (data != null) {
      JList<Spell> target = (JList<Spell>) info.getComponent();

      SpellListModel listModel = (SpellListModel) target.getModel();
View Full Code Here

Examples of pathfinder.bean.spell.Spell

    JList<Spell> source = (JList<Spell>) c;

    SpellListModel listModel = (SpellListModel) source.getModel();

    if (action == TransferHandler.MOVE) {
      Spell data;
      try {
        data = (Spell) t
            .getTransferData(SpellTransferable.FLAVOR_SPELL);
        listModel.removeSpell(data);
        source.revalidate();
View Full Code Here

Examples of pathfinder.bean.spell.Spell

    JLabel label = null;
    if (value != null) {
      label = buildSpell(value, list, isSelected);
    } else if ((index + 1) < getSize()) {
      Spell spell = getElementAt(index + 1);
      label = buildTitle("Niveau " + spell.getLevel(classe));
    } else {
      label = buildTitle("Aucun sort");
    }

    return label;
View Full Code Here

Examples of spells.Spell

    x=xIn;
    y=yIn;
  }

  public void eventIn(ClientGameState g) {
    Spell s=g.getSpells().get(ID);
    if(s!=null){
      s.setOldLoc(s.getLoc());
      s.setLoc(new Point2D.Double(x,y));
    }else{
      System.out.println("ID move:"+ID);
      System.out.println("ID's spells:");
     
      for(Spell i :g.getSpells().values())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.