Bandidos
Public Member Functions | Protected Member Functions | List of all members
com.mygdx.game.engine.resources.BaseResource Class Referenceabstract
Inheritance diagram for com.mygdx.game.engine.resources.BaseResource:
com.mygdx.game.engine.resources.BaseAudioResources com.mygdx.game.engine.resources.BaseFontResources com.mygdx.game.engine.resources.BaseTextureResources com.mygdx.game.GameAudioResources com.mygdx.game.GameFontResources com.mygdx.game.GameTextureResources

Public Member Functions

void loadRequest (AssetManager assetManager)
 
abstract void clean ()
 

Protected Member Functions

abstract void load ()
 
AssetManager getAssetManager ()
 

Detailed Description

This base class contains all the basics a Resource class has to have.

Author
Ramses Di Perna

Member Function Documentation

◆ clean()

abstract void com.mygdx.game.engine.resources.BaseResource.clean ( )
abstract

This method will be where all the cleaning of loaded data will be done.

◆ getAssetManager()

AssetManager com.mygdx.game.engine.resources.BaseResource.getAssetManager ( )
protected

Returns the AssetManager which was given to the loadRequest method

Returns

◆ load()

abstract void com.mygdx.game.engine.resources.BaseResource.load ( )
abstractprotected

This method will be where the textures will be loaded by the extending class. The extending class must call the 'loadResource' method for each texture to load.

◆ loadRequest()

void com.mygdx.game.engine.resources.BaseResource.loadRequest ( AssetManager  assetManager)

Gives a load request to the resource so it can give all the data it wants to load into the memory.

Parameters
assetManagerto give all the data to.

The documentation for this class was generated from the following file: