Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
Protected Member Functions | Protected Attributes | List of all members
dp88_buildingScripts_componentBaseClass Class Reference

dp88 Building Scripts - Component Base Class More...

#include <dp88_buildingScripts.h>

Protected Member Functions

void Detach (GameObject *obj)
 
virtual void OnDetach (GameObject *obj)
 
void PlayAnimation (GameObject *obj, const char *animation, int nStartFrame, int nEndFrame, bool bLooped)
 
- Protected Member Functions inherited from dp88_buildingScripts_baseClass
GameObject * RegisterWithParent (GameObject *obj, const char *preset_name, int type)
 
void Custom (GameObject *obj, int type, int param, GameObject *sender)
 
virtual void OnCustom (GameObject *obj, int type, int param, GameObject *sender)
 
virtual void OnBuildingOffline (GameObject *obj)
 
virtual void OnBuildingOnline (GameObject *obj)
 
virtual void OnBuildingCaptured (GameObject *obj, int team)
 
virtual void OnBuildingDestroyed (GameObject *obj)
 

Protected Attributes

LoopedAnimationControllerm_pAnimController
 
- Protected Attributes inherited from dp88_buildingScripts_baseClass
int m_parentId
 

Detailed Description

Author
Daniel Paul (danpa.nosp@m.ul88.nosp@m.@yaho.nosp@m.o.co.nosp@m..uk)

An extension of dp88_buildingScripts_objectBaseClass which adds extra support for building components such as weakpoints and purchase terminals.

Member Function Documentation

◆ Detach()

void dp88_buildingScripts_componentBaseClass::Detach ( GameObject * obj)
protected

Cleans up animation controller

◆ OnDetach()

virtual void dp88_buildingScripts_componentBaseClass::OnDetach ( GameObject * obj)
inlineprotectedvirtual

Called by Detach() to allow derived classes to use the event without overriding Detach()

◆ PlayAnimation()

void dp88_buildingScripts_componentBaseClass::PlayAnimation ( GameObject * obj,
const char * animation,
int nStartFrame,
int nEndFrame,
bool bLooped )
protected

Plays the specified animation, creating a new animation controller if one does not exist. If the animation name is NULL, a zero length string or invalid any existing animation is stopped

Member Data Documentation

◆ m_pAnimController

LoopedAnimationController* dp88_buildingScripts_componentBaseClass::m_pAnimController
protected

Controller for the weakpoint animation