Examples of Player


Examples of net.traviangui.model.Player

        for( int i=0 ; i<domNames.length ; i++)
        {
            int id = Integer.parseInt( Util.patternExtract( "\\?uid=(\\d+)", domUrlProfiles[i].toString(), 1)[0]);
   
            if( !ally.exists( id)) {
                Player p = new Player( id);
                p.setName( domNames[i].toString());
                p.setUrl( new URL( "http://s3.travian.net/" + domUrlProfiles[i].toString()));

                ally.add( p);
            }
        }
View Full Code Here

Examples of net.yura.lobby.model.Player

                    myclient.incomingChat(sender,message);
                }
            }
            else if (ProtoLobby.COMMAND_PLAYER_ADDED.equals(command)) {
                Map map = (Map)param;
                Player player = (Player)map.get("player");
                Integer room_id = (Integer)map.get("room_id");
                if (room_id==null) {
                    myclient.addPlayer(player);
                }
                else {
View Full Code Here

Examples of nl.nuggit.moltest.model.Player

    int active = 0;
    try (Scanner scanner = new Scanner(playersFile)) {
      while (scanner.hasNextLine()) {
        String line = scanner.nextLine().trim();
        if (line.startsWith(PLAYER)) {
          Player player = new Player(line.trim());
          players.add(player);
          if (player.isActive()) {
            active++;
          }
        }
      }
    } catch (FileNotFoundException e) {
View Full Code Here

Examples of nl.nuggit.words.play.Player

    bag.remove(board.getTiles());
    bag.remove(tray.getTiles());
    System.out.println(bag);

    Player player = new Player("adriaan", board, tray, language);
    player.suggestWords();
  }
View Full Code Here

Examples of nz.ac.massey.softwarec.group3.game.Player

     * Test of getPlayer method, of class Action.
     */
    @Test
    public void testGetPlayer() {
        System.out.println("getPlayer");
        Player result = actionTest.getPlayer();
        Player expResult = player;
        assertEquals(result, expResult);
    }
View Full Code Here

Examples of org.assertj.core.test.Player

  objects.assertIsEqualToComparingOnlyGivenFields(someInfo(), actual, other, "name", "lightSaberColor");
  }

  @Test
  public void should_pass_when_selected_fields_and_nested_fields_accessed_with_getters_are_equal() {
  Player rose = new Player(new Name("Derrick", "Rose"), "Chicago Bulls");
  Player jalen = new Player(new Name("Derrick", "Coleman"), "Chicago Bulls");
  objects.assertIsEqualToComparingOnlyGivenFields(someInfo(), rose, jalen, "team", "name.first");
  }
View Full Code Here

Examples of org.bat.client.model.Player

        Session session = HibernateUtil.getSessionFactory().openSession();
       
        PlayerHibernateDAO myDAO = new PlayerHibernateDAO();
        myDAO.setSession(session);
        Transaction tx = session.beginTransaction();
        Player myCustomer = myDAO.getPlayerByName(newCustomer);
        tx.commit();
        if (myCustomer == null) {
          myHandler.debugInfo("New player: "+newCustomer);
          tx = session.beginTransaction();
          myCustomer = new Player();
          myCustomer.setName(newCustomer);
         
          session.save(myCustomer);
          tx.commit();
          myHandler.debugInfo(".. added to the database with id: "+myCustomer.getId());
        }
        tx = session.beginTransaction();
        activeSession = new MerchantSession();
        activeSession.setCustomer(myCustomer);
        session.save(activeSession);
View Full Code Here

Examples of org.bukkit.entity.Player

   * @return
   */
  public static Boolean claim(CommandSender sender, String[] args, String command, String alias, Boolean... omitMessage) {
    if (!Utils.checkCommandSpam((Player) sender, "quiz-claim")) {
      // check if the player won anything
      Player p = (Player) sender;
      String pName = p.getName();
      if (quizWinners.containsKey(pName)) {
        // load all items for this player's reward
        FileConfiguration f = CommandsEX.getConf();
        ConfigurationSection configGroups = f.getConfigurationSection("quizDiff." + quizWinners.get(pName));
        Set<String> s = configGroups.getKeys(false);
       
        // first of all, count all rewards and see if they'd fit into player's inventory
        Integer allBlocks = 0;
        Inventory pi = p.getInventory();
        Integer maxStackSize = pi.getMaxStackSize();
        for (String reward : s) {
          Integer blockCount = f.getInt("quizDiff." + quizWinners.get(pName) + "." + reward);
          if (blockCount > maxStackSize) {
            allBlocks = (int) (allBlocks + Math.ceil(blockCount / maxStackSize));
          } else {
            allBlocks++;
          }
        }
       
        // calculate available slots
        Integer fullSlots = 0;
        for (ItemStack istack : p.getInventory().getContents()) {
          if ((istack != null) && istack.getAmount() > 0) {
            fullSlots++;
          }
        }
 
View Full Code Here

Examples of org.cipango.media.Player

    public void init() throws Exception
    {
        String fileName = getFileName("hello", _audioPayloadType);
        DatagramSocket datagramSocket = new DatagramSocket();
        UdpEndPoint udpEndPoint = new UdpEndPoint(datagramSocket);
        _player = new Player(fileName, _host, _destPort, _audioPayloadType,
                udpEndPoint);
        _dtmfHandler = new DtmfHandler(_dtmfPayloadType, udpEndPoint);
        _player.init();
        _dtmfHandler.init();
        _dtmfHandlerThread = new Thread(_dtmfHandler);
View Full Code Here

Examples of org.elip.stewiemaze.shared.entities.Player

public class PlayerService {
 
 
  public static Player createPlayer(String nickname, String email, String password, Long scoreValue, boolean activated) {
    nickname = removeSpaces(nickname);
    Player player = new Player();
    player.setEmail(email);
    player.setNickname(nickname);
    player.setPassword(password);
    player.setFacebookUser("false");
    player.setAccessToken(null);
    player.setHighscore(scoreValue);
    player.setUserId(null);
    if (activated) {
      player.setActivated("true");
    }
    else {
      player.setActivated("false");
    }
    return player;
  }
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.