|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.b3dgs.lionengine.game.DefaultInstruction
public class DefaultInstruction
Allow to decode informations from a file, in order to fill some player data.
Configurable
Constructor Summary | |
---|---|
DefaultInstruction()
Create a new instruction decoder. |
Method Summary | |
---|---|
Animation |
decodeAnim(java.lang.String line)
Get the animation instruction, delimited by {start-end} (speed) <reverse> |repeat| |
boolean |
decodeBool(java.lang.String line)
Get the boolean instruction, delimited by [true] |
CollisionType |
decodeColl(java.lang.String line)
Get the collision instruction, delimited by {pattern|start-end} |
CollisionArea |
decodeCollArea(java.lang.String line)
Get the collision area instruction, delimited by [width*height,x;y] |
float |
decodeFloat(java.lang.String line)
Get the float instruction value, delimited by (1.5) |
Range |
decodeRange(java.lang.String line)
Get the collision instruction, delimited by {pattern|start-end} |
SkillData |
decodeSkill(java.lang.String line)
Get skill data description, delimited by "name" <desc> (icon) |
java.lang.String |
decodeStr(java.lang.String line)
Get the string instruction, delimited by "ABCDEF" |
java.lang.String |
getName(java.lang.String line)
Get the instruction name, delimited by #NAME# |
java.lang.String |
getType(java.lang.String line)
Get the instruction type, delimited by =TYPE= |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultInstruction()
Method Detail |
---|
public java.lang.String getType(java.lang.String line)
line
- current line to check.
public java.lang.String getName(java.lang.String line)
line
- current line to check.
public java.lang.String decodeStr(java.lang.String line)
line
- current line to check.
public boolean decodeBool(java.lang.String line)
line
- current line to check.
public float decodeFloat(java.lang.String line)
line
- current line to check.
public Animation decodeAnim(java.lang.String line)
line
- current line to check.
public CollisionType decodeColl(java.lang.String line)
line
- current line to check.
public CollisionArea decodeCollArea(java.lang.String line)
line
- current line to check.
public Range decodeRange(java.lang.String line)
line
- current line to check.
public SkillData decodeSkill(java.lang.String line)
line
- current line to check.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |