Shooter Template  1.2.3
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
Invector.vHealthController Class Reference
Inheritance diagram for Invector.vHealthController:
Invector.vMonoBehaviour Invector.vIHealthController Invector.vIDamageReceiver Invector.vBarrel Invector.vCharacterController.vCharacter Invector.vCharacterController.AI.v_AIMotor Invector.vCharacterController.vCharacterStandalone Invector.vCharacterController.vThirdPersonMotor Invector.vCharacterController.AI.v_AIAnimator Invector.vCharacterController.vThirdPersonAnimator Invector.vCharacterController.AI.v_AIController Invector.vCharacterController.vThirdPersonController Invector.vCharacterController.AI.v_AICompanion Invector.vCharacterController.TopDownShooter.vTopDownController Invector.vCharacterController.v2_5D.v2_5DController

Public Member Functions

virtual void ChangeHealth (int value)
 Change the currentHealth of Character More...
 
virtual void ChangeMaxHealth (int value)
 Change the MaxHealth of Character More...
 
virtual void TakeDamage (vDamage damage)
 Apply Damage to Current Health More...
 

Public Attributes

int maxHealth = 100
 
float healthRecovery = 0f
 
float healthRecoveryDelay = 0f
 
float currentHealthRecoveryDelay
 

Protected Member Functions

virtual void Start ()
 
virtual IEnumerator RecoverHealth ()
 
virtual void HealthRecovery ()
 

Protected Attributes

bool _isDead
 
float _currentHealth
 
OnReceiveDamage _onReceiveDamage = new OnReceiveDamage()
 
OnDead _onDead = new OnDead()
 

Properties

int MaxHealth [get, protected set]
 
float currentHealth [get, protected set]
 
bool isDead [get, set]
 
OnReceiveDamage onReceiveDamage [get, protected set]
 
OnDead onDead [get, protected set]
 
virtual bool canRecoverHealth [get]
 
- Properties inherited from Invector.vIHealthController
OnDead onDead [get]
 
float currentHealth [get]
 
int MaxHealth [get]
 
bool isDead [get, set]
 
- Properties inherited from Invector.vIDamageReceiver
OnReceiveDamage onReceiveDamage [get]
 
Transform transform [get]
 
GameObject gameObject [get]
 

Member Function Documentation

◆ ChangeHealth()

virtual void Invector.vHealthController.ChangeHealth ( int  value)
virtual

Change the currentHealth of Character

Parameters
value

Implements Invector.vIHealthController.

◆ ChangeMaxHealth()

virtual void Invector.vHealthController.ChangeMaxHealth ( int  value)
virtual

Change the MaxHealth of Character

Parameters
value

Implements Invector.vIHealthController.

◆ HealthRecovery()

virtual void Invector.vHealthController.HealthRecovery ( )
protectedvirtual

◆ RecoverHealth()

virtual IEnumerator Invector.vHealthController.RecoverHealth ( )
protectedvirtual

◆ Start()

virtual void Invector.vHealthController.Start ( )
protectedvirtual

◆ TakeDamage()

virtual void Invector.vHealthController.TakeDamage ( vDamage  damage)
virtual

Member Data Documentation

◆ _currentHealth

float Invector.vHealthController._currentHealth
protected

◆ _isDead

bool Invector.vHealthController._isDead
protected

◆ _onDead

OnDead Invector.vHealthController._onDead = new OnDead()
protected

◆ _onReceiveDamage

OnReceiveDamage Invector.vHealthController._onReceiveDamage = new OnReceiveDamage()
protected

◆ currentHealthRecoveryDelay

float Invector.vHealthController.currentHealthRecoveryDelay

◆ healthRecovery

float Invector.vHealthController.healthRecovery = 0f

◆ healthRecoveryDelay

float Invector.vHealthController.healthRecoveryDelay = 0f

◆ maxHealth

int Invector.vHealthController.maxHealth = 100

Property Documentation

◆ canRecoverHealth

virtual bool Invector.vHealthController.canRecoverHealth
getprotected

◆ currentHealth

float Invector.vHealthController.currentHealth
getprotected set

◆ isDead

bool Invector.vHealthController.isDead
getset

◆ MaxHealth

int Invector.vHealthController.MaxHealth
getprotected set

◆ onDead

OnDead Invector.vHealthController.onDead
getprotected set

◆ onReceiveDamage

OnReceiveDamage Invector.vHealthController.onReceiveDamage
getprotected set

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