Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
ApplyRandomForceNugget Class Reference

Inherits ObjectCreationNugget.

Public Member Functions

 ApplyRandomForceNugget ()
 
virtual Objectcreate (const Object *primary, const Object *secondary, UnsignedInt lifetimeFrames=0) const
 
virtual Objectcreate (const Object *primaryObj, const Coord3D *primary, const Coord3D *secondary, Real angle, UnsignedInt lifetimeFrames=0) const
 
- Public Member Functions inherited from ObjectCreationNugget
 ObjectCreationNugget ()
 
virtual Objectcreate (const Object *primaryObj, const Coord3D *primary, const Coord3D *secondary, Bool createOwner, UnsignedInt lifetimeFrames=0) const
 
- Public Member Functions inherited from MemoryPoolObject
void deleteInstance ()
 

Static Public Member Functions

static void parse (INI *ini, void *instance, void *, const void *)
 

Additional Inherited Members

- Protected Member Functions inherited from MemoryPoolObject
virtual ~MemoryPoolObject ()
 
void * operator new (size_t s)
 
void operator delete (void *p)
 
virtual MemoryPoolgetObjectMemoryPool ()=0
 

Detailed Description

Definition at line 619 of file ObjectCreationList.cpp.

Constructor & Destructor Documentation

◆ ApplyRandomForceNugget()

ApplyRandomForceNugget::ApplyRandomForceNugget ( )
inline

Definition at line 624 of file ObjectCreationList.cpp.

Member Function Documentation

◆ create() [1/2]

virtual Object * ApplyRandomForceNugget::create ( const Object * primary,
const Object * secondary,
UnsignedInt lifetimeFrames = 0 ) const
inlinevirtual

the object-based version... by default, just call the location-based implementation. Note that primary can be null, so you must check for this.

Todo
srj – ack. const_cast is evil.

Reimplemented from ObjectCreationNugget.

Definition at line 633 of file ObjectCreationList.cpp.

◆ create() [2/2]

virtual Object * ApplyRandomForceNugget::create ( const Object * primaryObj,
const Coord3D * primary,
const Coord3D * secondary,
Real angle,
UnsignedInt lifetimeFrames = 0 ) const
inlinevirtual

The main guts of the system: actually perform the sound and/or video effects needed. Note that primary can be null, so you must check for this. Bool useOwner determines whether we are creating the the master object or not (for deliverpayload)

Implements ObjectCreationNugget.

Definition at line 664 of file ObjectCreationList.cpp.

◆ parse()

static void ApplyRandomForceNugget::parse ( INI * ini,
void * instance,
void * ,
const void *  )
inlinestatic

Definition at line 670 of file ObjectCreationList.cpp.


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