com.threerings.tudey.config
Class PaintableConfig.Case

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

public static class PaintableConfig.Case
extends DeepObject
implements Exportable

Represents a single case.


Field Summary
 boolean e
          The constraints in each direction.
 boolean n
          The constraints in each direction.
 boolean ne
          The constraints in each direction.
 boolean nw
          The constraints in each direction.
 boolean s
          The constraints in each direction.
 boolean se
          The constraints in each direction.
 boolean sw
          The constraints in each direction.
 PaintableConfig.Tile[] tiles
          The tiles for the case.
 boolean w
          The constraints in each direction.
 
Constructor Summary
PaintableConfig.Case()
           
 
Method Summary
 int getRotations(int pattern)
          Returns a bit set containing the rotations of this case that match the specified pattern.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the cases's update references to the provided set.
 void invalidate()
          Invalidates any cached data.
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

n

@Editable(hgroup="d")
public boolean n
The constraints in each direction.


nw

@Editable(hgroup="d")
public boolean nw
The constraints in each direction.


w

@Editable(hgroup="d")
public boolean w
The constraints in each direction.


sw

@Editable(hgroup="d")
public boolean sw
The constraints in each direction.


s

@Editable(hgroup="d")
public boolean s
The constraints in each direction.


se

@Editable(hgroup="d")
public boolean se
The constraints in each direction.


e

@Editable(hgroup="d")
public boolean e
The constraints in each direction.


ne

@Editable(hgroup="d")
public boolean ne
The constraints in each direction.


tiles

@Editable(weight=1.0)
public PaintableConfig.Tile[] tiles
The tiles for the case.

Constructor Detail

PaintableConfig.Case

public PaintableConfig.Case()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Adds the cases's update references to the provided set.


getRotations

public int getRotations(int pattern)
Returns a bit set containing the rotations of this case that match the specified pattern.


invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.