playn.java
Class JavaPlatform
java.lang.Object
playn.core.AbstractPlatform
playn.java.JavaPlatform
- All Implemented Interfaces:
- Platform
public class JavaPlatform
- extends AbstractPlatform
|
Constructor Summary |
JavaPlatform(float scaleFactor,
boolean headless)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaPlatform
public JavaPlatform(float scaleFactor,
boolean headless)
register
public static JavaPlatform register()
register
public static JavaPlatform register(float scaleFactor)
registerHeadless
public static JavaPlatform registerHeadless()
setTitle
public void setTitle(String title)
- Sets the title of the window.
- Parameters:
title - the window title
type
public Platform.Type type()
audio
public playn.java.JavaAudio audio()
graphics
public JavaGraphics graphics()
json
public Json json()
keyboard
public Keyboard keyboard()
net
public Net net()
pointer
public Pointer pointer()
mouse
public Mouse mouse()
touch
public Touch touch()
storage
public Storage storage()
analytics
public Analytics analytics()
assets
public JavaAssets assets()
regularExpression
public RegularExpression regularExpression()
random
public float random()
time
public double time()
openURL
public void openURL(String url)
run
public void run(Game game)
Copyright © 2012. All Rights Reserved.