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

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

public class NavMeshPolygon
extends Object
implements INavMeshAtom

Implementation of INavMeshAtom for polygons

Author:
Jakub

Method Summary
 boolean equals(INavMeshAtom atom)
          Compares ids of polygons and returns true if they are the same returns false if p is point
 List<INavMeshAtom> getNeighbours(NavMesh mesh)
          Gets a list of all neighbousrs of this atom in navmesh.
 int getPolygonId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPolygonId

public int getPolygonId()

getNeighbours

public List<INavMeshAtom> getNeighbours(NavMesh mesh)
Description copied from interface: INavMeshAtom
Gets a list of all neighbousrs of this atom in navmesh. That includes both polygons and offmesh points.

Specified by:
getNeighbours in interface INavMeshAtom
Returns:

equals

public boolean equals(INavMeshAtom atom)
Compares ids of polygons and returns true if they are the same returns false if p is point

Specified by:
equals in interface INavMeshAtom
Parameters:
p -
Returns:


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