Package zombie.worldMap
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
Modifier and TypeFieldDescriptionstatic final AssetType
final HashMap
final ArrayList
int
int
int
int
static final HashMap
Fields inherited from class zombie.asset.Asset
m_asset_manager
-
Constructor Summary
ConstructorDescriptionWorldMapData
(AssetPath assetPath, AssetManager assetManager) WorldMapData
(AssetPath assetPath, AssetManager assetManager, AssetManager.AssetParams assetParams) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
getCell
(int int1, int int2) int
int
static WorldMapData
getOrCreateData
(String string) getType()
int
int
void
protected void
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
-
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
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
-
Reset
public static void Reset() -
getType
-
onBeforeEmpty
protected void onBeforeEmpty()- Overrides:
onBeforeEmpty
in classAsset
-