|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.drawing.UT2004Draw
cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.drawing.NavMeshDraw
public class NavMeshDraw
| Field Summary |
|---|
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.drawing.UT2004Draw |
|---|
defaultColor, log, origin, scale, serverProvider |
| Constructor Summary | |
|---|---|
NavMeshDraw(NavMesh navMesh,
Logger log,
IUT2004ServerProvider serverProvider)
|
|
| Method Summary | |
|---|---|
boolean |
draw(boolean drawMesh,
boolean drawOffMeshLinks)
Draws navmesh in game. |
void |
draw(String lines,
Location color)
Draws given lines |
void |
drawOnePolygon(int i)
Draws one polygon with default color (yellow) |
void |
drawOnePolygon(int i,
Location color)
Draws one polygon with the color set in color |
void |
drawOnlyBiggestLeaf()
Debug method: Draws only the polygons in the biggest leaf so that we can see why they could not have been split any further |
void |
drawPath(IPathFuture<ILocated> path,
Location color)
Draws the given path |
void |
drawPolygonPath(List<INavMeshAtom> polygonPath,
Location location)
Draws entire list of polygons |
String |
polygonToDebugString(int polygonNumber)
Restricted alternative to toDebugString() - returns only one polygon as string |
String |
toDebugString()
Returns all lines in one long string. |
void |
unDraw()
Undraws all currently drawn lines |
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.drawing.UT2004Draw |
|---|
clearAll, drawCube, drawLine, drawLine, drawLine, drawLine, drawPolygon, drawPolygon, drawPolygon, drawPolygon, drawPolyLine, drawPolyLine, drawPolyLine, drawPolyLine, getColor, getOrigin, getScale, getServer, init, setColor, setOrigin, setScale |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NavMeshDraw(NavMesh navMesh,
Logger log,
IUT2004ServerProvider serverProvider)
| Method Detail |
|---|
public boolean draw(boolean drawMesh,
boolean drawOffMeshLinks)
drawMesh - whether to draw mesh polygonsdrawOffMeshLinks - whether to draw off-mesh-links
public void draw(String lines,
Location color)
lines - color - public void unDraw()
public void drawOnePolygon(int i,
Location color)
i - color - public void drawOnePolygon(int i)
i -
public void drawPolygonPath(List<INavMeshAtom> polygonPath,
Location location)
polygonPath - location -
public void drawPath(IPathFuture<ILocated> path,
Location color)
path - color - public void drawOnlyBiggestLeaf()
public String toDebugString()
public String polygonToDebugString(int polygonNumber)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||