|
Oolite
|
#include <OOFlashEffectEntity.h>
Class Methods | |
| (instancetype) | + explosionFlashFromEntity: |
| (instancetype) | + laserFlashWithPosition:velocity:color: |
| (void) | + setUpTexture |
| (void) | + resetGraphicsState [implementation] |
| Class Methods inherited from OOLightParticleEntity | |
| (OOTexture *) | + defaultParticleTexture |
Private Attributes | |
| float | _duration |
| float | _growthRate |
| float | _alpha |
Definition at line 30 of file OOFlashEffectEntity.h.
| + (instancetype) explosionFlashFromEntity: | (Entity*) | entity |
Definition at line 74 of file OOFlashEffectEntity.m.
References Entity::collisionRadius, Entity::position, and Entity::velocity.
Referenced by ShipEntity::becomeExplosion.
|
implementation |
Definition at line 55 of file OOFlashEffectEntity.m.
References _alpha, _growthRate, kExplosionFlashAlpha, kExplosionFlashDuration, kMinExplosionGrowth, and Entity::setVelocity:.
|
implementation |
Definition at line 65 of file OOFlashEffectEntity.m.
References _alpha, kLaserFlashDuration, kLaserFlashInitialSize, and Entity::setVelocity:.
|
implementation |
Provided by category OOFlashEffectEntity(Private).
Definition at line 84 of file OOFlashEffectEntity.m.
References kGrowthRateFactor, magnitude(), OOLightParticleEntity::setColor:alpha:, and Entity::setPosition:.
| + (instancetype) laserFlashWithPosition: | (HPVector) | position | |
| velocity: | (Vector) | vel | |
| color: | (OOColor*) | color |
Definition at line 79 of file OOFlashEffectEntity.m.
Referenced by Universe::addLaserHitEffectsAt:against:damage:color:.
|
implementation |
Provided by category OOFlashEffectEntity(Private).
|
implementation |
Reimplemented from OOLightParticleEntity.
Provided by category OOFlashEffectEntity(Private).
Definition at line 134 of file OOFlashEffectEntity.m.
References nil, resetGraphicsState, and sFlashTexture.
Referenced by resetGraphicsState.
| + (void) setUpTexture |
Reimplemented from OOLightParticleEntity.
Definition at line 122 of file OOFlashEffectEntity.m.
References nil, OOGraphicsResetManager::registerClient:, setUpTexture, sFlashTexture, OOGraphicsResetManager::sharedManager, and OOTexture::textureWithName:inFolder:options:anisotropy:lodBias:.
Referenced by Universe::initWithGameView:, setUpTexture, and texture.
|
implementation |
Reimplemented from OOLightParticleEntity.
Definition at line 115 of file OOFlashEffectEntity.m.
References nil, setUpTexture, sFlashTexture, and texture.
Referenced by texture.
|
implementation |
Reimplemented from Entity.
Definition at line 96 of file OOFlashEffectEntity.m.
References _alpha, OOLightParticleEntity::_colorComponents, OOLightParticleEntity::_diameter, _duration, _growthRate, Entity::timeElapsedSinceSpawn, and Entity::update:.
|
private |
Definition at line 34 of file OOFlashEffectEntity.h.
Referenced by initExplosionFlashWithPosition:velocity:size:, initLaserFlashWithPosition:velocity:color:, and update:.
|
private |
Definition at line 32 of file OOFlashEffectEntity.h.
Referenced by update:.
|
private |
Definition at line 33 of file OOFlashEffectEntity.h.
Referenced by initExplosionFlashWithPosition:velocity:size:, and update:.