public class EngineView extends GameView
Constructor and Description |
---|
EngineView() |
Modifier and Type | Method and Description |
---|---|
void |
addInputProcessor(com.badlogic.gdx.InputProcessor processor)
Add an inputProcessor to the views.
|
void |
disposeMusic() |
void |
focusInputProcessor(com.badlogic.gdx.InputProcessor processor)
Deactivates every input processor but one.
|
int |
getCursor()
returns the current cursor
|
com.badlogic.gdx.graphics.g2d.BitmapFont |
getFont() |
float |
getMusicLoudness() |
com.badlogic.gdx.scenes.scene2d.ui.Skin |
getSkin() |
void |
init()
initializes the view.
|
boolean |
isMusicPlaying()
Check if music is playing
|
void |
resetInputProcessors()
Resets the input processors.
|
void |
setCursor(int id) |
void |
setMusic(java.lang.String path)
Loads new music and plays them if a loudness is set.
|
void |
setMusicLoudness(float loudness) |
void |
unfocusInputProcessor()
Reset that every input processor works again.
|
addCamera, classInit, dispose, drawString, drawString, drawText, enter, exit, getBatch, getCameras, getController, getEqualizationScale, getLoadMenu, getMinimap, getOrientation, getShapeRenderer, getStage, init, isInitalized, onEnter, render, resize, screenToGame, screenToGameBasic, screenXtoView, screenYtoView, setMinimap, setOrientation, update, viewToScreenX, viewToScreenY
debugRendering, getShader, loadShaders
public void init()
View
public void resetInputProcessors()
public void addInputProcessor(com.badlogic.gdx.InputProcessor processor)
processor
- public void focusInputProcessor(com.badlogic.gdx.InputProcessor processor)
processor
- the processor you want to "filter"unfocusInputProcessor()
public void unfocusInputProcessor()
focusInputProcessor(com.badlogic.gdx.InputProcessor)
public com.badlogic.gdx.graphics.g2d.BitmapFont getFont()
public com.badlogic.gdx.scenes.scene2d.ui.Skin getSkin()
public void setCursor(int id)
id
- 0 default, 1 pointer, 2 dragpublic int getCursor()
public float getMusicLoudness()
public void setMusicLoudness(float loudness)
loudness
- The volume must be given in the range [0,1] with 0 being silent and 1 being the maximum volume. musicLoudness < 0 pauses it andc and > 0 starts itpublic void setMusic(java.lang.String path)
path
- public boolean isMusicPlaying()
public void disposeMusic()