|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.robrohan.ruin.doom.BlockList
A Block map (collision detection) is broken into cells, in each cell is a list of its contents (specifically the lines that run though it and the things that are in it - @2002.10.27). This is a cell entry if you will it has the contents of a cell.
Field Summary | |
int[] |
linedefs
|
static int |
MAXLINES
the maximium number of lines in this block these are confined to this block so this should be more than enough. |
static int |
MAXTHINGS
|
int[] |
things
|
Constructor Summary | |
BlockList()
Creates a new instance of BlockList |
Method Summary | |
void |
addLineDef(int linedefID)
add a linedef |
void |
addLineList(int[] linedefIDs)
add a list of linedefs |
int[] |
getAllLineDefs()
returns all linedef Ids for this Block List |
int |
getLineDef(int position)
get a line def |
static void |
main(java.lang.String[] args)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int MAXLINES
public static final int MAXTHINGS
public int[] linedefs
public int[] things
Constructor Detail |
public BlockList()
Method Detail |
public void addLineList(int[] linedefIDs)
public void addLineDef(int linedefID)
public int[] getAllLineDefs()
public int getLineDef(int position)
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |