Examples of Move


Examples of com.sishuok.es.common.plugin.entity.Move

    private MoveService moveService;

    @Test
    public void testSave() {

        Move m1 = new Move();
        Move m2 = new Move();
        moveService.save(m1);
        moveService.save(m2);

        Assert.assertEquals((Integer) (m1.getWeight() + moveService.getStepLength()), m2.getWeight());
    }
View Full Code Here

Examples of commands.selection.Move

    }
   
    // 3rd case : the realPlayer has an other base selected : agents can go from the selected base to current one ! (and we deselect the base)
    else {
     
      Move moveCommand = new Move(realPlayer, selectedBases, this);
      Engine.getInstance().getCommands().add(moveCommand);
    }
   
    System.out.println("J'ai cliqué sur la base numéro "+this.getId());
   
View Full Code Here

Examples of controller.Move

    alive = true;
   
    /*When player choice a specific command just pass the
     * command name as message then, and when execute this
     * command just like this: command.execute(Character caller, Character target) */
    commands.put("Moving", new Move());    
    commands.put("Attacking", new Attack());//Those two commands can be use for all characters.
   
    //commands.put("Healing", new Healing());     //Those commands only for Player's characters.
    //commands.put("Waiting", new Wait());
    //commands.put("Trading", new Trade());
View Full Code Here

Examples of controller.commands.Move

    this.map = map;
  }
  @Override
  public void actionPerformed(ActionEvent arg0) {
    //Still have some problem that how far need to move? Moving and attacking is in different round or in same round?
    Move moving = new Move();
    moving.moveTo(map.getMoveToX(), map.getMoveToY());
    moving.execute(map.getSelectedAlly(), map.getSelectedEnemy());
    Command attacking = new Attack();
    attacking.execute(map.getSelectedAlly(), map.getSelectedEnemy());
  }
View Full Code Here

Examples of de.axxeed.animosy.model.Move

  public void setMrXMove(Move m) {
    if(m==null) {
      mrXMove = null;
    }
    else {
      mrXMove = new Move(m.getNode(), m.getType());
    }
  }
View Full Code Here

Examples of de.axxeed.animosy.model.Move

  public void setDetectiveMove(int detectiveIndex, Move m) {
    if(detMove==null || detMove.length<detectiveIndex) {
      throw new IllegalStateException("Variable detMove <"+detMove+"> ("+(detMove==null?"":detMove.length)+") does not fit index "+detectiveIndex);
    }
    if(m!=null) {
      detMove[detectiveIndex] = new Move(m.getNode(), m.getType());
    }
    else {
      detMove[detectiveIndex] = null;
    }
  }
View Full Code Here

Examples of de.axxeed.animosy.model.Move

          }
          else {
            log.debug("Possible moves: "+possibleMoves.size()+" - "+possibleMoves);
            Iterator<Move> i = possibleMoves.iterator();
            while(i.hasNext()) {
              Move m = (Move) i.next();
              StringBuilder linkText = new StringBuilder();
              linkText.append(m.getNode()).append(" (");
              switch(m.getType()) {
                case BoardModel.TAXI: linkText.append("TAXI").append(")"); break;
                case BoardModel.BUS: linkText.append("BUS").append(")"); break;
                case BoardModel.UG: linkText.append("UG").append(")"); break;
                case BoardModel.BLACK: linkText.append("XXX").append(")"); break;
                case BoardModel.INF: linkText.append("INF").append(")"); break;
View Full Code Here

Examples of de.axxeed.animosy.model.Move

    {
  Node bestNode=bestMove();
  int type=MrX.changePosition(bestNode);
  int pos=MrX.getPosition().getPosition();
  currentMoves++;
  return (new Move(pos,type));
    }
View Full Code Here

Examples of de.axxeed.animosy.model.Move

            case    UG:if(getDetectives()[detNo].getUndergroundTickets()<=0) if(canGoToThisNode) canGoToThisNode=false;
                  break;
            case BLACK:canGoToThisNode=false;
                  break;
        }
      if(canGoToThisNodepossibleMoves.add(new Move(toNode.getPosition(),t));
  }
  return possibleMoves;
    }
View Full Code Here

Examples of driftingdroids.model.Move

            this.appendSolutionText(MessageFormat.format(L10N.getString("msg.Hint.4.pattern"), numMoves, numRobots) + " ", null);
            for (Integer robot : robotsMoved) {
                this.appendSolutionText(Board.getColorShortL10N(robot.intValue()), COL_ROBOT[robot.intValue()]);
            }
            this.appendSolutionText(L10N.getString("msg.Hint.4.LastMove.text") + " ", null);
            final Move lastMove = this.computedSolutionList.get(this.computedSolutionIndex).getLastMove();
            this.appendSolutionText(Board.getColorShortL10N(lastMove.robotNumber), COL_ROBOT[lastMove.robotNumber]);
            this.appendSolutionText(lastMove.strDirectionL10N() + ".\n", null);
        }
        ++this.hintCounter;
    }
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.