Oolite 1.91.0.7668-250429-8542c40
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
OOFlasherEntity(Internal) Category Reference

Instance Methods

(void) - setUpColors:
 
(void) - getCurrentColorComponents
 

Detailed Description

Definition at line 34 of file OOFlasherEntity.m.

Method Documentation

◆ getCurrentColorComponents

- (void) getCurrentColorComponents

Extends class OOFlasherEntity.

Definition at line 91 of file OOFlasherEntity.m.

92{
93 [self setColor:[_colors objectAtIndex:_activeColor] alpha:_colorComponents[3]];
94}

References getCurrentColorComponents, and OOLightParticleEntity::setColor:alpha:.

Referenced by getCurrentColorComponents, and OOFlasherEntity::initWithDictionary:.

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

◆ setUpColors:

- (void) setUpColors: (NSArray *) colorSpecifiers

Extends class OOFlasherEntity.

Definition at line 77 of file OOFlasherEntity.m.

77 :(NSArray *)colorSpecifiers
78{
79 NSMutableArray *colors = [NSMutableArray arrayWithCapacity:[colorSpecifiers count]];
80 id specifier = nil;
81 NSEnumerator *specEnum = [colorSpecifiers objectEnumerator];
82 while ((specifier = [specEnum nextObject]))
83 {
84 [colors addObject:[OOColor colorWithDescription:specifier saturationFactor:0.75f]];
85 }
86
87 _colors = [colors copy];
88}
return nil
OOColor * colorWithDescription:saturationFactor:(id description,[saturationFactor] float factor)
Definition OOColor.m:133

References OOColor::colorWithDescription:saturationFactor:, and nil.

Referenced by OOFlasherEntity::initWithDictionary:.

+ 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: