com.threerings.tudey.config
Class WallConfig.Original

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.config.WallConfig.Implementation
          extended by com.threerings.tudey.config.WallConfig.Original
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
WallConfig

public static class WallConfig.Original
extends WallConfig.Implementation

An original wall implementation.


Field Summary
 PaintableConfig.Case[] cases
          The wall cases.
 ConfigReference<GroundConfig> ground
          The ground underlying the wall.
 
Constructor Summary
WallConfig.Original()
           
 
Method Summary
 TudeySceneModel.TileEntry createWall(ConfigManager cfgmgr, IntTuple caseRotations, int maxWidth, int maxHeight, int elevation)
          Creates a new wall tile with the supplied case/rotations and maximum dimensions.
 WallConfig.Original getOriginal(ConfigManager cfgmgr)
          Returns a reference to the config's underlying original implementation.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the implementation's update references to the provided set.
 IntTuple getWallCaseRotations(int pattern)
          Determines the case and allowed rotations of the wall tile that matches the specified pattern.
 void invalidate()
          Invalidates any cached data.
 boolean isWall(TudeySceneModel.TileEntry entry, int elevation)
          Checks whether the specified entry matches any wall case.
 boolean isWall(TudeySceneModel.TileEntry entry, IntTuple caseRotations, int elevation)
          Checks whether the specified entry qualifies as a wall tile.
 
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

ground

@Editable(nullable=true)
public ConfigReference<GroundConfig> ground
The ground underlying the wall.


cases

@Editable
public PaintableConfig.Case[] cases
The wall cases.

Constructor Detail

WallConfig.Original

public WallConfig.Original()
Method Detail

isWall

public boolean isWall(TudeySceneModel.TileEntry entry,
                      int elevation)
Checks whether the specified entry matches any wall case.


getWallCaseRotations

public IntTuple getWallCaseRotations(int pattern)
Determines the case and allowed rotations of the wall tile that matches the specified pattern.


isWall

public boolean isWall(TudeySceneModel.TileEntry entry,
                      IntTuple caseRotations,
                      int elevation)
Checks whether the specified entry qualifies as a wall tile.


createWall

public TudeySceneModel.TileEntry createWall(ConfigManager cfgmgr,
                                            IntTuple caseRotations,
                                            int maxWidth,
                                            int maxHeight,
                                            int elevation)
Creates a new wall tile with the supplied case/rotations and maximum dimensions.


getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: WallConfig.Implementation
Adds the implementation's update references to the provided set.

Overrides:
getUpdateReferences in class WallConfig.Implementation

getOriginal

public WallConfig.Original getOriginal(ConfigManager cfgmgr)
Description copied from class: WallConfig.Implementation
Returns a reference to the config's underlying original implementation.

Specified by:
getOriginal in class WallConfig.Implementation

invalidate

public void invalidate()
Description copied from class: WallConfig.Implementation
Invalidates any cached data.

Overrides:
invalidate in class WallConfig.Implementation


Copyright © 2011. All Rights Reserved.