Third Person Cover Shooter  1.6
CoverShooter.AISight Class Reference

Continuously updates a list of visible actors. More...

Inheritance diagram for CoverShooter.AISight:
CoverShooter.AIBase

Public Member Functions

void OnNoThreat ()
 Notified that there is no longer a threat. More...
 
void DoubleCheck (Actor actor)
 Checks if the given actor is no longer visible. More...
 
bool IsInDarkness (Actor actor)
 Checks if the given actor is in darkness. More...
 
bool CheckVisibility (Actor actor)
 Checks if the given actor is field of view. More...
 
- Public Member Functions inherited from CoverShooter.AIBase
void Message (string name)
 Sends a message to other components. More...
 
void Message (string name, object value)
 Sends a message to other components. More...
 

Public Attributes

float Distance = 25
 Distance for AI to see objects in the world. More...
 
float ObstacleIgnoreDistance = 1
 Distance at which the AI ignores closer obstacles preventing it from seeing something. More...
 
float FieldOfView = 160
 Field of sight to notice changes in the world. More...
 
float UpdateDelay = 0.1f
 Time in seconds between each visibility update. More...
 
bool DebugFOV = false
 Should a debug graphic be drawn to show the field of view. More...
 

Detailed Description

Continuously updates a list of visible actors.

Without this component the AI is blind.

Member Function Documentation

◆ CheckVisibility()

bool CoverShooter.AISight.CheckVisibility ( Actor  actor)

Checks if the given actor is field of view.

Result is immediate, does not execute any events or messages.

◆ DoubleCheck()

void CoverShooter.AISight.DoubleCheck ( Actor  actor)

Checks if the given actor is no longer visible.

◆ IsInDarkness()

bool CoverShooter.AISight.IsInDarkness ( Actor  actor)

Checks if the given actor is in darkness.

◆ OnNoThreat()

void CoverShooter.AISight.OnNoThreat ( )

Notified that there is no longer a threat.

Member Data Documentation

◆ DebugFOV

bool CoverShooter.AISight.DebugFOV = false

Should a debug graphic be drawn to show the field of view.

◆ Distance

float CoverShooter.AISight.Distance = 25

Distance for AI to see objects in the world.

◆ FieldOfView

float CoverShooter.AISight.FieldOfView = 160

Field of sight to notice changes in the world.

◆ ObstacleIgnoreDistance

float CoverShooter.AISight.ObstacleIgnoreDistance = 1

Distance at which the AI ignores closer obstacles preventing it from seeing something.

◆ UpdateDelay

float CoverShooter.AISight.UpdateDelay = 0.1f

Time in seconds between each visibility update.


The documentation for this class was generated from the following file: