|
Oolite
|
#include <OOFlasherEntity.h>
Class Methods | |
| (instancetype) | + flasherWithDictionary: |
| Class Methods inherited from OOLightParticleEntity | |
| (void) | + setUpTexture |
| (OOTexture *) | + defaultParticleTexture |
| (void) | + resetGraphicsState [implementation] |
Private Attributes | |
| float | _frequency |
| float | _phase |
| float | _wave |
| float | _brightfraction |
| NSArray * | _colors |
| NSUInteger | _activeColor |
| OOTimeDelta | _time |
| BOOL | _active |
| BOOL | _justSwitched |
Definition at line 31 of file OOFlasherEntity.h.
| - (OOColor *) color |
Definition at line 97 of file OOFlasherEntity.m.
References color, and OOColor::colorWithRed:green:blue:alpha:.
Referenced by color, FlasherGetProperty(), and FlasherGetProperty().
|
implementation |
Reimplemented from Entity.
Definition at line 64 of file OOFlasherEntity.m.
References Entity::dealloc, and dealloc.
Referenced by dealloc.
|
implementation |
Reimplemented from OOLightParticleEntity.
Definition at line 173 of file OOFlasherEntity.m.
References _active, and OOLightParticleEntity::drawImmediate:translucent:.
|
implementation |
Reimplemented from OOLightParticleEntity.
Definition at line 180 of file OOFlasherEntity.m.
References _active, and OOLightParticleEntity::drawSubEntityImmediate:translucent:.
|
implementation |
Reimplemented from Entity.
Definition at line 192 of file OOFlasherEntity.m.
References OOLightParticleEntity::diameter, and findCollisionRadius.
Referenced by findCollisionRadius.
| + (instancetype) flasherWithDictionary: | (NSDictionary*) | dictionary |
Definition at line 42 of file OOFlasherEntity.m.
Referenced by OOVisualEffectEntity(Private)::setUpOneFlasher:, and ShipEntity(Private)::setUpOneFlasher:.
| - (float) fraction |
Definition at line 125 of file OOFlasherEntity.m.
References _brightfraction, and fraction.
Referenced by fraction, and setFraction:.
| - (float) frequency |
Definition at line 105 of file OOFlasherEntity.m.
References _frequency, and frequency.
Referenced by frequency, and setFrequency:.
|
implementation |
Provided by category OOFlasherEntity(Internal).
Definition at line 82 of file OOFlasherEntity.m.
References OOFlasherEntity(Internal)::getCurrentColorComponents, and OOLightParticleEntity::setColor:alpha:.
Referenced by OOFlasherEntity(Internal)::getCurrentColorComponents, and initWithDictionary:.
| - (void) getJSClass: | (JSClass**) | outClass | |
| andPrototype: | (JSObject**) | outPrototype |
Reimplemented from Entity.
Provided by category OOFlasherEntity(OOJavaScriptExtensions).
Definition at line 118 of file OOJSFlasher.m.
| - (id) initWithDictionary: | (NSDictionary*) | dictionary |
Definition at line 47 of file OOFlasherEntity.m.
References _brightfraction, _frequency, _phase, getCurrentColorComponents, setActive:, and setUpColors:.
| - (BOOL) isActive |
|
implementation |
Reimplemented from Entity.
Definition at line 187 of file OOFlasherEntity.m.
References isFlasher.
Referenced by isFlasher.
| - (BOOL) isVisibleToScripts |
Reimplemented from Entity.
Provided by category OOFlasherEntity(OOJavaScriptExtensions).
Definition at line 127 of file OOJSFlasher.m.
| - (BOOL) isVisibleToScripts |
Reimplemented from Entity.
Provided by category OOFlasherEntity(OOJavaScriptExtensions).
| - (JSClassID) oo_jsClassID |
Reimplemented from Entity.
Provided by category OOFlasherEntity(OOJavaScriptExtensions).
Definition at line 117 of file OOJSFlasher.m.
| - (NSString *) oo_jsClassName |
Reimplemented from Entity.
Provided by category OOFlasherEntity(OOJavaScriptExtensions).
Definition at line 122 of file OOJSFlasher.m.
| - (NSString *) oo_jsClassName |
Reimplemented from Entity.
Provided by category OOFlasherEntity(OOJavaScriptExtensions).
| - (float) phase |
|
implementation |
Reimplemented from <OOSubEntity>.
Definition at line 197 of file OOFlasherEntity.m.
References OOLightParticleEntity::diameter, and OOLightParticleEntity::setDiameter:.
Referenced by ShipEntity(Private)::setUpOneFlasher:.
|
implementation |
Reimplemented from <OOSubEntity>.
Definition at line 202 of file OOFlasherEntity.m.
| - (void) setActive: | (BOOL) | active |
Definition at line 92 of file OOFlasherEntity.m.
References _active.
Referenced by FlasherSetProperty(), FlasherSetProperty(), and initWithDictionary:.
| - (void) setFraction: | (float) | fraction |
Definition at line 130 of file OOFlasherEntity.m.
References _brightfraction, and fraction.
Referenced by FlasherSetProperty(), and FlasherSetProperty().
| - (void) setFrequency: | (float) | frequency |
Definition at line 110 of file OOFlasherEntity.m.
References _frequency, and frequency.
Referenced by FlasherSetProperty(), and FlasherSetProperty().
| - (void) setPhase: | (float) | phase |
Definition at line 120 of file OOFlasherEntity.m.
Referenced by FlasherSetProperty(), and FlasherSetProperty().
|
implementation |
Provided by category OOFlasherEntity(Internal).
Definition at line 71 of file OOFlasherEntity.m.
References OOColor::colorWithDescription:saturationFactor:, and nil.
Referenced by initWithDictionary:.
|
implementation |
Reimplemented from Entity.
Definition at line 135 of file OOFlasherEntity.m.
References _activeColor, _brightfraction, OOLightParticleEntity::_colorComponents, _frequency, _justSwitched, _phase, _time, _wave, count, M_PI, OOLightParticleEntity::setColor:, and Entity::update:.
|
private |
Definition at line 42 of file OOFlasherEntity.h.
Referenced by drawImmediate:translucent:, drawSubEntityImmediate:translucent:, isActive, and setActive:.
|
private |
Definition at line 38 of file OOFlasherEntity.h.
Referenced by update:.
|
private |
Definition at line 36 of file OOFlasherEntity.h.
Referenced by fraction, initWithDictionary:, setFraction:, and update:.
|
private |
Definition at line 37 of file OOFlasherEntity.h.
|
private |
Definition at line 33 of file OOFlasherEntity.h.
Referenced by frequency, initWithDictionary:, setFrequency:, and update:.
|
private |
Definition at line 43 of file OOFlasherEntity.h.
Referenced by update:.
|
private |
Definition at line 34 of file OOFlasherEntity.h.
Referenced by initWithDictionary:, phase, setPhase:, and update:.
|
private |
Definition at line 40 of file OOFlasherEntity.h.
Referenced by update:.
|
private |
Definition at line 35 of file OOFlasherEntity.h.
Referenced by update:.