com.threerings.tudey.config
Class GroundConfig.TransitionCase

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.config.PaintableConfig.Case
          extended by com.threerings.tudey.config.GroundConfig.EdgeCase
              extended by com.threerings.tudey.config.GroundConfig.TransitionCase
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
GroundConfig

public static class GroundConfig.TransitionCase
extends GroundConfig.EdgeCase

Transition edge case.


Field Summary
protected  int[] _opatterns
          Constraint patterns for the other ground for each rotation.
 boolean oe
          The constraints for the other ground.
 boolean on
          The constraints for the other ground.
 boolean one
          The constraints for the other ground.
 boolean onw
          The constraints for the other ground.
 boolean os
          The constraints for the other ground.
 boolean ose
          The constraints for the other ground.
 boolean osw
          The constraints for the other ground.
 ConfigReference<GroundConfig> other
          The "other" ground to which we are transitioning.
 boolean ow
          The constraints for the other ground.
 
Fields inherited from class com.threerings.tudey.config.PaintableConfig.Case
_orientations, _patterns, e, n, ne, nw, s, se, sw, tiles, w
 
Constructor Summary
GroundConfig.TransitionCase()
           
 
Method Summary
protected  int[] getOtherPatterns()
          Gets the cached other pattern rotations.
 int getRotations(TudeySceneModel scene, ConfigReference<GroundConfig> ref, GroundConfig.Original original, int x, int y, int elevation)
          Returns a bit set containing the rotations of this case that match the specified pattern.
 void invalidate()
          Invalidates any cached data.
 
Methods inherited from class com.threerings.tudey.config.PaintableConfig.Case
getOrientations, getPatterns, getRotations, getRotations, getUpdateReferences
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

other

@Editable(nullable=true)
public ConfigReference<GroundConfig> other
The "other" ground to which we are transitioning.


on

@Editable(hgroup="d")
public boolean on
The constraints for the other ground.


onw

@Editable(hgroup="d")
public boolean onw
The constraints for the other ground.


ow

@Editable(hgroup="d")
public boolean ow
The constraints for the other ground.


osw

@Editable(hgroup="d")
public boolean osw
The constraints for the other ground.


os

@Editable(hgroup="d")
public boolean os
The constraints for the other ground.


ose

@Editable(hgroup="d")
public boolean ose
The constraints for the other ground.


oe

@Editable(hgroup="d")
public boolean oe
The constraints for the other ground.


one

@Editable(hgroup="d")
public boolean one
The constraints for the other ground.


_opatterns

@DeepOmit
protected transient int[] _opatterns
Constraint patterns for the other ground for each rotation.

Constructor Detail

GroundConfig.TransitionCase

public GroundConfig.TransitionCase()
Method Detail

getRotations

public int getRotations(TudeySceneModel scene,
                        ConfigReference<GroundConfig> ref,
                        GroundConfig.Original original,
                        int x,
                        int y,
                        int elevation)
Description copied from class: GroundConfig.EdgeCase
Returns a bit set containing the rotations of this case that match the specified pattern.

Overrides:
getRotations in class GroundConfig.EdgeCase

invalidate

public void invalidate()
Description copied from class: PaintableConfig.Case
Invalidates any cached data.

Overrides:
invalidate in class PaintableConfig.Case

getOtherPatterns

protected int[] getOtherPatterns()
Gets the cached other pattern rotations.