cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh
Class LevelGeometry

Package class diagram package LevelGeometry
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.LevelGeometry
All Implemented Interfaces:
Serializable

public class LevelGeometry
extends Object
implements Serializable

Class containing complete data with the geometry of the environment It is useful for steering It is part of NavMesh class

Author:
Jakub Tomek
See Also:
Serialized Form

Field Summary
 int leafCount
           
 double maxX
           
 double maxY
           
 double maxZ
           
 double minX
           
 double minY
           
 double minZ
           
 Random random
           
 ArrayList<int[]> triangles
           
 ArrayList<double[]> verts
           
 
Constructor Summary
LevelGeometry(String mapName)
          Constructor creates the object from a file defined by map name and path which is in constants
 
Method Summary
 void draw(UT2004Server server, Location color)
           
 void drawOneTriangle(UT2004Server server, int tId, Location color)
           
 AutoTraceRay getAutoTraceRayMessage(Self self, BSPRayInfoContainer rayInfo)
          The most important method on this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verts

public ArrayList<double[]> verts

triangles

public ArrayList<int[]> triangles

leafCount

public int leafCount

minX

public double minX

maxX

public double maxX

minY

public double minY

maxY

public double maxY

minZ

public double minZ

maxZ

public double maxZ

random

public Random random
Constructor Detail

LevelGeometry

public LevelGeometry(String mapName)
              throws FileNotFoundException,
                     IOException,
                     Exception
Constructor creates the object from a file defined by map name and path which is in constants

Parameters:
mapName -
Throws:
FileNotFoundException
IOException
Exception
Method Detail

draw

public void draw(UT2004Server server,
                 Location color)

drawOneTriangle

public void drawOneTriangle(UT2004Server server,
                            int tId,
                            Location color)

getAutoTraceRayMessage

public AutoTraceRay getAutoTraceRayMessage(Self self,
                                           BSPRayInfoContainer rayInfo)
The most important method on this class. It computes the information about collision of the given ray and this geometry

Parameters:
self -
rayInfo -
Returns:


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.