public class GameFactory
extends AbstractGameFactory
produces Games. you may want to subclass this for your own Game, but you may be able use it as-is by passing in your own constructor method
Constructor and Description |
---|
GameFactory(java.lang.String name,
kotlin.jvm.functions.Function1<? super uk.co.electronstudio.retrowar.screens.GameSession,? extends uk.co.electronstudio.retrowar.Game> createGame,
com.badlogic.gdx.graphics.Texture i)
produces Games. you may want to subclass this for your own Game, but you may be able
use it as-is by passing in your own constructor method
|
Modifier and Type | Method and Description |
---|---|
Game |
create(GameSession session) |
kotlin.jvm.functions.Function1<uk.co.electronstudio.retrowar.screens.GameSession,uk.co.electronstudio.retrowar.Game> |
getCreateGame() |
java.lang.String |
getDescription()
Description displayed on menu
|
com.badlogic.gdx.graphics.Texture |
getI() |
com.badlogic.gdx.graphics.Texture |
getImage()
Texture screenshot or logo to display on menu
|
create, createWithSimpleSettings, createWithTournamentSettings, getDescription, getImage, getLevel, getLevelImages, getLevels, getName, getOptions, getPathPrefix, getShowOnGamesMenu, setLevel, setShowOnGamesMenu
public GameFactory(java.lang.String name, kotlin.jvm.functions.Function1<? super uk.co.electronstudio.retrowar.screens.GameSession,? extends uk.co.electronstudio.retrowar.Game> createGame, com.badlogic.gdx.graphics.Texture i)
produces Games. you may want to subclass this for your own Game, but you may be able use it as-is by passing in your own constructor method
public java.lang.String getDescription()
Description displayed on menu
public com.badlogic.gdx.graphics.Texture getImage()
Texture screenshot or logo to display on menu
public Game create(GameSession session)
public kotlin.jvm.functions.Function1<uk.co.electronstudio.retrowar.screens.GameSession,uk.co.electronstudio.retrowar.Game> getCreateGame()
public com.badlogic.gdx.graphics.Texture getI()