Examples of Human


Examples of org.spout.vanilla.component.entity.living.Human

    }

    Player holder = session.getPlayer();

    holder.getPhysics().setTransform(new Transform(holder.getPhysics().getPosition(), Quaternionf.fromAxesAnglesDeg(message.getPitch(), message.getYaw(), 0), holder.getPhysics().getScale()), false);
    Human human = holder.get(Human.class);
    if (human != null) {
      human.setOnGround(message.isOnGround());
      human.getHead().setOrientation(message.getRotation());
    }
  }
View Full Code Here

Examples of org.spout.vanilla.component.entity.living.Human

  @Override
  public void handleClient(ClientSession session, PlayerLookMessage message) {
    Player holder = session.getPlayer();

    holder.getPhysics().setRotation(Quaternionf.fromAxesAnglesDeg(message.getPitch(), message.getYaw(), 0));
    Human human = holder.get(Human.class);
    if (human != null) {
      human.setOnGround(message.isOnGround());
      human.getHead().setOrientation(message.getRotation());
    }
  }
View Full Code Here

Examples of org.spout.vanilla.component.entity.living.Human

  @Override
  public List<Message> getSpawnMessages(Entity entity, RepositionManager rm) {

    List<Message> messages = new ArrayList<Message>(6);

    Human human = entity.add(Human.class);

    int id = entity.getId();
    int x = VanillaByteBufUtils.protocolifyPosition(rm.convertX(entity.getPhysics().getPosition().getX()));
    int y = VanillaByteBufUtils.protocolifyPosition(rm.convertY(entity.getPhysics().getPosition().getY()));
    int z = VanillaByteBufUtils.protocolifyPosition(rm.convertZ(entity.getPhysics().getPosition().getZ()));
    final Vector3f axesAngles = entity.getPhysics().getRotation().getAxesAngleDeg();
    int r = VanillaByteBufUtils.protocolifyYaw(axesAngles.getY());
    int p = VanillaByteBufUtils.protocolifyPitch(axesAngles.getX());

    int item = 0;
    Slot hand = PlayerUtil.getHeldSlot(entity);
    if (hand != null && hand.get() != null) {
      item = hand.get().getMaterial().getId();
    }

    // Spawn message
    messages.add(new PlayerSpawnMessage(id, human.getName(), x, y, z, r, p, item, getSpawnParameters(entity)));

    // Armor
    EntityInventory inventory = entity.get(EntityInventory.class);
    final ItemStack boots, leggings, chestplate, helmet, held;
    if (inventory == null) {
View Full Code Here

Examples of pdp.scrabble.game.impl.Human

    this.reset();
    this.getOptionsPanel().setVisible(true);

    //Player player = FACTORY.createPlayer(this.game, name, 0, false, null);
    Player player = new Human(name, 0, gameEnv);
    player.getRack().fill();
    //player.initialize();

    this.gameEnv.addPlayer(player);
    this.getPlayerPanel().createScores();
View Full Code Here

Examples of pdp.scrabble.game.impl.Human

    this.gameEng=gameEng;
    this.reset();
    this.getOptionsPanel().setVisible(true);

    //Player player = FACTORY.createPlayer(this.game, name, 0, false, null);
    Player player = new Human(name, 0, gameEnv);
    player.getRack().fill();
    //player.initialize();

    this.gameEnv.addPlayer(player);
    this.getPlayerPanel().createScores();
View Full Code Here

Examples of tests.jfun.yan.xml.models.Human

    runTest("test/yan/test_expansion.xml");
    super.yan.getInstance("tests.jfun.yan.xml.models.Apple");
    super.yan.getInstance("tests.jfun.yan.xml.models.Orange");
    super.yan.getInstance("tests.jfun.yan.xml.models.orange");
    final Apple apple = (Apple)super.yan.getInstance("tests.jfun.yan.xml.models.apple");
    final Human human = (Human)yan.getInstance("human");
    assertSame(apple, human.getFruit());
    assertEquals(3, Apple.getInstances());
    assertEquals(3, Orange.getInstances());
   
  }
View Full Code Here

Examples of wholaughs.player.Human

 
  public static BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
 
  void init()
  {
    player1 = new Human();
    player2 = new LunaticLucy( 4 );
    player1.setName("player 1" );
    player2.setName("player 2" );
    player1.setColour( Constants.CELL_PLAYER_1 );
    player2.setColour( Constants.CELL_PLAYER_2 );
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.