Class CacheRegion
- java.lang.Object
-
- com.runemate.game.api.hybrid.cache.elements.CacheRegion
-
public class CacheRegion extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(Coordinate coordinate)
int
getBaseX()
int
getBaseY()
CollisionGrid
getCollisionGrid(java.io.File map_cache, java.io.File landscape_cache, int[] xtea_keys)
int
getGridX()
int
getGridY()
int
getId()
static int
getId(int gridX, int gridY)
LandscapeFileCacheExtract
getLandscapeFileExtract(java.io.File cache, int[] xtea_keys)
MapFileCacheExtract
getMapFileExtract(java.io.File cache)
int
getRS3Group()
boolean
hasLandscapeFile()
boolean
hasLandscapeFileBeenExtracted()
boolean
hasMapFile()
boolean
hasMapFileBeenExtracted()
boolean
isRS3()
static CacheRegion
load(JS5CacheController js5Cache, boolean rs3, int mapX, int mapY)
java.lang.String
toString()
-
-
-
Method Detail
-
load
public static CacheRegion load(JS5CacheController js5Cache, boolean rs3, int mapX, int mapY)
-
getId
public static int getId(int gridX, int gridY)
-
isRS3
public boolean isRS3()
-
getGridX
public int getGridX()
-
getGridY
public int getGridY()
-
getBaseX
public int getBaseX()
-
getBaseY
public int getBaseY()
-
contains
public boolean contains(Coordinate coordinate)
-
getId
public int getId()
-
getRS3Group
public int getRS3Group()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getCollisionGrid
public CollisionGrid getCollisionGrid(java.io.File map_cache, java.io.File landscape_cache, int[] xtea_keys)
-
hasMapFile
public boolean hasMapFile()
-
hasLandscapeFile
public boolean hasLandscapeFile() throws java.io.IOException
- Throws:
java.io.IOException
-
hasMapFileBeenExtracted
public boolean hasMapFileBeenExtracted()
-
hasLandscapeFileBeenExtracted
public boolean hasLandscapeFileBeenExtracted()
-
getMapFileExtract
public MapFileCacheExtract getMapFileExtract(java.io.File cache)
-
getLandscapeFileExtract
public LandscapeFileCacheExtract getLandscapeFileExtract(java.io.File cache, int[] xtea_keys) throws OutdatedXTEAKeyException, MissingXTEAKeyException
-
-