Class WorldMapData
java.lang.Object
zombie.asset.Asset
zombie.worldMap.WorldMapData
-
Nested Class Summary
Nested classes/interfaces inherited from class zombie.asset.Asset
Asset.ObserverCallback, Asset.State -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AssetTypefinal gnu.trove.map.hash.TLongObjectHashMap<WorldMapCell> final ArrayList<WorldMapCell> intintintintstatic final HashMap<String, WorldMapData> -
Constructor Summary
ConstructorsConstructorDescriptionWorldMapData(AssetPath path, AssetManager manager) WorldMapData(AssetPath path, AssetManager manager, AssetManager.AssetParams params) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidgetCell(int x, int y) intintstatic WorldMapDatagetOrCreateData(String fileName) getType()intintvoidhitTest(float x, float y, ArrayList<WorldMapFeature> features) voidonLoaded()static voidReset()Methods inherited from class zombie.asset.Asset
addDependency, getAssetManager, getObserverCb, getPath, getRefCount, getState, isEmpty, isFailure, isReady, onCreated, removeDependency, setAssetParams
-
Field Details
-
s_fileNameToData
-
m_relativeFileName
-
m_cells
-
m_cellLookup
-
m_minX
public int m_minX -
m_minY
public int m_minY -
m_maxX
public int m_maxX -
m_maxY
public int m_maxY -
ASSET_TYPE
-
-
Constructor Details
-
WorldMapData
-
WorldMapData
-
-
Method Details
-
getOrCreateData
-
clearTriangles
public void clearTriangles() -
clear
public void clear() -
getWidthInCells
public int getWidthInCells() -
getHeightInCells
public int getHeightInCells() -
getWidthInSquares
public int getWidthInSquares() -
getHeightInSquares
public int getHeightInSquares() -
onLoaded
public void onLoaded() -
getCell
-
hitTest
-
Reset
public static void Reset() -
getType
-