|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jtgl.gaming.Sequence
public final class Sequence
Stores a sequence of values (such as keyFrames of a Sprite, or time-frames,etc..) and provides various "walks" such as ping-pong,reverse or random.
Field Summary | |
---|---|
static int |
DEFAULT
|
static int |
PING_PONG
|
static int |
RANDOM
|
static int |
REVERSE
|
Constructor Summary | |
---|---|
Sequence()
Creates a new instance of Sequence |
|
Sequence(int[] sequence)
Creates a new instance of Sequence |
|
Sequence(int[] sequence,
int mode)
Creates a new instance of Sequence |
|
Sequence(int a,
int b)
Creates a new instance of Sequence |
|
Sequence(int a,
int b,
int mode)
Creates a new instance of Sequence |
Method Summary | |
---|---|
int |
getFrame()
|
int |
getMode()
|
int[] |
getSequenceArray()
|
int |
getSequenceLength()
|
int |
nextFrame()
|
void |
setExpansion(int expansion)
|
void |
setFrame(int sequenceIndex)
|
void |
setMode(int mode)
|
void |
setSequence(int[] newSequence)
|
void |
setSequence(int a,
int b)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT
public static final int REVERSE
public static final int PING_PONG
public static final int RANDOM
Constructor Detail |
---|
public Sequence()
public Sequence(int[] sequence, int mode)
public Sequence(int a, int b, int mode)
public Sequence(int[] sequence)
public Sequence(int a, int b)
Method Detail |
---|
public void setSequence(int a, int b)
public void setSequence(int[] newSequence)
public int[] getSequenceArray()
public int getMode()
public void setMode(int mode)
public void setExpansion(int expansion)
public void setFrame(int sequenceIndex)
public int getFrame()
public int getSequenceLength()
public int nextFrame()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |