Examples of MonolithFile


Examples of com.pointcliki.dizgruntled.rez.MonolithFile

    }
  }
 
  public MonolithPID pid(String ref) {
    if (!fPIDs.containsKey(ref)) {
      MonolithFile f = rez().file(ref, "pid");
      if (f == null) return null;
      fPIDs.put(ref, new MonolithPID(f));
    }
    return fPIDs.get(ref);
  }
View Full Code Here

Examples of com.pointcliki.dizgruntled.rez.MonolithFile

 
  protected HashMap<String, Color> fMapping;
  protected String fName;
 
  public GruntPalette(String name, MonolithFile f) {
    MonolithFile fx = GruntzGame.resourceManager().rez().file("GRUNTZ/PALETTEZ/GREENTOOL", "pal");
   
    fMapping = new HashMap<String, Color>();
    fName = name;
   
    byte[] data = f.data();
    byte[] data2 = fx.data();
   
    for (int i = 0; i < data.length; i += 3) {
      Color c = new Color(0, 0, 0);
      Color c2 = new Color(0, 0, 0);
     
View Full Code Here

Examples of com.pointcliki.dizgruntled.rez.MonolithFile

  private boolean fStale = false;
 
  public SFX(String animation, String graphics, String sound, GridCoordinate xy) {
   
    fXY = xy;
    MonolithFile f = GruntzGame.resourceManager().rez().file(animation, "ani");
    if (f == null) fAnimation = MonolithANI.fromDirectory(graphics);
    else fAnimation = new MonolithANI(f, graphics).sprite();
    fSound = sound;
   
    if (fAnimation == null) return;
View Full Code Here

Examples of com.pointcliki.dizgruntled.rez.MonolithFile

  }
 
  public void load(File f) {
    try {
      if (f.getName().toLowerCase().endsWith(".wwd")) {
        fMap = new Map(this, new MonolithWWD(new MonolithFile(f)));
      } else {
        JSONObject json = new JSONObject(new JSONTokener(new FileReader(f)));
        fMap = new Map(this, json);
      }
    } catch (FileNotFoundException e) {
View Full Code Here

Examples of com.pointcliki.dizgruntled.rez.MonolithFile

      ArrayList<Image> images = new ArrayList<Image>();
      ArrayList<Vector2f> offsets = new ArrayList<Vector2f>();
      while (true) {
        String end = j + "";
        while (end.length() < 3) end = "0" + end;
        MonolithFile f = GruntzGame.resourceManager().rez().file(image + "/FRAME" + end, "pid");
        if (f == null) break;
        MonolithPID pid = new MonolithPID(f);
        images.add(pid.image());
        offsets.add(pid.offset());
        j++;
View Full Code Here

Examples of com.pointcliki.dizgruntled.rez.MonolithFile

              removeChild(fBack);
              showLevelPage(id - 1 + SET_WORLD_OFFSET);
            }
          } else if (quest == SET_LEARN) {
            String level = "AREA1/WORLDZ/TRAINING" + (id + 1);
            MonolithFile wwd = GruntzGame.resourceManager().rez().file(level, "wwd");
            GruntzGame.instance().playLevel(wwd);
          } else {
            String level = "AREA" + (quest - SET_WORLD_OFFSET + 1) + "/WORLDZ/LEVEL" + ((id + 1) + 4 * (quest - SET_WORLD_OFFSET));
            MonolithFile wwd = GruntzGame.resourceManager().rez().file(level, "wwd");
            GruntzGame.instance().playLevel(wwd);
          }
        }
      };
      links.add(link);
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.