playn.java
Class JavaPlatform

java.lang.Object
  extended by playn.core.AbstractPlatform
      extended by playn.java.JavaPlatform
All Implemented Interfaces:
Platform

public class JavaPlatform
extends AbstractPlatform


Nested Class Summary
 
Nested classes/interfaces inherited from interface playn.core.Platform
Platform.Type
 
Field Summary
 
Fields inherited from class playn.core.AbstractPlatform
log, runQueue
 
Constructor Summary
JavaPlatform(float scaleFactor, boolean headless)
           
 
Method Summary
 Analytics analytics()
           
 JavaAssets assets()
           
 playn.java.JavaAudio audio()
           
 JavaGraphics graphics()
           
 Json json()
           
 Keyboard keyboard()
           
 Mouse mouse()
           
 Net net()
           
 void openURL(String url)
           
 Pointer pointer()
           
 float random()
           
static JavaPlatform register()
           
static JavaPlatform register(float scaleFactor)
           
static JavaPlatform registerHeadless()
           
 RegularExpression regularExpression()
           
 void run(Game game)
           
 void setTitle(String title)
          Sets the title of the window.
 Storage storage()
           
 double time()
           
 Touch touch()
           
 Platform.Type type()
           
 
Methods inherited from class playn.core.AbstractPlatform
invokeLater, log, onExit, onPause, onResume, setLifecycleListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaPlatform

public JavaPlatform(float scaleFactor,
                    boolean headless)
Method Detail

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.