Rabbit Escape  2017-01-14_18:33:47_+0000__(tag:_v0.10.1)
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
rabbitescape.engine.BehaviourTools Class Reference
Collaboration diagram for rabbitescape.engine.BehaviourTools:
Collaboration graph
[legend]

Public Member Functions

 BehaviourTools (Rabbit rabbit, World world)
 
ChangeDescription.State rl (ChangeDescription.State rightState, ChangeDescription.State leftState)
 
boolean pickUpToken (Token.Type type)
 
boolean rabbitIsFalling ()
 
boolean rabbitIsClimbing ()
 
boolean pickUpToken (Token.Type type, boolean evenIfNotOnGround)
 
Block blockHere ()
 
Block blockNext ()
 
Block blockBelow ()
 
Block block2Below ()
 
Block blockBelowNext ()
 
Block blockAbove ()
 
Block blockAboveNext ()
 
boolean isWall (Block block)
 
boolean isRoof (Block block)
 
boolean isOnSlopeStateUnreliable ()
 
boolean isFlat (Block block)
 
boolean isOnUpSlope ()
 
boolean isCresting ()
 
boolean isValleying ()
 
boolean hereIsUpSlope ()
 
boolean isUpSlope (Block block)
 
boolean isOnDownSlope ()
 
boolean isDownSlope (Block block)
 
int nextX ()
 
int nextY ()
 
boolean blockHereJustRemoved ()
 A rabbit may be on a slope block as a digger or basher removes it. This is here to make sure they fall. More...
 

Static Public Member Functions

static boolean shapeEquals (Block b, Block.Shape s)
 
static boolean isRightRiseSlope (Block b)
 
static boolean isLeftRiseSlope (Block b)
 
static boolean isSlope (Block b)
 
static boolean isBridge (Block b)
 
static boolean isSolid (Block block)
 
static boolean s_isFlat (Block block)
 
static boolean isSlopeNotBridge (Block b)
 

Public Attributes

final Rabbit rabbit
 
final World world
 

Private Member Functions

boolean onGround ()
 
boolean goingUpSlope ()
 
boolean hereIsDownSlope ()
 

Constructor & Destructor Documentation

rabbitescape.engine.BehaviourTools.BehaviourTools ( Rabbit  rabbit,
World  world 
)

Member Function Documentation

Block rabbitescape.engine.BehaviourTools.block2Below ( )
Block rabbitescape.engine.BehaviourTools.blockAbove ( )
Block rabbitescape.engine.BehaviourTools.blockAboveNext ( )
Block rabbitescape.engine.BehaviourTools.blockBelow ( )
Block rabbitescape.engine.BehaviourTools.blockBelowNext ( )
Block rabbitescape.engine.BehaviourTools.blockHere ( )
boolean rabbitescape.engine.BehaviourTools.blockHereJustRemoved ( )

A rabbit may be on a slope block as a digger or basher removes it. This is here to make sure they fall.

Block rabbitescape.engine.BehaviourTools.blockNext ( )
boolean rabbitescape.engine.BehaviourTools.goingUpSlope ( )
private
boolean rabbitescape.engine.BehaviourTools.hereIsDownSlope ( )
private
boolean rabbitescape.engine.BehaviourTools.hereIsUpSlope ( )
static boolean rabbitescape.engine.BehaviourTools.isBridge ( Block  b)
static
boolean rabbitescape.engine.BehaviourTools.isCresting ( )

Check if rabbit is changing from an up slope directly to a down slope.

boolean rabbitescape.engine.BehaviourTools.isDownSlope ( Block  block)
boolean rabbitescape.engine.BehaviourTools.isFlat ( Block  block)
static boolean rabbitescape.engine.BehaviourTools.isLeftRiseSlope ( Block  b)
static
boolean rabbitescape.engine.BehaviourTools.isOnDownSlope ( )
boolean rabbitescape.engine.BehaviourTools.isOnSlopeStateUnreliable ( )
boolean rabbitescape.engine.BehaviourTools.isOnUpSlope ( )
static boolean rabbitescape.engine.BehaviourTools.isRightRiseSlope ( Block  b)
static
boolean rabbitescape.engine.BehaviourTools.isRoof ( Block  block)
static boolean rabbitescape.engine.BehaviourTools.isSlope ( Block  b)
static
static boolean rabbitescape.engine.BehaviourTools.isSlopeNotBridge ( Block  b)
static
static boolean rabbitescape.engine.BehaviourTools.isSolid ( Block  block)
static
boolean rabbitescape.engine.BehaviourTools.isUpSlope ( Block  block)
boolean rabbitescape.engine.BehaviourTools.isValleying ( )

Check if rabbit is changing from a down slope directly to an up slope.

boolean rabbitescape.engine.BehaviourTools.isWall ( Block  block)
int rabbitescape.engine.BehaviourTools.nextX ( )
int rabbitescape.engine.BehaviourTools.nextY ( )
boolean rabbitescape.engine.BehaviourTools.onGround ( )
private
boolean rabbitescape.engine.BehaviourTools.pickUpToken ( Token.Type  type)
boolean rabbitescape.engine.BehaviourTools.pickUpToken ( Token.Type  type,
boolean  evenIfNotOnGround 
)

Checks for the presence of a token. Removes token from the the world and returns true if a token is being picked up.

boolean rabbitescape.engine.BehaviourTools.rabbitIsClimbing ( )
boolean rabbitescape.engine.BehaviourTools.rabbitIsFalling ( )
ChangeDescription.State rabbitescape.engine.BehaviourTools.rl ( ChangeDescription.State  rightState,
ChangeDescription.State  leftState 
)
static boolean rabbitescape.engine.BehaviourTools.s_isFlat ( Block  block)
static
static boolean rabbitescape.engine.BehaviourTools.shapeEquals ( Block  b,
Block.Shape  s 
)
static

Member Data Documentation

final Rabbit rabbitescape.engine.BehaviourTools.rabbit
final World rabbitescape.engine.BehaviourTools.world

The documentation for this class was generated from the following file: