|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.b3dgs.lionengine.game.Range
com.b3dgs.lionengine.game.platform.CollisionType
public class CollisionType
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}
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 |
---|
public CollisionType(java.lang.String name, int pattern, int min, int max)
name
- collision name.pattern
- collision pattern number.min
- first tile index number.max
- last tile index number.Method Detail |
---|
public int getPattern()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |