Package smart.updater

Examples of smart.updater.RSClass.addField()


                        groundheights = field;
                    }
                }
                if (twodintarrayhits == 1) {
                    RSClass sdplane = data.addClass("SDPlane", clazz.getClassName());
                    sdplane.addField("TileHeights", groundheights.getName());
                    return true;
                }
            }
        }
        return false;
View Full Code Here


                    InstructionSearcher2 iS = new InstructionSearcher2(cg, m);
                    while(iS.nextFieldInstruction() != null){
                      FieldInstruction fi = (FieldInstruction)iS.current();
                      if(fi.getClassName(cpg).equals(character.className)){
                        String anim = fi.getFieldName(cpg);
                        character.addField("Animation", anim);
                        int count = 0;
                        while(iS.nextFieldInstruction() != null){
                          fi = (FieldInstruction)iS.current();
                          if((fi instanceof GETFIELD) && (fi.getClassName(cpg)+'.'+fi.getFieldName(cpg)).equals(character.className+'.'+anim)){
                            count++;
View Full Code Here

                            count++;
                            if(count==2){
                              while(iS.nextGETFIELD() != null){
                                GETFIELD gf = ((GETFIELD)iS.current());
                                if(gf.getClassName(cpg).equals(character.className)){
                                  character.addField("Motion", gf.getFieldName(cpg));
                                  return SearchResult.Success;
                                }
                              }
                            }
                          }
View Full Code Here

      RSClass nodeList = data.getProperClass("NodeList");
      for(Entry<String, ClassGen> c : classes.entrySet()){
        if(c.getValue().getClassName().equals(nodeList.className)){
          for(Field fi : c.getValue().getFields()){
            if(fi.isPrivate()){
              nodeList.addField("Current", fi.getName());
              for(Field head: c.getValue().getFields()){
                if(!head.isPrivate() && head.getType().equals(fi.getType())){
                  nodeList.addField("Head", head.getName());
                  data.addClass("Node", head.getType().toString());
                  return SearchResult.Success;
View Full Code Here

          for(Field fi : c.getValue().getFields()){
            if(fi.isPrivate()){
              nodeList.addField("Current", fi.getName());
              for(Field head: c.getValue().getFields()){
                if(!head.isPrivate() && head.getType().equals(fi.getType())){
                  nodeList.addField("Head", head.getName());
                  data.addClass("Node", head.getType().toString());
                  return SearchResult.Success;
                }
              }
            }
View Full Code Here

          if(iS.nextSIPUSH(-300) != null){
            FieldInstruction fi = iS.previousGETSTATIC();
            if(fi != null && (fi.getClassName(cpg)+'.'+fi.getFieldName(cpg)).equals(loopcycle.path)){
              fi = iS.nextPUTFIELD();
              if(fi != null && fi.getClassName(cpg).equals(character.className)){
                character.addField("LoopCycleStatus", fi.getFieldName(cpg));
                return SearchResult.Success;
              }
            }
          }
        }
View Full Code Here

          InstructionSearcher2 iS = new InstructionSearcher2(cg, m, il);
          if(iS.nextSIPUSH(3326) != null){
            FieldInstruction fi = iS.nextGETFIELD();
            FieldInstruction tester = iS.previousGETSTATIC();
            if((tester.getClassName(cpg)+'.'+tester.getFieldName(cpg)).equals(myplayer.path)){
              player.addField("GetLevel", fi.getFieldName(cpg));
              count++;
              if(count==2)
                return SearchResult.Success;
            }
          }
View Full Code Here

          if(iS.nextSIPUSH(5015) != null){
            FieldInstruction fi = iS.nextGETSTATIC();
            if(fi != null && (fi.getClassName(cpg)+'.'+fi.getFieldName(cpg)).equals(myplayer.path)){
              fi = iS.nextGETFIELD();
              if(fi != null && fi.getType(cpg).equals(Type.STRING)){
                player.addField("GetName", fi.getFieldName(cpg));
                count++;
                if(count==2)
                  return SearchResult.Success;
             
            }
View Full Code Here

              !f.getName().equals(nextNode)){
            nodeClass.addField("Previous", f.getName());
            return SearchResult.Success;
          }
          if(f.getType().equals(Type.LONG))
            nodeClass.addField("GetID", f.getName());
        }
      }
    }
    return SearchResult.Failure;
  }
View Full Code Here

          if(iS.nextSIPUSH(255) != null){
            FieldInstruction fi = iS.previousGETFIELD();
            if(fi != null && fi.getClassName(cpg).equals(character.className)){
              fi = iS.nextGETFIELD();
              if(fi != null && fi.getClassName(cpg).equals(character.className)){
                character.addField("HPRatio", fi.getFieldName(cpg));
                return SearchResult.Success;
              }
            }
          }
        }
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.