![]() |
Oolite 1.91.0.7650-250121-affa790
|
#include <OOFlashEffectEntity.h>
Class Methods | |
(instancetype) | + explosionFlashFromEntity: |
(instancetype) | + laserFlashWithPosition:velocity:color: |
(void) | + setUpTexture |
(void) | + resetGraphicsState [implementation] |
![]() | |
(OOTexture *) | + defaultParticleTexture |
Private Attributes | |
float | _duration |
float | _growthRate |
float | _alpha |
Definition at line 31 of file OOFlashEffectEntity.h.
+ (instancetype) explosionFlashFromEntity: | (Entity *) | entity |
Definition at line 81 of file OOFlashEffectEntity.m.
References Entity::collisionRadius, Entity::position, and Entity::velocity.
Referenced by ShipEntity::becomeExplosion.
|
implementation |
Definition at line 58 of file OOFlashEffectEntity.m.
References _alpha, _growthRate, kExplosionFlashAlpha, kExplosionFlashDuration, kMinExplosionGrowth, and Entity::setVelocity:.
|
implementation |
Definition at line 70 of file OOFlashEffectEntity.m.
References _alpha, kLaserFlashDuration, kLaserFlashInitialSize, and Entity::setVelocity:.
|
implementation |
Provided by category OOFlashEffectEntity(Private).
Definition at line 93 of file OOFlashEffectEntity.m.
References kGrowthRateFactor, OOLightParticleEntity::setColor:alpha:, and Entity::setPosition:.
+ (instancetype) laserFlashWithPosition: | (HPVector) | position | |
velocity: | (Vector) | vel | |
color: | (OOColor *) | color |
Definition at line 87 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 147 of file OOFlashEffectEntity.m.
References nil, OOTexture::release, resetGraphicsState, and sFlashTexture.
Referenced by resetGraphicsState.
+ (void) setUpTexture |
Reimplemented from OOLightParticleEntity.
Definition at line 133 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 126 of file OOFlashEffectEntity.m.
References nil, setUpTexture, sFlashTexture, and texture.
Referenced by texture.
|
implementation |
Reimplemented from Entity.
Definition at line 107 of file OOFlashEffectEntity.m.
References _alpha, OOLightParticleEntity::_colorComponents, OOLightParticleEntity::_diameter, _duration, _growthRate, Entity::timeElapsedSinceSpawn, and Entity::update:.
|
private |
Definition at line 36 of file OOFlashEffectEntity.h.
Referenced by initExplosionFlashWithPosition:velocity:size:, initLaserFlashWithPosition:velocity:color:, and update:.
|
private |
Definition at line 34 of file OOFlashEffectEntity.h.
Referenced by update:.
|
private |
Definition at line 35 of file OOFlashEffectEntity.h.
Referenced by initExplosionFlashWithPosition:velocity:size:, and update:.