com.cliffblaster.game.level.tile
Class PlainDuotextureTile

java.lang.Object
  extended by com.cliffblaster.game.level.tile.Tile
      extended by com.cliffblaster.game.level.tile.PlainDuotextureTile
Direct Known Subclasses:
ElevatorTile

public class PlainDuotextureTile
extends Tile

Class for any tile with top and bottom textures differing from their sides

Author:
Vulpovile

Field Summary
 
Fields inherited from class com.cliffblaster.game.level.tile.Tile
BACK, bookshelf, bookshelf_empty, BOTTOM, bricks, canTick, canvas_black, canvas_blue, canvas_cyan, canvas_green, canvas_grey, canvas_indigo, canvas_lightblue, canvas_lime, canvas_magenta, canvas_orange, canvas_pink, canvas_red, canvas_turquoise, canvas_violet, canvas_white, canvas_yellow, coalblock, coalore, conveyor, dandelion, dirt, dislodgerblock, dynamite, elevator, FRONT, glass, goldblock, goldore, grass, gravel, id, ironblock, ironore, IS_LIQUID, lava, LAVA, leaves, LEFT, liquidType, log, MOVING, obsidian, plant, RIGHT, rose, sand, siding, sponge, STILL, stilllava, stillwater, stone, stonebrick, texCoord, tiles, TOP, trampoline, water, WATER, woodplank
 
Constructor Summary
protected PlainDuotextureTile(int id, int texCoord1, int texCoord2)
           
 
Method Summary
 int getTextureFromFace(int face)
          Get the two different textures depending on the face
 
Methods inherited from class com.cliffblaster.game.level.tile.Tile
blocksLight, canExplode, canRenderFace, entityHit, flow, getFlowDivider, getStepSound, getTextureFromFace, getTileAABB, getTileRenderAABB, getTitle, glows, isMechanical, isOpaque, mayPick, onDestroy, onExplode, onNeighbourNotify, onNeighbourNotify, onPlace, onRemove, render, renderBackFace, renderFace, renderUnbound, setShape, setStepSound, setTick, setTitle, tick
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainDuotextureTile

protected PlainDuotextureTile(int id,
                              int texCoord1,
                              int texCoord2)
Parameters:
id -
texCoord1 -
texCoord2 -
Method Detail

getTextureFromFace

public int getTextureFromFace(int face)
Get the two different textures depending on the face

Overrides:
getTextureFromFace in class Tile
Returns:
texCoord