Package smart.updater

Examples of smart.updater.RSClass.addField()


      if(c.getValue().getClassName().equals(npcDef.className)){
        int count = 0;
        for(Field f : c.getValue().getFields()){
          if(!f.isStatic()){
            if(f.getType().equals(Type.STRING)){
              npcDef.addField("GetName", f.getName());
              count++;
            }
            if(f.getType().toString().equals("java.lang.String[]")){
              npcDef.addField("GetActions", f.getName());
              count++;
View Full Code Here


            if(f.getType().equals(Type.STRING)){
              npcDef.addField("GetName", f.getName());
              count++;
            }
            if(f.getType().toString().equals("java.lang.String[]")){
              npcDef.addField("GetActions", f.getName());
              count++;
            }
            if(count == 2)
              return SearchResult.Success;
          }
View Full Code Here

                        String animx = ((GETFIELD) handles[4].getInstruction()).getFieldName(cpg);
                        String animy = ((GETFIELD) handles[11].getInstruction()).getFieldName(cpg);
                        String basex = ((GETSTATIC) handles[7].getInstruction()).getClassName(cpg) + "." + ((GETSTATIC) handles[7].getInstruction()).getFieldName(cpg);
                        String basey = ((GETSTATIC) handles[14].getInstruction()).getClassName(cpg) + "." + ((GETSTATIC) handles[14].getInstruction()).getFieldName(cpg);
                        RSClass animableClass = data.addClass("Animable", animable);
                        animableClass.addField("PixelX", animx);
                        animableClass.addField("PixelY", animy);
                        animableClass.addField("Plane", plane);
                        data.addField("MyPlayer", myplayer);
                        data.addField("BaseX", basex);
                        data.addField("BaseY", basey);
View Full Code Here

                        String animy = ((GETFIELD) handles[11].getInstruction()).getFieldName(cpg);
                        String basex = ((GETSTATIC) handles[7].getInstruction()).getClassName(cpg) + "." + ((GETSTATIC) handles[7].getInstruction()).getFieldName(cpg);
                        String basey = ((GETSTATIC) handles[14].getInstruction()).getClassName(cpg) + "." + ((GETSTATIC) handles[14].getInstruction()).getFieldName(cpg);
                        RSClass animableClass = data.addClass("Animable", animable);
                        animableClass.addField("PixelX", animx);
                        animableClass.addField("PixelY", animy);
                        animableClass.addField("Plane", plane);
                        data.addField("MyPlayer", myplayer);
                        data.addField("BaseX", basex);
                        data.addField("BaseY", basey);
                        String player = ((GETSTATIC) handles[0].getInstruction()).getType(cpg).getSignature().replaceAll("L|;", "");
View Full Code Here

                        String basex = ((GETSTATIC) handles[7].getInstruction()).getClassName(cpg) + "." + ((GETSTATIC) handles[7].getInstruction()).getFieldName(cpg);
                        String basey = ((GETSTATIC) handles[14].getInstruction()).getClassName(cpg) + "." + ((GETSTATIC) handles[14].getInstruction()).getFieldName(cpg);
                        RSClass animableClass = data.addClass("Animable", animable);
                        animableClass.addField("PixelX", animx);
                        animableClass.addField("PixelY", animy);
                        animableClass.addField("Plane", plane);
                        data.addField("MyPlayer", myplayer);
                        data.addField("BaseX", basex);
                        data.addField("BaseY", basey);
                        String player = ((GETSTATIC) handles[0].getInstruction()).getType(cpg).getSignature().replaceAll("L|;", "");
                        data.addClass("Player", player);
View Full Code Here

            InstructionSearcher2 search = new InstructionSearcher2(cg, m);
            while(search.nextBIPUSH() != null) {
              Instruction i = search.current();
              if(((BIPUSH)i).getValue().intValue() == -98 || ((BIPUSH)i).getValue().intValue() == 97){
                FieldInstruction npcLevel = search.previousFieldInstruction();
                npcDef.addField("GetLevel", npcLevel.getFieldName(cpg));
                return SearchResult.Success;
              }
            }
          }
        }
View Full Code Here

          while(iS.nextLDC() != null){
            LDC i = (LDC) iS.current();
            if(i.getValue(cpg).equals(-32769) || i.getValue(cpg).equals(32768)){
              FieldInstruction fi = iS.previousFieldInstruction();
              if(fi.getClassName(cpg).equals(character.className)){
                character.addField("GetInteracting", fi.getFieldName(cpg));
                return SearchResult.Success;
              }
            }
          }
        }
View Full Code Here

            while(iS.next() != null){
              Instruction i = iS.current();
              if(i instanceof LDC){
                if(((LDC) i).getValue(cpg).equals(-32768)){
                  i = iS.nextPUTFIELD();
                  character.addField("GetHeight", ((PUTFIELD) i).getFieldName(cpg));
                  return SearchResult.Success;
                }
              }
            }
          }
View Full Code Here

          MethodGen mg = new MethodGen(m, c.getValue().getClassName(), cpg);
          InstructionList il = mg.getInstructionList();
          for(Instruction i : il.getInstructions()){
            if(i instanceof FieldInstruction){
              if(((FieldInstruction) i).getClassName(cpg).equals(nodeClass.className)){
                nodeClass.addField("Next", ((FieldInstruction) i).getFieldName(cpg));
                return ((FieldInstruction) i).getFieldName(cpg);
             
            }
          }
        }
View Full Code Here

    for(Entry<String, ClassGen> c : classes.entrySet()){
      if(c.getValue().getClassName().equals(nodeClass.className)){
        for(Field f : c.getValue().getFields()){
          if(f.getType().toString().equals(nodeClass.className) &&
              !f.getName().equals(nextNode)){
            nodeClass.addField("Previous", f.getName());
            return SearchResult.Success;
          }
          if(f.getType().equals(Type.LONG))
            nodeClass.addField("GetID", f.getName());
        }
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.