com.cliffblaster.game.level.tile
Class ElevatorTile

java.lang.Object
  extended by com.cliffblaster.game.level.tile.Tile
      extended by com.cliffblaster.game.level.tile.PlainDuotextureTile
          extended by com.cliffblaster.game.level.tile.ElevatorTile

public class ElevatorTile
extends PlainDuotextureTile

Trampoline tile class

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
ElevatorTile(int i, int tex1, int tex2)
           
 
Method Summary
 void entityHit(com.cliffblaster.game.level.Level level, int x, int y, int z, com.cliffblaster.game.entity.Entity entity, int face)
          Elevator physics, moves entity upwards
 boolean isBlocked(com.cliffblaster.game.level.Level level, int x, int y, int z)
           
 boolean isMechanical()
           
 boolean isOpaque()
           
protected  void renderFace(com.cliffblaster.game.level.Level level, int face, float x, float y, float z)
          Renders the given face
 
Methods inherited from class com.cliffblaster.game.level.tile.PlainDuotextureTile
getTextureFromFace
 
Methods inherited from class com.cliffblaster.game.level.tile.Tile
blocksLight, canExplode, canRenderFace, flow, getFlowDivider, getStepSound, getTextureFromFace, getTileAABB, getTileRenderAABB, getTitle, glows, mayPick, onDestroy, onExplode, onNeighbourNotify, onNeighbourNotify, onPlace, onRemove, render, renderBackFace, 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

ElevatorTile

public ElevatorTile(int i,
                    int tex1,
                    int tex2)
Method Detail

isOpaque

public boolean isOpaque()
Overrides:
isOpaque in class Tile

renderFace

protected void renderFace(com.cliffblaster.game.level.Level level,
                          int face,
                          float x,
                          float y,
                          float z)
Description copied from class: Tile
Renders the given face

Overrides:
renderFace in class Tile

entityHit

public void entityHit(com.cliffblaster.game.level.Level level,
                      int x,
                      int y,
                      int z,
                      com.cliffblaster.game.entity.Entity entity,
                      int face)
Elevator physics, moves entity upwards

Overrides:
entityHit in class Tile
Parameters:
level -
x -
y -
z -
entity -
face -

isMechanical

public boolean isMechanical()
Overrides:
isMechanical in class Tile

isBlocked

public boolean isBlocked(com.cliffblaster.game.level.Level level,
                         int x,
                         int y,
                         int z)