|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.robrohan.ruin.doom.Linedef
Each linedef represents a line from one of the VERTEXES to another. "right" and "left" are based on the direction of the linedef as indicated by the "from" and "to", or "start" and "end", VERTEXES. This sketch should make it clear: left side right side start -----------------> end <----------------- start right side left side IMPORTANT: All lines must have a right side. If it is a one-sided line, then it must go the proper direction, so its single side is facing the sector it is part of. DOOM will crash on a level that has a line with no right side.
Constructor Summary | |
Linedef(int fromVertex,
int toVertex,
int rightSidedefNo,
int leftSidedefNo,
int flags)
|
Method Summary | |
boolean |
blocksMonsters()
|
boolean |
blocksSound()
|
void |
compile(DoomLevel level)
|
int |
getFromVertex()
get the id of the from vertex from to +===============+ |
int |
getId()
get this linedefs current id |
Sidedef |
getLeftSidedef()
|
Sidedef |
getRightSidedef()
|
int |
getToVertex()
get the id of the to vertex from to +===============+ |
boolean |
isAlreadyOnMap()
|
boolean |
isImpassible()
|
boolean |
isLowerUnpegged()
|
boolean |
isNotOnMap()
|
boolean |
isSecret()
|
boolean |
isTwoSided()
|
boolean |
isUpperUnpegged()
|
void |
setId(int id)
set the id for this linedef |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Linedef(int fromVertex, int toVertex, int rightSidedefNo, int leftSidedefNo, int flags)
Method Detail |
public int getFromVertex()
public int getToVertex()
public Sidedef getRightSidedef()
public Sidedef getLeftSidedef()
public void compile(DoomLevel level)
public boolean isImpassible()
public boolean blocksMonsters()
public boolean isTwoSided()
public boolean isUpperUnpegged()
public boolean isLowerUnpegged()
public boolean isSecret()
public boolean blocksSound()
public boolean isNotOnMap()
public boolean isAlreadyOnMap()
public void setId(int id)
public int getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |