|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.ut2004.storyworld.place.SPStoryWorld
public class SPStoryWorld
TODO: CURRENTLY IT DOES NOT WORK!
Constructor Summary | |
---|---|
SPStoryWorld(java.io.File worldXMLDefinition,
IWorldView ww,
java.util.logging.Logger log)
|
|
SPStoryWorld(SPStoryWorldData data,
IWorldView ww,
java.util.logging.Logger log)
|
|
SPStoryWorld(java.lang.String worldXMLDefinitionFile,
IWorldView ww,
java.util.logging.Logger log)
|
Method Summary | |
---|---|
java.util.Set<SPStoryPlaceBase> |
at(SPLocation location)
Nearest navpoint must be max "NEAR" far. |
protected java.util.Map<Token,SPStoryPlace> |
getAllPlaces()
|
SPStoryPlaceBase |
getBase(java.lang.String name)
|
SPStoryPlaceBase |
getBase(Token name)
|
java.util.Set<SPStoryPlaceBase> |
getBase(UnrealId navPointId)
|
NavPoint |
getFurthestNavPoint(SPLocation location)
|
FloydWarshallMap |
getNavigation()
|
NavPoint |
getNavPoint(java.lang.String id)
|
java.util.Set<NavPoint> |
getNavPoints()
Returns places inside the virtual world. |
protected HashMapSet<UnrealId,SPStoryPlaceBase> |
getNavPointsToPlaceMap()
|
NavPoint |
getNearestNavPoint(SPLocation location)
|
java.util.List<NavPoint> |
getPath(SPLocation from,
NavPoint to)
Finds path between navpoint that is the nearest to "from" and navpoint "to". |
java.util.List<NavPoint> |
getPath(SPLocation from,
SPLocation to)
Finds path between navpoints that are the nearest to "from" / "to" location. |
java.util.List<NavPoint> |
getPath(SPLocation from,
SPStoryPlace place)
Finds shortest path between the nearest navpoint to "from" and the "place", searching all the navpoints that is contained inside the place. |
SPStoryPlace |
getPlace(java.lang.String name)
|
SPStoryPlace |
getPlace(Token name)
|
SPStoryWorldData |
getStoryWorldData()
|
boolean |
isInside(SPLocation location,
SPStoryPlace place)
Returns whether 'location' belongs to the 'place'. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SPStoryWorld(java.lang.String worldXMLDefinitionFile, IWorldView ww, java.util.logging.Logger log) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public SPStoryWorld(java.io.File worldXMLDefinition, IWorldView ww, java.util.logging.Logger log) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public SPStoryWorld(SPStoryWorldData data, IWorldView ww, java.util.logging.Logger log)
Method Detail |
---|
public SPStoryPlace getPlace(Token name)
public SPStoryPlace getPlace(java.lang.String name)
public SPStoryPlaceBase getBase(Token name)
public NavPoint getNavPoint(java.lang.String id)
public SPStoryPlaceBase getBase(java.lang.String name)
public java.util.Set<SPStoryPlaceBase> getBase(UnrealId navPointId)
public java.util.Set<SPStoryPlaceBase> at(SPLocation location)
location
-
public NavPoint getNearestNavPoint(SPLocation location)
public NavPoint getFurthestNavPoint(SPLocation location)
public boolean isInside(SPLocation location, SPStoryPlace place)
location
- place
-
public java.util.Set<NavPoint> getNavPoints()
Can't be called before the definition of all story places are defined, otherwise it won't contains all places. (Lazy initialization.)
protected HashMapSet<UnrealId,SPStoryPlaceBase> getNavPointsToPlaceMap()
protected java.util.Map<Token,SPStoryPlace> getAllPlaces()
public FloydWarshallMap getNavigation()
public java.util.List<NavPoint> getPath(SPLocation from, SPLocation to)
from
- to
-
public java.util.List<NavPoint> getPath(SPLocation from, NavPoint to)
from
- to
-
public java.util.List<NavPoint> getPath(SPLocation from, SPStoryPlace place)
from
- place
-
public SPStoryWorldData getStoryWorldData()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |