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
static class JavaPlatform.Config
          Defines JavaPlatform configurable parameters.
 
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(JavaPlatform.Config config)
           
 
Method Summary
 Analytics analytics()
           
 JavaAssets assets()
           
 playn.java.JavaAudio audio()
           
 JavaGraphics graphics()
           
 void invokeAsync(Runnable action)
           
 Json json()
           
 Keyboard keyboard()
           
 Mouse mouse()
           
 Net net()
           
 void openURL(String url)
           
 Pointer pointer()
           
 float random()
           
static JavaPlatform register()
          Registers the Java platform with a default configuration.
static JavaPlatform register(float scaleFactor)
          Deprecated. Use register(Config).
static JavaPlatform register(JavaPlatform.Config config)
          Registers the Java platform with the specified configuration.
static JavaPlatform registerHeadless()
          Deprecated. Use register(Config).
 RegularExpression regularExpression()
           
 void run(Game game)
           
 void setPropagateEvents(boolean propagate)
           
 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, notifyFailure, notifySuccess, 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(JavaPlatform.Config config)
Method Detail

register

public static JavaPlatform register()
Registers the Java platform with a default configuration.


register

public static JavaPlatform register(JavaPlatform.Config config)
Registers the Java platform with the specified configuration.


register

@Deprecated
public static JavaPlatform register(float scaleFactor)
Deprecated. Use register(Config).


registerHeadless

@Deprecated
public static JavaPlatform registerHeadless()
Deprecated. Use register(Config).


setTitle

public void setTitle(String title)
Sets the title of the window.

Parameters:
title - the window title

invokeAsync

public void invokeAsync(Runnable action)
Overrides:
invokeAsync in class AbstractPlatform

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)

setPropagateEvents

public void setPropagateEvents(boolean propagate)

run

public void run(Game game)


Copyright © 2012. All Rights Reserved.