Examples of Detective


Examples of de.axxeed.animosy.model.Detective

      for(int i=0;i<opt.getNumberOfDetectives();i++) {
        if(i==activeDet) {
                g2d.setColor(Color.CYAN);
                g2d.fillRect(18, detYOffset-12+pixPerDetective*i, 100, 15);
        }
        Detective d = b.getDetectives()[i];
              g2d.setColor(Color.BLACK);
        if(d.isStranded()) {
                g2d.setColor(Color.RED);
        }
        g2d.drawString("Detective "+(i+1)+": "+d.getPosition().getPosition(), 20, detYOffset+pixPerDetective*i);
              g2d.setColor(Detective.getColor(i));
              g2d.fillOval(5, detYOffset-9+pixPerDetective*i, 10, 10);
              g2d.setColor(Move.getColor(TAXI));
        g2d.drawString(""+d.getTaxiTickets()+"x T", 20, detYOffset+pixPerDetective*i+20);
              g2d.setColor(Move.getColor(BUS));
        g2d.drawString(""+d.getBusTickets()+"x B", 60, detYOffset+pixPerDetective*i+20);
              g2d.setColor(Move.getColor(UG));
        g2d.drawString(""+d.getUndergroundTickets()+"x U", 100, detYOffset+pixPerDetective*i+20);
             
      }
     
      if(Manager.getOptions().isCheat() || game.isCheckPoint()) {
            g2d.setColor(Color.BLACK);
View Full Code Here

Examples of de.axxeed.animosy.model.Detective

        for(int i=0;i<nrOfcheckPoints;i++)
          checkPoints[i]=3+(3+Manager.getOptions().getLevel())*i;
        detectives=new Detective[nrOfDetectives];
      for(int i=0;i<nrOfDetectives;i++)
      {
          detectives[i]=new Detective(board.getDetectives()[i].getPosition());
      }
        MrX=new Fugitive(board.getMrX().getPosition());
        int noOfNodes = BoardModel.nodesCount();
        if(shortestDistance == null) {
            shortestDistance=new int[noOfNodes][noOfNodes];
View Full Code Here

Examples of de.axxeed.animosy.model.Detective

      {
    Node n=board.detectives[i].getPosition();
    if(n==null) {
      log.warn("No position node found for detective "+i);
    }
    detectives[i]=new Detective(n);
      }
        Node n=board.MrX.getPosition();
        MrX=new Fugitive(n);
    }
View Full Code Here

Examples of org.hibernate.search.test.reader.Detective

    super(sf, startSignal);
  }

  @Override
  protected void doAction(FullTextSession s, int jobSeed) {
    Detective detective = new Detective();
    detective.setName("John Doe " + jobSeed);
    detective.setBadge("123455" + jobSeed);
    detective.setPhysicalDescription("Blond green eye etc etc");
    s.persist(detective);
    Suspect suspect = new Suspect();
    suspect.setName("Jane Doe " + jobSeed);
    suspect.setPhysicalDescription("brunette, short, 30-ish");
    if (jobSeed % 20 == 0) {
View Full Code Here

Examples of org.hibernate.search.test.reader.Detective

  @Override
  protected void doAction(FullTextSession s, int jobSeed) {
    FullTextQuery q = getQuery( "John", s, Detective.class );
    List list = q.setMaxResults( 1 ).list();
    for ( Object o : list){
      Detective detective = (Detective) o;
      detective.setPhysicalDescription( "old" );
    }
  }
View Full Code Here

Examples of org.hibernate.search.test.reader.Detective

  }
 
  private void createDoeFamily() {
    Session s = openSession( );
    Transaction tx = s.beginTransaction();
    Detective detective = new Detective();
    detective.setName( "John Doe" );
    s.persist( detective );
    Suspect suspect = new Suspect();
    suspect.setName( "Jane Doe" );
    s.persist( suspect );
    tx.commit();
View Full Code Here

Examples of org.hibernate.search.test.reader.Detective

  }

  private void createDoeFamily() {
    Session s = openSession( );
    Transaction tx = s.beginTransaction();
    Detective detective = new Detective();
    detective.setName( "John Doe" );
    s.persist( detective );
    Suspect suspect = new Suspect();
    suspect.setName( "Jane Doe" );
    s.persist( suspect );
    tx.commit();
View Full Code Here

Examples of org.scotlandyard.impl.engine.Detective

      player = new MrX(user);
      game.setMrX(player);

    }else{ // if(playerRole==PlayerRole.Detective){

      player = new Detective(user);
      game.addDetective((Detective)player);

    }

    game.setPlayerPosition(player.getEmail(),  game.getEmptyPositionLabel());
View Full Code Here

Examples of org.scotlandyard.impl.engine.player.Detective

//    if(!GameEngine.instance().getChatHistory().isEmpty()){
//                    throw new Exception("why would the game engine chat history have anything yet");
//    }
    before = new Date(System.currentTimeMillis());
    Thread.sleep(300);
    detective = new Detective("detective", "detective@scotlandyard.org");
    mrX = new MrX("detective", "detective@scotlandyard.org");
    chat = ChatImpl.getNewInstance(detective, mrX, "Hello");

    Thread.sleep(300);
    after = new Date(System.currentTimeMillis());
View Full Code Here

Examples of org.scotlandyard.impl.engine.player.Detective

    BoardMap boardMap = BoardMapImpl.getNewInstance("pnth");
    boardMap.prepareMap("web/maps/pnth.xml");
    User user = UserImpl.getNewInstance("Hussain", "hussain@game.com");
    Game game = GameImpl.getNewInstance("new game", user,boardMap);
   
    Detective detective = new Detective(user);
    game.addDetective(detective);
   
    game.setPlayerPosition(detective.getEmail(), boardMap.getCoordinates().iterator().next().getLabel());
   
    GamePlayersJsonContainer container = new GamePlayersJsonContainer(game);
   
    assertNull(
        "mr x has not been initialized",
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.