Examples of AttackRequest


Examples of com.l2client.network.game.ClientPackets.AttackRequest

    if(gameSocket != null)
      gameSocket.setKey(key);   
  }

  public void sendAction(int target, float x, float y, float z, boolean shiftclick, boolean noAttack) {
    GameClientPacket p = new AttackRequest(target, x, y, z, shiftclick, noAttack);
    sendGamePacket(p);   
  }
View Full Code Here

Examples of com.l2client.network.game.ClientPackets.AttackRequest

//    // only execute on button/key release
    if (!isPressed) {
      ClientFacade f = Singleton.get().getClientFacade();
      TargetComponent com = (TargetComponent) Singleton.get().getEntityManager().getComponent(f.getCharHandler().getSelectedObjectId(), TargetComponent.class);
      if(com != null){
        GameClientPacket p = new AttackRequest(com.getCurrentTarget(), com.pos.x, com.pos.y, com.pos.z, false, false);
        f.sendGamePacket(p);   
      }
    }
  }
View Full Code Here

Examples of org.terasology.logic.characters.events.AttackRequest

        }

        CharacterComponent character = entity.getComponent(CharacterComponent.class);
        EntityRef selectedItemEntity = InventoryUtils.getItemAt(entity, character.selectedItem);

        entity.send(new AttackRequest(selectedItemEntity));

        lastInteraction = time.getGameTimeInMs();
        character.handAnimation = 0.5f;
        entity.saveComponent(character);
        event.consume();
View Full Code Here

Examples of org.terasology.logic.characters.events.AttackRequest

    @Test
    public void createConstructorObjectWithProtectedConstructor() throws Exception {
        ReflectFactory reflectFactory = new ByteCodeReflectFactory();
        ObjectConstructor<AttackRequest> constructor = reflectFactory.createConstructor(AttackRequest.class);
        AttackRequest result = constructor.construct();
        assertNotNull(result);
    }
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.