public class CharacterGeneration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private com.badlogic.gdx.graphics.g2d.Sprite |
backgroundImage |
private com.badlogic.gdx.graphics.g2d.SpriteBatch |
batch |
private com.badlogic.gdx.graphics.OrthographicCamera |
camera
This is the camera for the screen
|
private java.lang.String[] |
costumeList |
private java.util.ArrayList<com.badlogic.gdx.graphics.g2d.Sprite> |
costumes |
private int |
currentCostumePointer |
private GameMain |
game |
private static int |
maxTraits |
com.badlogic.gdx.scenes.scene2d.Stage |
stage |
private java.util.ArrayList<java.lang.String> |
traits |
private com.badlogic.gdx.scenes.scene2d.ui.Skin |
uiSkin |
Constructor and Description |
---|
CharacterGeneration(GameMain game) |
Modifier and Type | Method and Description |
---|---|
private void |
initCostumeSelection(com.badlogic.gdx.scenes.scene2d.Stage stage)
Initialises the costume generation
|
private com.badlogic.gdx.scenes.scene2d.Stage |
initGeneration()
Initialises and places the generation screen GUI
|
com.badlogic.gdx.scenes.scene2d.ui.Skin |
initSkin()
Initialises the skin used across the journal
|
void |
renderMain()
Renders the character generation screen
|
public com.badlogic.gdx.scenes.scene2d.Stage stage
private com.badlogic.gdx.scenes.scene2d.ui.Skin uiSkin
private com.badlogic.gdx.graphics.g2d.Sprite backgroundImage
private com.badlogic.gdx.graphics.g2d.SpriteBatch batch
private java.util.ArrayList<java.lang.String> traits
private static int maxTraits
private GameMain game
private java.util.ArrayList<com.badlogic.gdx.graphics.g2d.Sprite> costumes
private java.lang.String[] costumeList
private int currentCostumePointer
private com.badlogic.gdx.graphics.OrthographicCamera camera
public CharacterGeneration(GameMain game)
private void initCostumeSelection(com.badlogic.gdx.scenes.scene2d.Stage stage)
stage
- private com.badlogic.gdx.scenes.scene2d.Stage initGeneration()
public com.badlogic.gdx.scenes.scene2d.ui.Skin initSkin()
public void renderMain()