wHiteRabbiT-sTudio Framework
wHiteRabbiT.Unity.IA.ContactMobIA Class Reference
Inheritance diagram for wHiteRabbiT.Unity.IA.ContactMobIA:
wHiteRabbiT.Unity.IA.BaseWalkIA

Public Types

enum  State { State.Aggro =3, State.WalkRight =2, State.WalkLeft =1, State.Idle =0 }
 

Public Member Functions

void Awake ()
 
override void ForceAggro (GameObject GoOpp)
 
override void UpdateIA ()
 
- Public Member Functions inherited from wHiteRabbiT.Unity.IA.BaseWalkIA
void Start ()
 
void OnDestroy ()
 
void Update ()
 
void OnTriggerEnter (Collider collider)
 
virtual void TriggerEnter (Collider collider)
 

Public Attributes

float WalkTime = 2
 
float IdleRatio = 3
 
float IdleChance = 66.6f
 
float VersatileWalkTime = 1.5f
 
float VersatileIdleChance = 25.0f
 
float AggroDistance = 5.0f
 
float StopDistance = 0.5f
 
float FoV = 90
 
float KeepAggroTime = 5
 
float SwitchPeriod = 1
 
- Public Attributes inherited from wHiteRabbiT.Unity.IA.BaseWalkIA
bool Alive = true
 
Transform trSpeechBalloon
 
string SideName = "Player"
 
List< string > HostileNames = new List<string>{ "Chimera", "Anubis" }
 
List< WeaknessWeaknesses = new List<Weakness>()
 
int NbFrameToNullLayer = 2
 
float GizmosRadius = 0.1f
 

Protected Attributes

State CurrentState = State.Idle
 
State CurrentVersatileState = State.Idle
 
bool NextWalkLeft
 
bool NextVersatileWalkLeft
 
float TimeToChangeState = float.MinValue
 
float TimeToChangeVersatileState = float.MinValue
 
LayerMask OccluderLayerMask
 
BaseWalkIA currentOpponent
 
float LastTimeInView = float.MinValue
 
float TimeToSwitch = float.MinValue
 
bool Visible
 
Vector3 CurrentView
 
- Protected Attributes inherited from wHiteRabbiT.Unity.IA.BaseWalkIA
BaseCharacter _character
 

Properties

float dFoV [get]
 
override BaseWalkIA CurrentOpponent [get]
 
List< BaseWalkIAOpponents [get]
 
- Properties inherited from wHiteRabbiT.Unity.IA.BaseWalkIA
BaseCharacter character [get]
 
virtual BaseWalkIA CurrentOpponent [get]
 

Member Enumeration Documentation

Enumerator
Aggro 
WalkRight 
WalkLeft 
Idle 

Member Function Documentation

void wHiteRabbiT.Unity.IA.ContactMobIA.Awake ( )
override void wHiteRabbiT.Unity.IA.ContactMobIA.ForceAggro ( GameObject  GoOpp)
virtual

Reimplemented from wHiteRabbiT.Unity.IA.BaseWalkIA.

override void wHiteRabbiT.Unity.IA.ContactMobIA.UpdateIA ( )
virtual

Reimplemented from wHiteRabbiT.Unity.IA.BaseWalkIA.

Member Data Documentation

float wHiteRabbiT.Unity.IA.ContactMobIA.AggroDistance = 5.0f
BaseWalkIA wHiteRabbiT.Unity.IA.ContactMobIA.currentOpponent
protected
State wHiteRabbiT.Unity.IA.ContactMobIA.CurrentState = State.Idle
protected
State wHiteRabbiT.Unity.IA.ContactMobIA.CurrentVersatileState = State.Idle
protected
Vector3 wHiteRabbiT.Unity.IA.ContactMobIA.CurrentView
protected
float wHiteRabbiT.Unity.IA.ContactMobIA.FoV = 90
float wHiteRabbiT.Unity.IA.ContactMobIA.IdleChance = 66.6f
float wHiteRabbiT.Unity.IA.ContactMobIA.IdleRatio = 3
float wHiteRabbiT.Unity.IA.ContactMobIA.KeepAggroTime = 5
float wHiteRabbiT.Unity.IA.ContactMobIA.LastTimeInView = float.MinValue
protected
bool wHiteRabbiT.Unity.IA.ContactMobIA.NextVersatileWalkLeft
protected
bool wHiteRabbiT.Unity.IA.ContactMobIA.NextWalkLeft
protected
LayerMask wHiteRabbiT.Unity.IA.ContactMobIA.OccluderLayerMask
protected
float wHiteRabbiT.Unity.IA.ContactMobIA.StopDistance = 0.5f
float wHiteRabbiT.Unity.IA.ContactMobIA.SwitchPeriod = 1
float wHiteRabbiT.Unity.IA.ContactMobIA.TimeToChangeState = float.MinValue
protected
float wHiteRabbiT.Unity.IA.ContactMobIA.TimeToChangeVersatileState = float.MinValue
protected
float wHiteRabbiT.Unity.IA.ContactMobIA.TimeToSwitch = float.MinValue
protected
float wHiteRabbiT.Unity.IA.ContactMobIA.VersatileIdleChance = 25.0f
float wHiteRabbiT.Unity.IA.ContactMobIA.VersatileWalkTime = 1.5f
bool wHiteRabbiT.Unity.IA.ContactMobIA.Visible
protected
float wHiteRabbiT.Unity.IA.ContactMobIA.WalkTime = 2

Property Documentation

override BaseWalkIA wHiteRabbiT.Unity.IA.ContactMobIA.CurrentOpponent
get
float wHiteRabbiT.Unity.IA.ContactMobIA.dFoV
getprotected
List<BaseWalkIA> wHiteRabbiT.Unity.IA.ContactMobIA.Opponents
getprotected

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