public class AbstractAssetSystem
extends com.artemis.BaseSystem
| Modifier and Type | Field and Description |
|---|---|
protected float |
sfxVolume |
HashMap<String,com.badlogic.gdx.audio.Sound> |
sounds |
HashMap<String,com.badlogic.gdx.graphics.g2d.Animation> |
sprites |
com.badlogic.gdx.graphics.Texture |
tileset |
| Constructor and Description |
|---|
AbstractAssetSystem() |
AbstractAssetSystem(String filename) |
| Modifier and Type | Method and Description |
|---|---|
com.badlogic.gdx.graphics.g2d.Animation |
add(String identifier,
int x1,
int y1,
int w,
int h,
int repeatX) |
com.badlogic.gdx.graphics.g2d.Animation |
add(String identifier,
int x1,
int y1,
int w,
int h,
int repeatX,
int repeatY) |
com.badlogic.gdx.graphics.g2d.Animation |
add(String identifier,
int x1,
int y1,
int w,
int h,
int repeatX,
int repeatY,
com.badlogic.gdx.graphics.Texture texture) |
com.badlogic.gdx.graphics.g2d.Animation |
add(String identifier,
int x1,
int y1,
int w,
int h,
int repeatX,
int repeatY,
com.badlogic.gdx.graphics.Texture texture,
float frameDuration) |
void |
dispose() |
com.badlogic.gdx.graphics.g2d.Animation |
get(String identifier) |
com.badlogic.gdx.audio.Sound |
getSfx(String identifier) |
protected void |
loadSounds(String[] soundnames) |
void |
playSfx(String name) |
protected void |
processSystem() |
public com.badlogic.gdx.graphics.Texture tileset
protected float sfxVolume
public AbstractAssetSystem()
public AbstractAssetSystem(String filename)
public com.badlogic.gdx.graphics.g2d.Animation get(String identifier)
public com.badlogic.gdx.audio.Sound getSfx(String identifier)
public com.badlogic.gdx.graphics.g2d.Animation add(String identifier, int x1, int y1, int w, int h, int repeatX)
public com.badlogic.gdx.graphics.g2d.Animation add(String identifier, int x1, int y1, int w, int h, int repeatX, int repeatY)
public com.badlogic.gdx.graphics.g2d.Animation add(String identifier, int x1, int y1, int w, int h, int repeatX, int repeatY, com.badlogic.gdx.graphics.Texture texture)
public com.badlogic.gdx.graphics.g2d.Animation add(String identifier, int x1, int y1, int w, int h, int repeatX, int repeatY, com.badlogic.gdx.graphics.Texture texture, float frameDuration)
protected void processSystem()
processSystem in class com.artemis.BaseSystemprotected void loadSounds(String[] soundnames)
public void playSfx(String name)
public void dispose()
dispose in class com.artemis.BaseSystemCopyright © 2017. All rights reserved.