org.jdesktop.wonderland.client.jme
Class JmeClientMain

java.lang.Object
  extended by org.jdesktop.wonderland.client.jme.JmeClientMain

public class JmeClientMain
extends java.lang.Object

Author:
Ronny Standtke

Field Summary
static java.lang.String SERVER_URL_PROP
           
 
Constructor Summary
JmeClientMain(java.lang.String[] args)
          creates a new JmeClientMain
 
Method Summary
 boolean getAutoReconnect()
          Return whether or not we should auto-reconnect on disconnect
static MainFrame getFrame()
          Returns the frame of the Wonderland client window.
protected  java.net.URL getPropsURL()
          returns the properties URL
 void gotoLocation(java.lang.String serverURL, com.jme.math.Vector3f translation, com.jme.math.Quaternion look)
          Move the client to the given location
protected  void loadProperties(java.net.URL propsURL)
          Load system properties and properties from the named file
protected  void loadServer(java.lang.String serverURL)
           
protected  void loadServer(java.lang.String serverURL, com.jme.math.Vector3f translation, com.jme.math.Quaternion look)
           
protected  void logout()
          logs out
static void main(java.lang.String[] args)
           
 void setAutoReconnect(boolean autoReconnect)
          Set whether or not we should auto-reconnect on disconnect
static void setFrame(MainFrame frame)
          Set the main frame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER_URL_PROP

public static final java.lang.String SERVER_URL_PROP
See Also:
Constant Field Values
Constructor Detail

JmeClientMain

public JmeClientMain(java.lang.String[] args)
creates a new JmeClientMain

Parameters:
args - the command line arguments
Method Detail

getAutoReconnect

public boolean getAutoReconnect()
Return whether or not we should auto-reconnect on disconnect

Returns:
true if auto reconnect is enabled, or false if not

setAutoReconnect

public void setAutoReconnect(boolean autoReconnect)
Set whether or not we should auto-reconnect on disconnect

Parameters:
autoReconnect - true to reconnect automatically, or false not to

gotoLocation

public void gotoLocation(java.lang.String serverURL,
                         com.jme.math.Vector3f translation,
                         com.jme.math.Quaternion look)
                  throws java.io.IOException
Move the client to the given location

Parameters:
serverURL - the url of the server to go to, or null to stay on the current server
translation - the translation
look - the direction to look in, or null to look in the default direction
Throws:
java.io.IOException - if there is an error going to the new location

loadServer

protected void loadServer(java.lang.String serverURL)
                   throws java.io.IOException
Throws:
java.io.IOException

loadServer

protected void loadServer(java.lang.String serverURL,
                          com.jme.math.Vector3f translation,
                          com.jme.math.Quaternion look)
                   throws java.io.IOException
Throws:
java.io.IOException

logout

protected void logout()
logs out


getPropsURL

protected java.net.URL getPropsURL()
returns the properties URL

Returns:
the properties URL

main

public static void main(java.lang.String[] args)
Parameters:
args - the command line arguments

getFrame

public static MainFrame getFrame()
Returns the frame of the Wonderland client window.

Returns:
the frame of the Wonderland client window.

setFrame

public static void setFrame(MainFrame frame)
Set the main frame

Parameters:
frame - the new main frame

loadProperties

protected void loadProperties(java.net.URL propsURL)
Load system properties and properties from the named file

Parameters:
propsURL - the URL of the properties file to load


Open Wonderland - http://openwonderland.org