|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.game.JVirus.Matrix
this class containt the level array. Most variables are public for faster access
Field Summary | |
static int[] |
actionTyp
array with action types. |
int[][] |
bufferMatrix1
buffer array for object fall function |
java.awt.Point |
displayPoint
start point in the Display |
int |
levelNumber
level number in the level list |
char[][] |
matrix
level tiles array |
java.lang.String |
name
name of level |
static int[] |
scoreTab
score for every field. |
Fields inherited from interface org.game.JVirus.IFields |
AMD, AT_ACTION, AT_ANIM, AT_BEAM, AT_EAT, AT_EAT_SOUND1, AT_EAT_SOUND2, AT_END, AT_FAll, AT_HOLD, AT_MOVE, AT_PUSH, AT_WALL, BEAM0, BEAM1, BEAM2, BEAM3, BEAM4, BEAM5, BEAM6, BEAM7, BEAM8, BEAM9, BEOS, BLUEGATE, BLUEKEY, DATA1, DATA2, DATA3, DYNS1, DYNS2, DYNS3, DYNS4, DYNT1, DYNT2, DYNT3, DYNT4, EMPTY, END, GREENGATE, GREENKEY, INTEL, LIFE, LINUX, MAC, NOTHING, REDGATE, REDKEY, START, STONE, TREASURE, UNIX, WALL1, WALL2, WALL3, WALL4, WALL5, WINDOWS |
Constructor Summary | |
Matrix(java.io.File file)
Constructor. load the level from file |
|
Matrix(java.io.InputStream is)
Constructor. load the level from InputStream |
|
Matrix(Matrix copy)
copy constructor |
Method Summary | |
protected void |
loadMatrix(java.io.File file)
load the level from file |
protected void |
loadMatrix(java.io.InputStream is)
load the level from InputStream |
java.lang.String |
matrixToString()
convert the matrix to string to print it in the console |
java.lang.String |
toString()
return the name of this level |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.lang.String name
public java.awt.Point displayPoint
Display
public char[][] matrix
public int[][] bufferMatrix1
ActionControl
public int levelNumber
public static final int[] actionTyp
IFields
,
ActionControl
public static final int[] scoreTab
ActionControl
Constructor Detail |
public Matrix(Matrix copy)
public Matrix(java.io.File file) throws java.io.FileNotFoundException, java.io.IOException
public Matrix(java.io.InputStream is) throws java.io.IOException
Method Detail |
protected void loadMatrix(java.io.File file) throws java.io.FileNotFoundException, java.io.IOException
protected void loadMatrix(java.io.InputStream is) throws java.io.IOException
public java.lang.String matrixToString()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |