C# Class Coliseo.Actor

Inheritance: UnityEngine.MonoBehaviour
Show file Open project: lmucs/Coliseo Class Usage Examples

Public Properties

Property Type Description
canMove bool

Protected Properties

Property Type Description
_health uint
anim UnityEngine.Animator
healthDisplay UnityEngine.TextMesh
rb UnityEngine.Rigidbody
saber UnityEngine.GameObject
saberCont SaberController

Private Properties

Property Type Description
IsOpponent bool
IsValidAttack bool

Public Methods

Method Description
Awake ( ) : void
OnTriggerEnter ( Collider other ) : void
ResetLife ( ) : void
TakeDamage ( uint amount ) : uint
attack ( Actor target ) : void
die ( ) : void
finishAttack ( ) : void
initiateAttack ( ) : void
initiateBlock ( ) : void
move ( float forwardback, float leftright, float vertical ) : void
startMove ( ) : void
turn ( float x, float y ) : void

Private Methods

Method Description
IsOpponent ( Actor other ) : bool
IsValidAttack ( Actor other ) : bool

Method Details

Awake() public method

public Awake ( ) : void
return void

OnTriggerEnter() public method

public OnTriggerEnter ( Collider other ) : void
other UnityEngine.Collider
return void

ResetLife() public method

public ResetLife ( ) : void
return void

TakeDamage() public abstract method

public abstract TakeDamage ( uint amount ) : uint
amount uint
return uint

attack() public method

public attack ( Actor target ) : void
target Actor
return void

die() public abstract method

public abstract die ( ) : void
return void

finishAttack() public method

public finishAttack ( ) : void
return void

initiateAttack() public method

public initiateAttack ( ) : void
return void

initiateBlock() public method

public initiateBlock ( ) : void
return void

move() public abstract method

public abstract move ( float forwardback, float leftright, float vertical ) : void
forwardback float
leftright float
vertical float
return void

startMove() public method

public startMove ( ) : void
return void

turn() public abstract method

public abstract turn ( float x, float y ) : void
x float
y float
return void

Property Details

_health protected property

protected uint _health
return uint

anim protected property

protected Animator,UnityEngine anim
return UnityEngine.Animator

canMove public property

public bool canMove
return bool

healthDisplay protected property

protected TextMesh,UnityEngine healthDisplay
return UnityEngine.TextMesh

rb protected property

protected Rigidbody,UnityEngine rb
return UnityEngine.Rigidbody

saber protected property

protected GameObject,UnityEngine saber
return UnityEngine.GameObject

saberCont protected property

protected SaberController,Coliseo saberCont
return SaberController