com.b3dgs.lionengine.game.platform
Class CollisionType

java.lang.Object
  extended by com.b3dgs.lionengine.game.Range
      extended by com.b3dgs.lionengine.game.platform.CollisionType

public class CollisionType
extends Range

This represent a collision structure, which is used to know what is the tile collision. Data are usually externally loaded, this way:

 #NAME# = {pattern|firstTile-lastTile}
 

See Also:
DefaultInstruction

Constructor Summary
CollisionType(java.lang.String name, int pattern, int min, int max)
          Create a new collision type.
 
Method Summary
 int getPattern()
          Get pattern number.
 
Methods inherited from class com.b3dgs.lionengine.game.Range
getMax, getMin, getName, setMax, setMin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollisionType

public CollisionType(java.lang.String name,
                     int pattern,
                     int min,
                     int max)
Create a new collision type.

Parameters:
name - collision name.
pattern - collision pattern number.
min - first tile index number.
max - last tile index number.
Method Detail

getPattern

public int getPattern()
Get pattern number.

Returns:
pattern number.