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

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

public class OffMeshPoint
extends Object
implements ILocated, INavMeshAtom, Serializable

CLass representing a navpoint which is a part of an off mesh connection in navMesh Contains mainly the real navpoint and then some more information , like polygon and connections to others

Author:
Jakub Tomek
See Also:
Serialized Form

Constructor Summary
OffMeshPoint(NavPoint navpoint, int pId)
           
 
Method Summary
 boolean equals(INavMeshAtom atom)
          Compares atoms if they are the same (same class, same polygon/point)
 ArrayList<OffMeshEdge> getIncomingEdges()
           
 Location getLocation()
           
 UnrealId getNavPointId()
           
 List<INavMeshAtom> getNeighbours(NavMesh mesh)
          Gets a list of all neighbors of this atom in navmesh.
 ArrayList<OffMeshEdge> getOutgoingEdges()
           
 int getPId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OffMeshPoint

public OffMeshPoint(NavPoint navpoint,
                    int pId)
Method Detail

getNavPointId

public UnrealId getNavPointId()

getPId

public int getPId()

getOutgoingEdges

public ArrayList<OffMeshEdge> getOutgoingEdges()

getIncomingEdges

public ArrayList<OffMeshEdge> getIncomingEdges()

getLocation

public Location getLocation()
Specified by:
getLocation in interface ILocated

getNeighbours

public List<INavMeshAtom> getNeighbours(NavMesh mesh)
Gets a list of all neighbors of this atom in navmesh. That includes both polygons and offmesh points.

Specified by:
getNeighbours in interface INavMeshAtom
Parameters:
mesh -
Returns:

equals

public boolean equals(INavMeshAtom atom)
Compares atoms if they are the same (same class, same polygon/point)

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


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