com.threerings.stage.tools.editor
Class EditorApp

java.lang.Object
  extended by com.threerings.stage.tools.editor.EditorApp
All Implemented Interfaces:
Runnable

public class EditorApp
extends Object
implements Runnable

A scene editor application that provides facilities for viewing, editing, and saving the scene templates that comprise a game.


Nested Class Summary
protected  class EditorApp.EditorContextImpl
          The implementation of the EditorContext interface that provides handles to the config and manager objects that offer commonly used services.
 
Field Summary
protected  com.threerings.media.image.ColorPository _colpos
           
protected  com.threerings.cast.bundle.BundledComponentRepository _crepo
           
protected  EditorContext _ctx
           
protected  EditorFrame _frame
           
protected  com.threerings.media.FrameManager _framemgr
           
protected  com.threerings.media.image.ImageManager _imgr
           
protected  KeyboardManager _kbdmgr
           
protected  KeyDispatcher _keydisp
           
protected  MessageManager _msgmgr
           
protected  com.threerings.resource.ResourceManager _rmgr
           
protected  com.threerings.miso.tile.MisoTileManager _tilemgr
           
protected  com.threerings.media.tile.TileSetRepository _tsrepo
           
protected static RuntimeAdjust.BooleanAdjust _viewFullScreen
          A debug hook that toggles debug rendering of traversable tiles.
 
Constructor Summary
EditorApp(String[] args)
          Construct and initialize the EditorApp object.
 
Method Summary
protected  EditorFrame createEditorFrame()
           
protected  void enumerateSceneTypes(List<String> types)
          Derived classes can override this method and add additional scene types.
 void finishInit(String target)
           
static String localDataDir(String subdir)
          Given a subdirectory name (that should correspond to the calling service), returns a file path that can be used to store local data.
static void main(String[] args)
          Instantiate the application object and start it running.
 void run()
          Run the application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_ctx

protected EditorContext _ctx

_frame

protected EditorFrame _frame

_framemgr

protected com.threerings.media.FrameManager _framemgr

_rmgr

protected com.threerings.resource.ResourceManager _rmgr

_imgr

protected com.threerings.media.image.ImageManager _imgr

_tilemgr

protected com.threerings.miso.tile.MisoTileManager _tilemgr

_tsrepo

protected com.threerings.media.tile.TileSetRepository _tsrepo

_colpos

protected com.threerings.media.image.ColorPository _colpos

_msgmgr

protected MessageManager _msgmgr

_kbdmgr

protected KeyboardManager _kbdmgr

_crepo

protected com.threerings.cast.bundle.BundledComponentRepository _crepo

_keydisp

protected KeyDispatcher _keydisp

_viewFullScreen

protected static RuntimeAdjust.BooleanAdjust _viewFullScreen
A debug hook that toggles debug rendering of traversable tiles.

Constructor Detail

EditorApp

public EditorApp(String[] args)
          throws IOException
Construct and initialize the EditorApp object.

Throws:
IOException
Method Detail

finishInit

public void finishInit(String target)

localDataDir

public static String localDataDir(String subdir)
Given a subdirectory name (that should correspond to the calling service), returns a file path that can be used to store local data.


run

public void run()
Run the application.

Specified by:
run in interface Runnable

createEditorFrame

protected EditorFrame createEditorFrame()

enumerateSceneTypes

protected void enumerateSceneTypes(List<String> types)
Derived classes can override this method and add additional scene types.


main

public static void main(String[] args)
Instantiate the application object and start it running.