C# Class fBaseXtensions.Navigation.Navigation

Cache of all values Navigation related
Afficher le fichier Open project: herbfunk/Funky

Méthodes publiques

Свойство Type Description
CurrentDungeonExplorer DungeonExplorer
lastFoundSafeSpot System.DateTime
vlastSafeSpot System.Vector3

Méthodes publiques

Méthode Description
AttemptFindSafeSpot ( System.Vector3 &safespot, System.Vector3 LOS, PointCheckingFlags flags ) : bool

Searches for a safespot

AttemptToReuseLastLocationFound ( ) : System.Vector3
CanRayCast ( System.Vector3 vStartLocation, System.Vector3 vDestination, NavCellFlags NavType = NavCellFlags.None, bool UseSearchGridProvider = false ) : bool

Ray Cast -- if no navcellflags parameter is given then it will use Navigator.Raycast -- else it uses ZetaDia.Physics.Raycast to test navcellflags

CheckPointAgainstBlockedDirection ( GridPoint point ) : bool
CheckVectorFlags ( System.Vector3 currentPos, System.Vector3 targetPos, PointCheckingFlags flags ) : bool
CurrentAreaValid ( ) : bool
FindDirection ( System.Vector3 vStartLocation, System.Vector3 vTargetLocation, bool inRadian = false ) : float
FindLocationBehindObject ( CacheObject obj ) : System.Vector3
FindZigZagTargetLocation ( System.Vector3 vTargetLocation, float fDistanceOutreach, bool bRandomizeDistance = false, bool bRandomizeStart = false ) : System.Vector3
IsInTown ( ) : bool
NormalizeRadian ( float radian ) : float
ObstaclePrioritizeCheck ( float range = 20f ) : void

Checks bots movement flags then prioritizes all objects that are considered to be blocking.

PrintDungeonExplorerNode ( DungeonNode node ) : string

Private Methods

Méthode Description
GroupingFinishBehavior ( ) : void
IsVectorBlocked ( System.Vector3 location ) : bool

Checks if the position is total blocked from adjacent movements either by objects or non navigation

RefreshMovementCache ( ) : void
RefreshNavigationBlocked ( ) : void

Bots Position is blocked from adjacent movement -- Updated whenever searching for a safe location!

UpdateLocationsBlocked ( ) : void

Method Details

AttemptFindSafeSpot() public méthode

Searches for a safespot
public AttemptFindSafeSpot ( System.Vector3 &safespot, System.Vector3 LOS, PointCheckingFlags flags ) : bool
safespot System.Vector3
LOS System.Vector3
flags PointCheckingFlags
Résultat bool

AttemptToReuseLastLocationFound() public méthode

public AttemptToReuseLastLocationFound ( ) : System.Vector3
Résultat System.Vector3

CanRayCast() public static méthode

Ray Cast -- if no navcellflags parameter is given then it will use Navigator.Raycast -- else it uses ZetaDia.Physics.Raycast to test navcellflags
public static CanRayCast ( System.Vector3 vStartLocation, System.Vector3 vDestination, NavCellFlags NavType = NavCellFlags.None, bool UseSearchGridProvider = false ) : bool
vStartLocation System.Vector3
vDestination System.Vector3
NavType NavCellFlags
UseSearchGridProvider bool
Résultat bool

CheckPointAgainstBlockedDirection() public méthode

public CheckPointAgainstBlockedDirection ( GridPoint point ) : bool
point GridPoint
Résultat bool

CheckVectorFlags() public static méthode

public static CheckVectorFlags ( System.Vector3 currentPos, System.Vector3 targetPos, PointCheckingFlags flags ) : bool
currentPos System.Vector3
targetPos System.Vector3
flags PointCheckingFlags
Résultat bool

CurrentAreaValid() public méthode

public CurrentAreaValid ( ) : bool
Résultat bool

FindDirection() public static méthode

public static FindDirection ( System.Vector3 vStartLocation, System.Vector3 vTargetLocation, bool inRadian = false ) : float
vStartLocation System.Vector3
vTargetLocation System.Vector3
inRadian bool
Résultat float

FindLocationBehindObject() public méthode

public FindLocationBehindObject ( CacheObject obj ) : System.Vector3
obj fBaseXtensions.Cache.Internal.Objects.CacheObject
Résultat System.Vector3

FindZigZagTargetLocation() public méthode

public FindZigZagTargetLocation ( System.Vector3 vTargetLocation, float fDistanceOutreach, bool bRandomizeDistance = false, bool bRandomizeStart = false ) : System.Vector3
vTargetLocation System.Vector3
fDistanceOutreach float
bRandomizeDistance bool
bRandomizeStart bool
Résultat System.Vector3

IsInTown() public static méthode

public static IsInTown ( ) : bool
Résultat bool

NormalizeRadian() public static méthode

public static NormalizeRadian ( float radian ) : float
radian float
Résultat float

ObstaclePrioritizeCheck() public méthode

Checks bots movement flags then prioritizes all objects that are considered to be blocking.
public ObstaclePrioritizeCheck ( float range = 20f ) : void
range float
Résultat void

PrintDungeonExplorerNode() public static méthode

public static PrintDungeonExplorerNode ( DungeonNode node ) : string
node DungeonNode
Résultat string

Property Details

CurrentDungeonExplorer public_oe static_oe property

public static DungeonExplorer CurrentDungeonExplorer
Résultat DungeonExplorer

lastFoundSafeSpot public_oe property

public DateTime,System lastFoundSafeSpot
Résultat System.DateTime

vlastSafeSpot public_oe property

public Vector3,System vlastSafeSpot
Résultat System.Vector3