Package zombie.asset
Class Asset
java.lang.Object
zombie.asset.Asset
- Direct Known Subclasses:
AiSceneAsset
,AnimationAsset
,AnimNodeAsset
,ClothingItem
,Model
,ModelMesh
,Texture
,TextureID
,WorldMapData
public abstract class Asset
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Asset.ObserverCallback
static class
Asset.State
-
Field Summary
Fields Modifier and Type Field Description protected AssetManager
m_asset_manager
-
Constructor Summary
Constructors Modifier Constructor Description protected
Asset(AssetPath assetPath, AssetManager assetManager)
-
Method Summary
Modifier and Type Method Description void
addDependency(Asset asset)
AssetManager
getAssetManager()
Asset.ObserverCallback
getObserverCb()
AssetPath
getPath()
int
getRefCount()
Asset.State
getState()
abstract AssetType
getType()
boolean
isEmpty()
boolean
isFailure()
boolean
isReady()
protected void
onBeforeEmpty()
protected void
onBeforeReady()
void
onCreated(Asset.State state)
void
removeDependency(Asset asset)
void
setAssetParams(AssetManager.AssetParams assetParams)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
m_asset_manager
-
-
Constructor Details
-
Asset
-
-
Method Details
-
getType
-
getState
-
isEmpty
public boolean isEmpty() -
isReady
public boolean isReady() -
isFailure
public boolean isFailure() -
onCreated
-
getRefCount
public int getRefCount() -
getObserverCb
-
getPath
-
getAssetManager
-
onBeforeReady
protected void onBeforeReady() -
onBeforeEmpty
protected void onBeforeEmpty() -
addDependency
-
removeDependency
-
setAssetParams
-