ICECreatureControl  1.3.2
Public Member Functions | Public Attributes | Properties | List of all members
ICE.Creatures.Objects.TargetObject Class Reference
Inheritance diagram for ICE.Creatures.Objects.TargetObject:
Inheritance graph
Collaboration diagram for ICE.Creatures.Objects.TargetObject:
Collaboration graph

Public Member Functions

 TargetObject ()
 
 TargetObject (TargetType _type)
 
 TargetObject (TargetObject _target)
 
 TargetObject (TargetDataObject _data)
 
void ResetTargetGameObject ()
 
string GetBestBehaviourModeKey (GameObject _owner)
 
GameObject[] GetBestTargetGameObjects (GameObject _owner)
 
GameObject GetBestTargetGameObject (GameObject _owner)
 Gets the best TargetGameObject. More...
 
List< GameObject > GetAllTargetGameObjects (GameObject _owner)
 Gets all target game objects. More...
 
void SetTargetDefaultValues (List< TargetObject > _targets)
 Sets the target default values. More...
 
List< TargetObjectReadTargetAttributeData ()
 Reads the target default values. More...
 
Renderer TargetRenderer ()
 
InventoryObject Inventory ()
 
OdourObject Odour ()
 
bool TargetTimeCheckComplied (CreatureObject _creature, bool _final_result)
 
bool TargetBasicCheckComplied (CreatureObject _creature)
 
bool BasicCheckSkipped ()
 
bool CompareTarget (TargetObject _target)
 
float Smellability (StatusObject _status)
 
float Audibility (StatusObject _status)
 
bool TargetInFieldOfView (StatusObject _status)
 
bool TargetIsSmellable (StatusObject _status)
 Target is smellable. More...
 
bool TargetIsAudible (StatusObject _status)
 Target is audible. More...
 
bool TargetIsVisible (StatusObject _status)
 Target is visible. More...
 
bool TargetInSelectionRange (Transform _transform)
 
void UpdateRandomRange (float _random_range)
 
void SetActive (GameObject _owner)
 
void SetActive (bool _value)
 Activates or deactives the target More...
 
bool TargetIsChildOf (Transform _transform)
 
bool UpdateTargetMovePositionOffset ()
 
void UpdateOffset (Vector3 _offset)
 
void UpdateOffset (float _angle, float _distance)
 
Vector3 CheckPosition (Vector3 _position)
 Checks the position. More...
 
Vector3 SetTargetMovePosition (Vector3 _position)
 
bool TargetInMaxRange (Vector3 position)
 Targets the in max range. More...
 
bool TargetMovePositionReached (Vector3 position)
 Target move position was reached. More...
 
float TargetMovePositionDistanceTo (Vector3 _position)
 Targets the move position distance to. More...
 
float TargetLastKnownPositionDistanceTo (Vector3 _position)
 Targets the last known position distance to. More...
 
float TargetOffsetPositionDistanceTo (Vector3 _position)
 Targets the offset position distance to. More...
 
float TargetDistanceTo (Vector3 _position)
 Targets distance between its transform position and the specified position. More...
 
void Update (GameObject _owner)
 Update More...
 
void LateUpdate (GameObject _owner, float _speed)
 Late update. More...
 
void FixedUpdate ()
 Fixed update. More...
 
- Public Member Functions inherited from ICE.Creatures.Objects.TargetDataObject
 TargetDataObject ()
 
 TargetDataObject (TargetType _type)
 
 TargetDataObject (TargetDataObject _data)
 
void OnBeforeSerialize ()
 
void OnAfterDeserialize ()
 
void Copy (TargetDataObject _data)
 
void SetOwner (GameObject _owner)
 
void SetTargetByTag (string _tag, GameObject _owner=null)
 Sets the target by tag. More...
 
void SetTargetByName (string _name, GameObject _owner=null)
 Sets the name of the target by. More...
 
void SetTargetByGameObject (GameObject _object)
 Sets the target by game object. More...
 
GameObject OverrideTargetGameObject (GameObject _object)
 Overrides the TargetGameObject. More...
 
void SetType (TargetType _type)
 
void SetIsPrefab (bool _value)
 
- Public Member Functions inherited from ICE.Creatures.Objects.EntityDataObject
 EntityDataObject ()
 
 EntityDataObject (EntityDataObject _data)
 
void Copy (EntityDataObject _data)
 

Public Attributes

bool TargetMoveComplete = false
 
float OffsetDistanceMax = 100
 
- Public Attributes inherited from ICE.Creatures.Objects.TargetDataObject
string BehaviourModeKey = ""
 
TargetAccessType AccessType = TargetAccessType.NAME
 
bool UseChildObjects = false
 

Properties

Vector3 TargetDirection [get]
 
Vector3 TargetVelocity [get]
 
float TargetSpeed [get]
 
Transform TargetTransform [get]
 
float Age [get]
 Gets the age of the target entity object or 0. More...
 
bool TargetIsDead [get]
 
MoveType TargetMoveType [get]
 
int SelectionPriority [get]
 
bool IsVisible [get]
 
bool IsAudible [get]
 
bool IsSmellable [get]
 
float TargetMaxRange [get]
 
float ActiveTimeTotal [get]
 
float ActiveTime [get]
 
bool Active [get]
 
bool IsValid [get]
 
bool IsValidAndReady [get]
 
Vector3 TargetTransformPosition [get]
 Gets the target transform position. More...
 
Vector3 TargetTransformForward [get]
 Gets the target transform forward. More...
 
Vector3 TargetOffsetPosition [get]
 Gets the target offset position. More...
 
float OffsetAngle [get]
 
float OffsetDistance [get]
 
Vector3 DesiredTargetMovePosition [get]
 
Vector3 TargetLastKnownPosition [get]
 
Vector3 TargetMovePosition [get]
 Gets the target move position. More...
 
- Properties inherited from ICE.Creatures.Objects.TargetDataObject
GameObject Owner [get]
 
BehaviourEventsObject Events [get, set]
 
BroadcastMessageObject GroupMessage [get, set]
 
SelectionCriteriaObject Selectors [get, set]
 
TargetMoveObject Move [get, set]
 
TargetBehaviourObject Behaviour [get, set]
 
InfluenceObject Influences [get, set]
 
string TargetTag [get, set]
 
string TargetName [get, set]
 
string TargetParentName [get]
 Gets the name of the target parent. More...
 
bool TargetHasParent [get]
 Gets a value indicating whether this ICE.Creatures.Objects.TargetDataObject target has parent. More...
 
int LastTargetID [get]
 
int TargetID [get]
 
GameObject TargetGameObject [get]
 Gets the target GameObject. More...
 
TargetType Type [get]
 
bool IsPrefab [get]
 
string TargetTitle [get]
 
- Properties inherited from ICE.Creatures.Objects.EntityDataObject
EntityClassType EntityType [get]
 
new ICECreatureEntity EntityComponent [get]
 Returns the Entity as ICECreatureControl instance or null. More...
 
ICECreatureControl EntityCreature [get]
 Returns the Entity as ICECreatureControl instance or null. More...
 
ICECreaturePlayer EntityPlayer [get]
 Returns the Entity as ICECreaturePlayer instance or null. More...
 
ICECreaturePlant EntityPlant [get]
 Returns the Entity as ICECreaturePlant instance or null. More...
 
ICECreatureItem EntityItem [get]
 Returns the Entity as ICECreatureItem instance or null. More...
 
ICECreatureLocation EntityLocation [get]
 Returns the Entity as ICECreatureLocation instance or null. More...
 
ICECreatureWaypoint EntityWaypoint [get]
 Returns the Entity as ICECreatureWaypoint instance or null. More...
 
ICECreatureMarker EntityMarker [get]
 Returns the Entity as ICECreatureMarker instance or null. More...
 

Constructor & Destructor Documentation

ICE.Creatures.Objects.TargetObject.TargetObject ( )
ICE.Creatures.Objects.TargetObject.TargetObject ( TargetType  _type)
ICE.Creatures.Objects.TargetObject.TargetObject ( TargetObject  _target)
ICE.Creatures.Objects.TargetObject.TargetObject ( TargetDataObject  _data)

Member Function Documentation

float ICE.Creatures.Objects.TargetObject.Audibility ( StatusObject  _status)

Here is the call graph for this function:

Here is the caller graph for this function:

bool ICE.Creatures.Objects.TargetObject.BasicCheckSkipped ( )
Vector3 ICE.Creatures.Objects.TargetObject.CheckPosition ( Vector3  _position)

Checks the position.

Returns
The position.
Parameters
_positionPosition.
bool ICE.Creatures.Objects.TargetObject.CompareTarget ( TargetObject  _target)

Here is the caller graph for this function:

void ICE.Creatures.Objects.TargetObject.FixedUpdate ( )

Fixed update.

Returns
The update.

Here is the caller graph for this function:

List<GameObject> ICE.Creatures.Objects.TargetObject.GetAllTargetGameObjects ( GameObject  _owner)

Gets all target game objects.

GetAllTargetGameObjects will be used e.g. by the debug class to get all interactors

Returns
All target game objects according to the given AccessType
Parameters
_ownerOwner.

Here is the call graph for this function:

Here is the caller graph for this function:

string ICE.Creatures.Objects.TargetObject.GetBestBehaviourModeKey ( GameObject  _owner)

Here is the caller graph for this function:

GameObject ICE.Creatures.Objects.TargetObject.GetBestTargetGameObject ( GameObject  _owner)

Gets the best TargetGameObject.

Returns
The best TargetGameObject.
Parameters
_ownerOwner.
_distanceDistance.

Here is the call graph for this function:

GameObject [] ICE.Creatures.Objects.TargetObject.GetBestTargetGameObjects ( GameObject  _owner)

Here is the call graph for this function:

Here is the caller graph for this function:

InventoryObject ICE.Creatures.Objects.TargetObject.Inventory ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void ICE.Creatures.Objects.TargetObject.LateUpdate ( GameObject  _owner,
float  _speed 
)

Late update.

Parameters
_ownerOwner.

Here is the caller graph for this function:

OdourObject ICE.Creatures.Objects.TargetObject.Odour ( )

Here is the call graph for this function:

Here is the caller graph for this function:

List<TargetObject> ICE.Creatures.Objects.TargetObject.ReadTargetAttributeData ( )

Reads the target default values.

Returns
A list of target objects with default values based on the ICECreatureTarget scripts of the given target
void ICE.Creatures.Objects.TargetObject.ResetTargetGameObject ( )
void ICE.Creatures.Objects.TargetObject.SetActive ( GameObject  _owner)

Here is the caller graph for this function:

void ICE.Creatures.Objects.TargetObject.SetActive ( bool  _value)

Activates or deactives the target

Parameters
_valueIf set to true value.
void ICE.Creatures.Objects.TargetObject.SetTargetDefaultValues ( List< TargetObject _targets)

Sets the target default values.

Parameters
_targets_targets.
Vector3 ICE.Creatures.Objects.TargetObject.SetTargetMovePosition ( Vector3  _position)
float ICE.Creatures.Objects.TargetObject.Smellability ( StatusObject  _status)

Here is the call graph for this function:

Here is the caller graph for this function:

bool ICE.Creatures.Objects.TargetObject.TargetBasicCheckComplied ( CreatureObject  _creature)

Here is the caller graph for this function:

float ICE.Creatures.Objects.TargetObject.TargetDistanceTo ( Vector3  _position)

Targets distance between its transform position and the specified position.

Returns
The distance to.
Parameters
positionPosition.

Here is the caller graph for this function:

bool ICE.Creatures.Objects.TargetObject.TargetInFieldOfView ( StatusObject  _status)

Here is the call graph for this function:

Here is the caller graph for this function:

bool ICE.Creatures.Objects.TargetObject.TargetInMaxRange ( Vector3  position)

Targets the in max range.

Returns
true, if in max range was targeted, false otherwise.
Parameters
positionPosition.

Here is the caller graph for this function:

bool ICE.Creatures.Objects.TargetObject.TargetInSelectionRange ( Transform  _transform)
bool ICE.Creatures.Objects.TargetObject.TargetIsAudible ( StatusObject  _status)

Target is audible.

Returns
true, if is audible was targeted, false otherwise.
Parameters
_statusStatus.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ICE.Creatures.Objects.TargetObject.TargetIsChildOf ( Transform  _transform)
bool ICE.Creatures.Objects.TargetObject.TargetIsSmellable ( StatusObject  _status)

Target is smellable.

Returns
true, if is smellable was targeted, false otherwise.
Parameters
_statusStatus.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ICE.Creatures.Objects.TargetObject.TargetIsVisible ( StatusObject  _status)

Target is visible.

Returns
true, if is visible was targeted, false otherwise.
Parameters
_statusStatus.

Here is the call graph for this function:

Here is the caller graph for this function:

float ICE.Creatures.Objects.TargetObject.TargetLastKnownPositionDistanceTo ( Vector3  _position)

Targets the last known position distance to.

Returns
The last known position distance to.
Parameters
_positionPosition.

Here is the caller graph for this function:

float ICE.Creatures.Objects.TargetObject.TargetMovePositionDistanceTo ( Vector3  _position)

Targets the move position distance to.

Returns
The move position distance to.
Parameters
_positionPosition.

Here is the caller graph for this function:

bool ICE.Creatures.Objects.TargetObject.TargetMovePositionReached ( Vector3  position)

Target move position was reached.

Returns
true, if move position reached was targeted, false otherwise.
Parameters
positionPosition.

Here is the caller graph for this function:

float ICE.Creatures.Objects.TargetObject.TargetOffsetPositionDistanceTo ( Vector3  _position)

Targets the offset position distance to.

Returns
The offset position distance to.
Parameters
positionPosition.

Here is the caller graph for this function:

Renderer ICE.Creatures.Objects.TargetObject.TargetRenderer ( )
bool ICE.Creatures.Objects.TargetObject.TargetTimeCheckComplied ( CreatureObject  _creature,
bool  _final_result 
)

Here is the caller graph for this function:

void ICE.Creatures.Objects.TargetObject.Update ( GameObject  _owner)

Update

Parameters
_ownerOwner.

Here is the caller graph for this function:

void ICE.Creatures.Objects.TargetObject.UpdateOffset ( Vector3  _offset)
void ICE.Creatures.Objects.TargetObject.UpdateOffset ( float  _angle,
float  _distance 
)
void ICE.Creatures.Objects.TargetObject.UpdateRandomRange ( float  _random_range)
bool ICE.Creatures.Objects.TargetObject.UpdateTargetMovePositionOffset ( )

Here is the caller graph for this function:

Member Data Documentation

float ICE.Creatures.Objects.TargetObject.OffsetDistanceMax = 100
bool ICE.Creatures.Objects.TargetObject.TargetMoveComplete = false

Property Documentation

bool ICE.Creatures.Objects.TargetObject.Active
get
float ICE.Creatures.Objects.TargetObject.ActiveTime
get
float ICE.Creatures.Objects.TargetObject.ActiveTimeTotal
get
float ICE.Creatures.Objects.TargetObject.Age
get

Gets the age of the target entity object or 0.

The age of the target entity object or 0.

Vector3 ICE.Creatures.Objects.TargetObject.DesiredTargetMovePosition
get
bool ICE.Creatures.Objects.TargetObject.IsAudible
get
bool ICE.Creatures.Objects.TargetObject.IsSmellable
get
bool ICE.Creatures.Objects.TargetObject.IsValid
get
bool ICE.Creatures.Objects.TargetObject.IsValidAndReady
get
bool ICE.Creatures.Objects.TargetObject.IsVisible
get
float ICE.Creatures.Objects.TargetObject.OffsetAngle
get
float ICE.Creatures.Objects.TargetObject.OffsetDistance
get
int ICE.Creatures.Objects.TargetObject.SelectionPriority
get
Vector3 ICE.Creatures.Objects.TargetObject.TargetDirection
get
bool ICE.Creatures.Objects.TargetObject.TargetIsDead
get
Vector3 ICE.Creatures.Objects.TargetObject.TargetLastKnownPosition
get
float ICE.Creatures.Objects.TargetObject.TargetMaxRange
get
Vector3 ICE.Creatures.Objects.TargetObject.TargetMovePosition
get

Gets the target move position.

The target move position.

MoveType ICE.Creatures.Objects.TargetObject.TargetMoveType
get
Vector3 ICE.Creatures.Objects.TargetObject.TargetOffsetPosition
get

Gets the target offset position.

The target offset position.

float ICE.Creatures.Objects.TargetObject.TargetSpeed
get
Transform ICE.Creatures.Objects.TargetObject.TargetTransform
get
Vector3 ICE.Creatures.Objects.TargetObject.TargetTransformForward
get

Gets the target transform forward.

The target transform forward.

Vector3 ICE.Creatures.Objects.TargetObject.TargetTransformPosition
get

Gets the target transform position.

The target transform position.

Vector3 ICE.Creatures.Objects.TargetObject.TargetVelocity
get

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