Examples of EntityData


Examples of com.l2client.model.network.EntityData

     * @param i the char data to be used for the new char
     * @return a filled
     */
    public NewCharSummary getCharSummary(int i){
      NewCharSummary sum = new NewCharSummary();
    EntityData c = null;
    synchronized (charSelections) {
      c = charSelections.get(i);
    }
    if (c != null) {
      sum.objectId = c.getObjectId();
      sum.classId = c.getClassId();
      sum.name = c.getName();
      sum.race = c.getRace();
      sum.sex = c.getSex();
      sum.hair = c.getHairStyle();
      sum.hairColor = c.getHairColor();
     
    }
    return sum;
    }
View Full Code Here

Examples of com.l2client.model.network.EntityData

   * @param info The new CharSelectionInfo for the current character
   * @return returns true if the existing char was updated, false if char was switched
   * @throws Exception
   */
  public boolean updateUserInfo(EntityData info){
    EntityData selected = getSelectedChar();
    if(selected!=null){

      log.info("Updating Char " + " from " + selected.getX() + ","
          + selected.getY() + "," + selected.getZ() + " to "
          + info.getX() + "," + info.getY() + "," + info.getZ());
      selected.updateFrom(info);
      selectedObjectId = selected.getObjectId();
      //TODO check doEnterWorld could be called after charSelected, not here as this will come several times, and perhaps for other players too?
      //FIXME second time we land here all guis are gone!?!???!!!
      Singleton.get().getGameController().doEnterWorld();
      return true;       
    } else {
View Full Code Here

Examples of com.l2client.model.network.EntityData

        int id = readD();
        int attributes = readD();
       
        L2JComponent co = (L2JComponent) Singleton.get().getEntityManager().getComponent(id, L2JComponent.class);
        if(co != null) {
          EntityData e = co.l2jEntity;
        for (int i=0;i<attributes;i++)
        {
            int attrID = readD();
            int val = readD();
            handleStatusUpdate(e, attrID, val);
View Full Code Here

Examples of com.l2client.model.network.EntityData

*/
//FIXME move EnterWorld request to own action
public class CharSelected extends GameServerPacket {
  public void handlePacket() {
    log.fine("Read from Server "+this.getClass().getSimpleName());
    EntityData ch = _client.getCharHandler()
        .getSelectedChar();
    // FIXME needed or is it just the same stuff from char selectioninfopackages
    ch.setName(readS());
    ch.setCharId(readD());
    ch.setTitle(readS());
    int id = readD();
    if (id != _client.sessionId)
      _client.sessionId = id;

    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
   
    int x = readD();
    int y = readD();
    int z = readD();
    ch.setX(ServerValues.getClientCoordX(x));
    //reverted jme uses Y as up
    ch.setY(ServerValues.getClientCoordY(z));
    ch.setZ(ServerValues.getClientCoordZ(y));

    readF();
    readF();
    readD();
    readQ();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
   
    ch.setGameTime(readD());//time
   
    //..
    // rest ignored
    //TODO RequestManorList, RequestAllFortressInfo, RequestKeyMapping
    _client.sendGamePacket(new EnterWorld());
View Full Code Here

Examples of com.l2client.model.network.EntityData

   * Teleport the player to the test area
   */
  public void teleportToTestArea() {
    try{
      if(originalLocation == null){
        EntityData e = Singleton.get().getClientFacade().getCharHandler().getSelectedChar();
        PositioningComponent pos = (PositioningComponent) Singleton.get().getEntityManager().getComponent(e.getObjectId(), PositioningComponent.class);
        if(pos == null){
          System.out.println("Was looking for PositioningComponent but got none for Ent:"+e.getObjectId());
          Singleton.get().getEntityManager().dumpAllComponents();
        }
        originalLocation = pos.position.clone();
      }
      Singleton.get().getClientFacade().sendGamePacket(
        // top left edge of 15_22 + 10 cells further in wards (10*16)
        //  (-9890.341, 14.228922, 8302.891) on tile 121, 177
        //x y z in jme but send it x z y to l2j
        new RequestBypassToServer("admin_move_to "+
            (int)ServerValues.getServerCoordX(-9856f)+" "+
            (int)ServerValues.getServerCoordY(8464f)+" "+
            (int)ServerValues.getServerCoordZ(17.5f)));
            //(-9856.284, 17.075874, 8463.943) @ server:-157700,135423,273
    } catch(Exception e){
      logger.severe(e.getMessage());
      Singleton.get().getGuiController().showInfoDialog("Failed to teleport, see at the logs why.");
    }
 
  }
View Full Code Here

Examples of com.l2client.model.network.EntityData

    // if 0 no new chars may be created
    readD();
    readC();
    // for each char read on
    for (int i = 0; i < size; i++) {
      EntityData ch = new EntityData();

      ch.setName(readS());
      ch.setCharId(readD());
      readS();
      int id = readD();
      if (id != _client.sessionId)
        _client.sessionId = id;
      ch.setClanId(readD());
      readD();

      ch.setSex(readD());

      ch.setRace(readD());
      ch.setClassId(readD());

      // active ??
      readD();//always 1
     
      int x = readD();
      int y = readD();
      int z = readD();
      ch.setX(ServerValues.getClientCoordX(x));
      //reverted jme uses Y as up
      ch.setY(ServerValues.getClientCoordY(z));
      ch.setZ(ServerValues.getClientCoordZ(y));

      ch.setCurrentHp((int)readF());
      ch.setCurrentMp((int)readF());

      ch.setSp(readD());
      ch.setExp(readQ());
      readF();//high five exp %
      ch.setLevel(readD());

      ch.setKarma(readD());
      ch.setPkKills(readD());

      ch.setPvPKills(readD());
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();

      // FIXME TR add paperdoll support
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();
      readD();

      ch.setHairStyle(readD());
      ch.setHairColor(readD());
      ch.setFace(readD());
      ch.setMaxHp((int)readF());
      ch.setMaxMp((int)readF());
      ch.setDeleteTimer(readD());//days left before char is deleted
      readD();

      // FIXME active
      ch.setLastUsed(readD()>0?true:false);//last used char?
      readC();
      readH();
      readH();
//      ch.setAugmentationId(readD());
      readD();
View Full Code Here

Examples of com.l2client.model.network.EntityData

*/
public final class UserInfo extends GameServerPacket {
  @Override
  public void handlePacket() {
    log.fine("Read from Server "+this.getClass().getSimpleName());
    EntityData p = new EntityData();
    int x = readD();
    int y = readD();
    int z = readD();

    p.setX(ServerValues.getClientCoordX(x));
    //reverted jme uses Y as up
    p.setY(ServerValues.getClientCoordY(z));
    p.setZ(ServerValues.getClientCoordZ(y));
    p.setServerZ(z);

    readD();// airshipID
    p.setObjectId(readD());
    log.finer("User "+p.getObjectId()+" at " + x + "," + z + "," + y + " placed in world at "+ServerValues.getClientString(x, y, z));
    p.setName(readS());
    p.setRace(readD());
    p.setSex(readD());

    p.setClassId(readD());

    p.setLevel(readD());
    p.setExp(readQ());
    readF();//high five xp %
    readD();// setSTR
    readD();// setDEX
    readD();// setCON
    readD();// setINT
    readD();// setWIT
    readD();// setMEN
    p.setMaxHp(readD());
    p.setCurrentHp(readD());
    p.setMaxMp(readD());
    p.setCurrentMp(readD());
    p.setSp(readD());
    readD();// currentLoad
    readD();// maxLoad

    readD();// ActiveWeaponItem 20 no weapon, 40 weapon equipped
    // FIXME paper doll entries are omitted at the moment
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();

    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();

    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();

    readD();// MaxTalismanCount
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();
    readD();

    readD();
    readD();

    readD();

    readD();
    readD();// Karma

    // from NpcInfo
    int speed = readD();// run speed
    int nSpeed = readD();// walk speed
    readD();// swim run speed
    readD();// swim walk speed
    readD();// fly run speed
    readD();// fly walk speed
    readD();// fly run speed
    readD();// fly walk speed
    float mult = (float) readF();// movement speed multiplier

    if (mult < 0.00001f)
      mult = 1.0f;
    // check mult should it ever be 0 ??
    p.setWalkSpeed(mult*ServerValues.getClientScaled(nSpeed));
    p.setRunSpeed(mult*ServerValues.getClientScaled(speed));

    readF();// attack speed multiplier

    readF();// collision radius
    readF();// collision heights

    p.setHairStyle(readD());
    p.setHairColor(readD());
    p.setFace(readD());
    p.setGM(readD() != 0);
    p.setTitle(readS());

    readD();// clanId
    readD();// clanCrestId
    readD();// allyId
    readD();// allyCrestId
    readD();// relation
    readC();// mount type
    readC();// privateStoreType
    readC();// hasDwarvenCraft 1=true
    readD();// pk kills
    readD();// pvp kills

    for (int id = readH()/* cubic size */; id > 0; id--)
      readH();// cubic

    readC();// 1-find party members
    readD();// AbnormalEffect
    readC();// is flying mounted
    readD();// clanPrivileges
    readH();// recommendations remaining
    readH();// recommendations received
    readD();// mountNpcId = activeChar.getMountNpcId() + 1000000 or 0
    readH();// inventory limit

    p.setClassId(readD());// done twice ?? classId
    readD();// special effects? circles around player...
    readD();// MaxCp
    readD();// CurrentCp
    readC();// is mounted ?
    readC();// team circle 1=blue, 2=red

    readD();// clanCrestLargeId
    readC();// is noble symbol on char menu ctrl+I
    readC();// gm or hero: Hero Aura

    readC();// Fishing Mode
    readD();// fishing x
    readD();// fishing y
    readD();// fishing z
    readD();// Name color

    readC();// is running, changes the Speed display on Status Window

    readD();// pledgeClass changes the text above CP on Status Window
    readD();// pledgeType

    readD();// titleColor
    readD();// cursed weapon id
    p.setTransformId(readD());

    readH();// attackAttribute
    readH();// attack attackAttribute
    readH();// defense fire
    readH();// defense water
View Full Code Here

Examples of edu.stanford.bmir.protege.web.client.rpc.data.EntityData

public class PropertyValueUtil {

    public void deletePropertyValue(ProjectId projectId, String entityName, String propName, ValueType propValueType,
            String value, UserId userId, String operationDescription, AsyncCallback<Void> asyncCallback) {
        EntityData oldEntityData = new EntityData(value);
        oldEntityData.setValueType(propValueType);
        OntologyServiceManager.getInstance().removePropertyValue(projectId, entityName,
                new PropertyEntityData(propName), oldEntityData, userId, operationDescription,
                new RemovePropertyValueHandler(entityName, propName, asyncCallback));
    }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.client.rpc.data.EntityData

    //TODO: assume value value type is the same as the property value type, fix later
    public void replacePropertyValue(ProjectId projectId, String entityName, String propName, ValueType propValueType,
            String oldValue, String newValue, UserId userId, String operationDescription,
            AsyncCallback<Void> asyncCallback) {
        EntityData oldEntityData = new EntityData(oldValue);
        oldEntityData.setValueType(propValueType);
        EntityData newEntityData = new EntityData(newValue);
        newEntityData.setValueType(propValueType);
        OntologyServiceManager.getInstance().replacePropertyValue(projectId, entityName,
                new PropertyEntityData(propName), oldEntityData, newEntityData, userId, operationDescription,
                new ReplacePropertyValueHandler(entityName, propName, newEntityData, asyncCallback));
    }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.client.rpc.data.EntityData

            Collection<String> newValues, UserId userId, String operationDescription,
            AsyncCallback<Void> asyncCallback) {
        ArrayList<EntityData> newEntityData = new ArrayList<EntityData>();
        if (newValues != null && newValues.size() > 0) {
            for (String newValue : newValues) {
                newEntityData.add(new EntityData(newValue));
            }
        }
        else {
            newEntityData = null;
        }
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.