Package zombie.worldMap
Class WorldMapData
java.lang.Object
zombie.asset.Asset
zombie.worldMap.WorldMapData
public final class WorldMapData extends Asset
-
Nested Class Summary
Nested classes/interfaces inherited from class zombie.asset.Asset
Asset.ObserverCallback, Asset.State
-
Field Summary
Fields Modifier and Type Field Description static AssetType
ASSET_TYPE
java.util.HashMap
m_cellLookup
java.util.ArrayList
m_cells
int
m_maxX
int
m_maxY
int
m_minX
int
m_minY
java.lang.String
m_relativeFileName
static java.util.HashMap
s_fileNameToData
Fields inherited from class zombie.asset.Asset
m_asset_manager
-
Constructor Summary
Constructors Constructor Description WorldMapData(AssetPath assetPath, AssetManager assetManager)
WorldMapData(AssetPath assetPath, AssetManager assetManager, AssetManager.AssetParams assetParams)
-
Method Summary
Modifier and Type Method Description void
clear()
WorldMapCell
getCell(int int1, int int2)
int
getHeightInCells()
int
getHeightInSquares()
static WorldMapData
getOrCreateData(java.lang.String string)
AssetType
getType()
int
getWidthInCells()
int
getWidthInSquares()
void
hitTest(float float1, float float2, java.util.ArrayList arrayList)
protected void
onBeforeEmpty()
void
onLoaded()
static void
Reset()
Methods inherited from class zombie.asset.Asset
addDependency, getAssetManager, getObserverCb, getPath, getRefCount, getState, isEmpty, isFailure, isReady, onBeforeReady, onCreated, removeDependency, setAssetParams
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
s_fileNameToData
public static final java.util.HashMap s_fileNameToData -
m_relativeFileName
public java.lang.String m_relativeFileName -
m_cells
public final java.util.ArrayList m_cells -
m_cellLookup
public final java.util.HashMap 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
public WorldMapData(AssetPath assetPath, AssetManager assetManager, AssetManager.AssetParams assetParams)
-
-
Method Details
-
getOrCreateData
-
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
public void hitTest(float float1, float float2, java.util.ArrayList arrayList) -
Reset
public static void Reset() -
getType
-
onBeforeEmpty
protected void onBeforeEmpty()- Overrides:
onBeforeEmpty
in classAsset
-