Oolite
Loading...
Searching...
No Matches
OOFlashEffectEntity(Private) Category Reference

Instance Methods

(id) - initWithPosition:size:color:duration:
(void) - performUpdate:

Class Methods

(void) + resetGraphicsState

Detailed Description

Definition at line 42 of file OOFlashEffectEntity.m.

Method Documentation

◆ initWithPosition:size:color:duration:

- (id) initWithPosition: (HPVector) pos
size: (float) size
color: (OOColor *) color
duration: (float) duration 

Extends class OOFlashEffectEntity.

Definition at line 84 of file OOFlashEffectEntity.m.

84 :(HPVector)pos size:(float)size color:(OOColor*)color duration:(float)duration
85{
86 if ((self = [super initWithDiameter:size])) {
87 [self setPosition:pos];
88 _duration = duration;
89 _growthRate = kGrowthRateFactor * size;
90 [self setColor:color alpha:1.0f];
91 assert([self collisionRadius] == 0 && [self energy] == 0 && magnitude([self velocity]) == 0);
92 }
93 return self;
94}
#define kGrowthRateFactor
struct HPVector HPVector
OOINLINE OOScalar magnitude(Vector vec) INLINE_CONST_FUNC
Definition OOVector.h:242
voidpf void uLong size
Definition ioapi.h:126

References kGrowthRateFactor, magnitude(), OOLightParticleEntity::setColor:alpha:, and Entity::setPosition:.

Here is the call graph for this function:

◆ performUpdate:

- (void) performUpdate: (OOTimeDelta) delta_t

Extends class OOFlashEffectEntity.

◆ resetGraphicsState

+ (void) resetGraphicsState

Extends class OOFlashEffectEntity.

References resetGraphicsState.

Referenced by resetGraphicsState.

Here is the call graph for this function:
Here is the caller graph for this function:

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