|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.amis.pogamut.ut2004.agent.module.sensor.visibility.VisibilityCreator
public class VisibilityCreator
Object that is used to extract visibility information out of any UT2004 map via GameBots2004.
Just fire-up GB2004 server (having BIG NUMBER for time level in GameBots2004.ini)
and executes main(String[])
.
Field Summary | |
---|---|
static int |
MATRIX_DENSITY
Min distance between VisibilityLocation s on one NavPointNeighbourLink . |
static Location |
SECOND_TRACE_DELTA
Second trace delta. |
static int |
THREAD_COUNT
How many threads/fast traces to use for visibility-checking. |
Constructor Summary | |
---|---|
VisibilityCreator()
|
|
VisibilityCreator(UT2004Server server)
|
Method Summary | |
---|---|
VisibilityMatrix |
create()
|
VisibilityMatrix |
createAndSave(File targetDirectory)
|
LogCategory |
getLog()
|
UT2004Server |
getServer()
|
static void |
main(String[] args)
Initializes VisibilityCreator , connects it to the localhost:3001 (localhost GB2004 server connection)
and calls createAndSave(File) method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MATRIX_DENSITY
VisibilityLocation
s on one NavPointNeighbourLink
.
public static final Location SECOND_TRACE_DELTA
public static final int THREAD_COUNT
Constructor Detail |
---|
public VisibilityCreator()
public VisibilityCreator(UT2004Server server)
Method Detail |
---|
public UT2004Server getServer()
public LogCategory getLog()
public VisibilityMatrix create()
public VisibilityMatrix createAndSave(File targetDirectory)
public static void main(String[] args)
VisibilityCreator
, connects it to the localhost:3001 (localhost GB2004 server connection)
and calls createAndSave(File)
method. Note that it may take HUGE AMOUNT of time
to fill up visibility matrix for given level.
Be sure to have "map time" in GameBots2004.ini set to BIG NUMBER.
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |