Package net.athonedevs.krork
Class Krork
java.lang.Object
net.athonedevs.krork.Krork
- All Implemented Interfaces:
java.lang.Runnable
public class Krork
extends java.lang.Object
implements java.lang.Runnable
-
Field Summary
Fields Modifier and Type Field Description GameCamera
gameCamera
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description KrorkAPI
getAPI()
Display
getDisplay()
static java.lang.String
getGame()
GameCamera
getGameCamera()
int
getHeight()
KeyManager
getKeyManager()
MouseManager
getMouseManager()
static java.lang.String
getVersion()
static int
getVersionNumber()
int
getWidth()
boolean
isRunning()
void
run()
static void
setGame(java.lang.String game)
void
setHeight(int height)
void
setRunning(boolean running)
void
setWidth(int width)
void
start()
void
stop()
-
Field Details
-
Constructor Details
-
Krork
public Krork(java.lang.String game, java.lang.String title, java.awt.Dimension size)The default constructor.- Parameters:
game
- Game nametitle
- Windows titlesize
- Game Size (Dimension)
-
Krork
public Krork(java.lang.String game, java.lang.String title, int width, int height)The default constructor.- Parameters:
game
- Game nametitle
- Windows titlewidth
- Game widthheight
- Game Height
-
-
Method Details
-
getVersion
public static java.lang.String getVersion() -
getVersionNumber
public static int getVersionNumber() -
getGame
public static java.lang.String getGame() -
setGame
public static void setGame(java.lang.String game) -
run
public void run()- Specified by:
run
in interfacejava.lang.Runnable
-
start
public void start() -
stop
public void stop() -
getDisplay
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
isRunning
public boolean isRunning() -
getMouseManager
-
getKeyManager
-
getGameCamera
-
getAPI
-
setWidth
public void setWidth(int width) -
setHeight
public void setHeight(int height) -
setRunning
public void setRunning(boolean running)
-