Examples of Player


Examples of hexenschach.player.Player

  /**
   * Erzeugt ein Neues Gameplay,
   */
  private void startNewGame() {
    // 3 menschliche Spieler erstellen
    Player player1 = new Human(true, "white");
    Player player2 = new Human(true, "brown");
    Player player3 = new Human(true, "black");
    // Gameplay erzeugen
    Gameplay gameplay = new Gameplay(player1, player2, player3, gui);
    gui.setGameplay(gameplay);
  }
View Full Code Here

Examples of indexing.Player

        ol.dateCreate = new Date();
        ol.index();
    }

    private void loadPlayersMadrid(Team madrid) {
        Player casillas = new Player();
        casillas.name = "casillas";
        casillas.weight = 79;
        casillas.position.add(Player.Position.GOALKEEPER.toString());

        Player marcelo = new Player();
        marcelo.name = "marcelo";
        marcelo.weight = 73;
        marcelo.position.add(Player.Position.DEFENDER.toString());

        Player benzema = new Player();
        benzema.name = "benzema";
        benzema.weight = 73;
        benzema.position.add(Player.Position.FORWARD.toString());

        Player ronaldo = new Player();
        ronaldo.name = "ronaldo";
        ronaldo.weight = 73;
        ronaldo.position.add(Player.Position.FORWARD.toString());

        madrid.players.add(casillas);
View Full Code Here

Examples of javax.media.Player

                        rtpDataStream = (net.sf.fmj.media.rtp.RTPDataStream)pbs;
                        System.out.println("### rtpDataStream=" + rtpDataStream.getClass());
                    }
                }
               
                Player player = javax.media.Manager.createRealizedPlayer(ds);
                System.out.println("### player=" + player.getClass().getName());
               
                if ( !isVideo )
                {
                    Object[] pcontrols = player.getControls();
                    for (int i=0; i<pcontrols.length; i++)
                    {
                        if ( pcontrols[i] instanceof BufferControl )
                        {
                            BufferControl bc = (BufferControl)pcontrols[i];
                            System.out.println("### found BufferControl=" + bc.getClass());
   
                            System.out.println("### buffer length is " + bc.getBufferLength());
                            bc.setBufferLength(1000);
                            System.out.println("### buffer length is " + bc.getBufferLength());
                        }
                        else if ( pcontrols[i] instanceof FrameProcessingControl )
                        {
                            fpc = (FrameProcessingControl)pcontrols[i];
                            System.out.println("### found FrameProcessingControl=" + fpc.getClass());
                        }
                    }
                }
                else
                {
                    Object[] pcontrols = player.getControls();
                    for (int i=0; i<pcontrols.length; i++)
                    {
                        if ( pcontrols[i] instanceof FrameRateControl )
                        {
                            frc = (FrameRateControl)pcontrols[i];
                            System.out.println("### found FrameRateControl=" + frc.getClass());
                        }
                    }
                }
               
                player.start();
               
                Component vc = player.getVisualComponent();
                if ( null != vc )
                {
                    System.out.println("### visual component is " + vc);

                    JFrame aFrame = new JFrame();
View Full Code Here

Examples of javax.microedition.media.Player

        {
          if(this.getBarcodeScanner() != null) {
                BarcodeScanner bcScanner = this.getBarcodeScanner();
                bcScanner.stopScan();          
          }
          Player cPlayer = this.getCameraPlayer();
          if(cPlayer != null && (cPlayer.getState() != Player.CLOSED)) {
            cPlayer.close();
          }
            UiApplication.getUiApplication().popScreen(ScannerScreen.this);
        }
        catch (MediaException me)
        {
View Full Code Here

Examples of javazoom.jl.player.Player

  public RecordedFFT recordFFT(String pFilename) throws Exception {
    FileInputStream fin = new FileInputStream(pFilename);
    BufferedInputStream bin = new BufferedInputStream(fin);
    FFTRecordingAudioProcessor processor = new FFTRecordingAudioProcessor();
    JWFAudioDevice audioDevice = new JWFAudioDevice(processor);
    Player player = new Player(bin, audioDevice);
    try {
      player.play();
    }
    finally {
      processor.finish();
    }
    return processor.getFFT();
View Full Code Here

Examples of jbrickbreaker.model.Player

                brickBreaker.getString("NewGameAction.0"), brickBreaker.getString("NewGameAction.1"), //$NON-NLS-1$ //$NON-NLS-2$
                JOptionPane.QUESTION_MESSAGE);
        //limit to 33 characters otherwise it's ugly
        if(s == null)
            s = ""; //$NON-NLS-1$
        Player p = new Player(s.substring(0, s.length() < 33 ? s.length() : 33));
        Game g = new Game(p, brickBreaker);
        brickBreaker.newGame(g);
    }
View Full Code Here

Examples of jimmm.data.Player

import jimmm.gui.TooSimpleHandRenderer;

public class VerySimpleDuel {

  public static void main(String[] args) {
    Player p1 = new Player("Bob");
    Player p2 = new Player("Alice");
   
    JFrame mainFrame = new JFrame("Testduell");
    JFrame.setDefaultLookAndFeelDecorated(true);
    mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//    mainFrame.setLayout(new BoxLayout(mainFrame, BoxLayout.Y_AXIS));
View Full Code Here

Examples of jnibwapi.model.Player

      players.clear();

      int[] playerData = getPlayersData();
      for (int index = 0; index < playerData.length; index += Player.numAttributes) {
        String name = new String(getPlayerName(playerData[index]));
        Player player = new Player(playerData, index, name);

        players.put(player.getID(), player);

        if (player.isSelf()) {
          self = player;
        }
        else if (player.isAlly()) {
          allies.add(player);
          allyIDs.add(player.getID());
        }
        else if (player.isEnemy()) {
          enemies.add(player);
          enemyIDs.add(player.getID());
        }
        else if (player.isNeutral()) {
          neutralPlayer = player;
        }
      }

      // get unit data
View Full Code Here

Examples of limelight.model.api.Player

  @Test
  public void playerCanAddEvents() throws Exception
  {
    final Document doc = Xml.stringToDoc("<player class='SamplePlayer'><onMouseClicked>sampleAction</onMouseClicked></player>");
    final Player player = new JavaPlayer("foo", "/testProduction/aScene/players/foo.xml", samplePlayerClass, doc.getDocumentElement(), "limelight.ui.events.panel.");

    Object playerObj = player.cast(prop);

    assertEquals("SamplePlayer", playerObj.getClass().getName());
    assertEquals(1, prop.getEventHandler().getActions(MouseClickedEvent.class).size());
    new MouseClickedEvent(0, null, 1).dispatch(prop);
    assertEquals(1, samplePlayerClass.getField("invocations").get(lastSamplePlayer()));
View Full Code Here

Examples of lineage2.gameserver.model.Player

  {
    if (param.length < 4)
    {
      throw new IllegalArgumentException();
    }
    final Player player = getSelf();
    if (player == null)
    {
      return;
    }
    final long price = Long.parseLong(param[param.length - 1]);
    if (!NpcInstance.canBypassCheck(player, player.getLastNpc()))
    {
      return;
    }
    if ((price > 0) && (player.getAdena() < price))
    {
      player.sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
      return;
    }
    if (player.getMountType() == 2)
    {
      player.sendMessage("Телепортаци�? верхом на виверне невозможна.");
      return;
    }
    if (player.getLastNpc() != null)
    {
      final int npcId = player.getLastNpc().getNpcId();
      switch (npcId)
      {
        case 30483:
          if (player.getLevel() >= Config.CRUMA_GATEKEEPER_LVL)
          {
            show("teleporter/30483-no.htm", player);
            return;
          }
          break;
        case 32864:
        case 32865:
        case 32866:
        case 32867:
        case 32868:
        case 32869:
        case 32870:
          if (player.getLevel() < 80)
          {
            show("teleporter/" + npcId + "-no.htm", player);
            return;
          }
          break;
      }
    }
    final int x = Integer.parseInt(param[0]);
    final int y = Integer.parseInt(param[1]);
    final int z = Integer.parseInt(param[2]);
    final int castleId = (param.length > 4) ? Integer.parseInt(param[3]) : 0;
    if (player.getReflection().isDefault())
    {
      final Castle castle = (castleId > 0) ? ResidenceHolder.getInstance().getResidence(Castle.class, castleId) : null;
      if ((castle != null) && castle.getSiegeEvent().isInProgress())
      {
        player.sendPacket(Msg.YOU_CANNOT_TELEPORT_TO_A_VILLAGE_THAT_IS_IN_A_SIEGE);
        return;
      }
    }
    final Location pos = Location.findPointToStay(x, y, z, 50, 100, player.getGeoIndex());
    if (price > 0)
    {
      player.reduceAdena(price, true);
    }
    player.teleToLocation(pos);
  }
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.