Windward
Action-adventure RPG available on Steam Early Access
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
Buff Class Reference
Inheritance diagram for Buff:
Attachable TNBehaviour BuffBlackFlag BuffDamage BuffDef0 BuffDef1 BuffDefense BuffDeflect BuffFog BuffHaste BuffHull BuffImprove BuffInCombat BuffInferno BuffInvisibility BuffOff1 BuffPoison BuffRegenPenalty BuffSight BuffStat BuffStealth BuffSup1 BuffUtility BuffWhiteFlag DebuffDefense Spyglass Spymaster

Public Member Functions

void Refresh (float str, float dur)
 Change the buff's strength value. More...
 
void Deactivate ()
 Deactivate the buff. More...
 
void Activate ()
 Activate the buff. More...
 
virtual void OnActivate ()
 Function called when the buff has been activated. More...
 
virtual void OnDeactivate ()
 Function called when the buff has been deactivated. More...
 
- Public Member Functions inherited from TNBehaviour
virtual void DestroySelf ()
 Destroy this game object. More...
 

Public Attributes

float strength = 0f
 
float duration = -1f
 
GameUnit source
 Unit that created this buff. Used to give credit for kills. More...
 
- Public Attributes inherited from Attachable
PlayerItem item
 When an Attachable is added to the unit, this field will contain the item that added it. More...
 

Protected Member Functions

override void Awake ()
 
override void OnEnable ()
 
virtual void Start ()
 
virtual void OnNotify (HUDText hud, bool isActive)
 Show a notification above the unit that they've gained or lost this buff. More...
 
virtual void OnUpdate ()
 Function called on Update while the buff is active. More...
 

Protected Attributes

GameShip mShip
 
bool mActive = false
 
bool mStarted = false
 
- Protected Attributes inherited from Attachable
GameUnit mUnit
 

Properties

bool isActive [get]
 Whether the buff is currently active or not. More...
 
virtual string notificationText [get]
 Text shown when the buff gets activated. If 'null' is returned, nothing will be shown. More...
 
- Properties inherited from Attachable
GameUnit unit [get]
 Unit this attachable belongs to. More...
 
- Properties inherited from TNBehaviour
TNObject tno [get]
 

Member Function Documentation

void Buff.Activate ( )

Activate the buff.

override void Buff.Awake ( )
protectedvirtual

Reimplemented from Attachable.

void Buff.Deactivate ( )

Deactivate the buff.

virtual void Buff.OnActivate ( )
virtual
virtual void Buff.OnDeactivate ( )
virtual
override void Buff.OnEnable ( )
protectedvirtual

Reimplemented from TNBehaviour.

virtual void Buff.OnNotify ( HUDText  hud,
bool  isActive 
)
protectedvirtual

Show a notification above the unit that they've gained or lost this buff.

virtual void Buff.OnUpdate ( )
protectedvirtual

Function called on Update while the buff is active.

Reimplemented in BuffImprove.

void Buff.Refresh ( float  str,
float  dur 
)

Change the buff's strength value.

virtual void Buff.Start ( )
protectedvirtual

Member Data Documentation

float Buff.duration = -1f
bool Buff.mActive = false
protected
GameShip Buff.mShip
protected
bool Buff.mStarted = false
protected
GameUnit Buff.source

Unit that created this buff. Used to give credit for kills.

float Buff.strength = 0f

Property Documentation

bool Buff.isActive
get

Whether the buff is currently active or not.

virtual string Buff.notificationText
getprotected

Text shown when the buff gets activated. If 'null' is returned, nothing will be shown.


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