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 AssetType
final HashMap
<Integer, WorldMapCell> final ArrayList
<WorldMapCell> int
int
int
int
static final HashMap
<String, WorldMapData> Fields inherited from class zombie.asset.Asset
isDefered, m_asset_manager
-
Constructor Summary
ConstructorsConstructorDescriptionWorldMapData
(AssetPath path, AssetManager manager) WorldMapData
(AssetPath path, AssetManager manager, AssetManager.AssetParams params) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
getCell
(int x, int y) int
int
static WorldMapData
getOrCreateData
(String fileName) getType()
int
int
void
hitTest
(float x, float y, ArrayList<WorldMapFeature> features) 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
-
-
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
-
onBeforeEmpty
protected void onBeforeEmpty()- Overrides:
onBeforeEmpty
in classAsset
-