The Flock  0.00.001
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Actor Class Reference

Actor, which contains many used actor functionalities. More...

Inheritance diagram for Actor:
AbstractMonoBehaviour IDebuggable ITransform

Public Member Functions

override void Start ()
 Start is called just before any of the Update methods is called the first time. More...
 
- Public Member Functions inherited from AbstractMonoBehaviour
virtual void Awake ()
 Awake is called when the script instance is being loaded. More...
 
virtual void Update ()
 Update is called every frame. More...
 
virtual void LateUpdate ()
 LateUpdate is called every frame after all Update functions have been called. More...
 
virtual void FixedUpdate ()
 This function is called every fixed framerate frame. More...
 
virtual void OnGUI ()
 OnScreen GUI. More...
 
virtual void OnDrawGizmos ()
 OnDraw Gizmos. More...
 
virtual void OnDrawGizmosSelected ()
 OnDraw Gizmos selected. More...
 
virtual void OnEnable ()
 This function is called when the object becomes enabled and active. More...
 
virtual void OnDisable ()
 This function is called when the behaviour becomes disabled or inactive. More...
 
virtual void OnBecameVisible ()
 OnBecameVisible is called when the renderer became visible by any camera. More...
 
virtual void OnBecameInvisible ()
 OnBecameInvisible is called when the renderer is no longer visible by any camera. More...
 
virtual void OnDestroy ()
 This function is called before the gameobject is been destroyed. More...
 
GetInterfaceComponent< I > ()
 Gets the interface component. More...
 
void logDebug (string message)
 
void logWarning (string message)
 
void logError (string message)
 

Public Attributes

float movementSpeedForward = 1
 
float movementSpeedSidewards = 1
 
float movementSpeedBackwards = 0.5f
 
float friction = 0.8f
 
float gravity = 0.1f
 

Protected Member Functions

void init ()
 

Protected Attributes

float _velocityX
 
float _velocityY
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractMonoBehaviour
static List< I > FindObjectsOfInterface< I > ()
 Finds the objects of interface. More...
 
- Properties inherited from AbstractMonoBehaviour
bool debug [get, set]
 
Transform transform [get, set]
 
virtual float x [get, set]
 
virtual float y [get, set]
 
virtual float z [get, set]
 
virtual float rotationX [get, set]
 
virtual float rotationY [get, set]
 
virtual float rotationZ [get, set]
 

Detailed Description

Actor, which contains many used actor functionalities.

Member Function Documentation

void Actor.init ( )
protected
override void Actor.Start ( )
virtual

Start is called just before any of the Update methods is called the first time.

Reimplemented from AbstractMonoBehaviour.

Member Data Documentation

float Actor._velocityX
protected
float Actor._velocityY
protected
float Actor.friction = 0.8f
float Actor.gravity = 0.1f
float Actor.movementSpeedBackwards = 0.5f
float Actor.movementSpeedForward = 1
float Actor.movementSpeedSidewards = 1

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