com.threerings.tudey.tools
Class EditorGrid

java.lang.Object
  extended by com.threerings.opengl.util.SimpleRenderable
      extended by com.threerings.opengl.util.SimpleTransformable
          extended by com.threerings.opengl.util.Grid
              extended by com.threerings.tudey.tools.EditorGrid
All Implemented Interfaces:
Compositable, Enqueueable, Tickable

public class EditorGrid
extends Grid
implements Tickable

A special grid that follows the camera around (while staying aligned to the tile grid).


Constructor Summary
EditorGrid(SceneEditor editor)
          Creates a new grid.
 
Method Summary
 int getElevation()
          Returns the elevation of the tile grid.
 Plane getPlane()
          Returns a reference to the grid plane.
 float getZ()
          Returns the z coordinate of the tile grid.
 void setElevation(int elevation)
          Sets the elevation of the grid in tile units.
 void tick(float elapsed)
          Updates the state of this object based on the elapsed time in seconds.
 
Methods inherited from class com.threerings.opengl.util.Grid
getColor
 
Methods inherited from class com.threerings.opengl.util.SimpleTransformable
enqueue, getTransform
 
Methods inherited from class com.threerings.opengl.util.SimpleRenderable
composite, getStates
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorGrid

public EditorGrid(SceneEditor editor)
Creates a new grid.

Method Detail

setElevation

public void setElevation(int elevation)
Sets the elevation of the grid in tile units.


getElevation

public int getElevation()
Returns the elevation of the tile grid.


getZ

public float getZ()
Returns the z coordinate of the tile grid.


getPlane

public Plane getPlane()
Returns a reference to the grid plane.


tick

public void tick(float elapsed)
Description copied from interface: Tickable
Updates the state of this object based on the elapsed time in seconds.

Specified by:
tick in interface Tickable


Copyright © 2011. All Rights Reserved.