![]() |
Oolite 1.91.0.7650-250121-affa790
|
#include <OOLightParticleEntity.h>
Class Methods | |
(void) | + setUpTexture |
(OOTexture *) | + defaultParticleTexture |
(void) | + resetGraphicsState [implementation] |
Protected Attributes | |
GLfloat | _colorComponents [4] |
float | _diameter |
![]() | |
HPVector | lastPosition |
Quaternion | lastOrientation |
GLfloat | distanceTravelled |
OOMatrix | rotMatrix |
Vector | velocity |
GLfloat | energy |
GLfloat | maxEnergy |
BoundingBox | boundingBox |
GLfloat | mass |
NSMutableArray * | collidingEntities |
OOTimeAbsolute | spawnTime |
struct JSObject * | _jsSelf |
![]() | |
OOWeakReference * | weakSelf |
Additional Inherited Members | |
![]() | |
OOUniversalID | universalID |
unsigned | isShip: 1 |
unsigned | isStation: 1 |
unsigned | isPlayer: 1 |
unsigned | isWormhole: 1 |
unsigned | isSubEntity: 1 |
unsigned | hasMoved: 1 |
unsigned | hasRotated: 1 |
unsigned | hasCollided: 1 |
unsigned | isSunlit: 1 |
unsigned | collisionTestFilter: 2 |
unsigned | throw_sparks: 1 |
unsigned | isImmuneToBreakPatternHide: 1 |
unsigned | isExplicitlyNotMainStation: 1 |
unsigned | isVisualEffect: 1 |
OOScanClass | scanClass |
GLfloat | zero_distance |
GLfloat | cam_zero_distance |
GLfloat | no_draw_distance |
GLfloat | collision_radius |
HPVector | position |
Vector | cameraRelativePosition |
Quaternion | orientation |
OOColor * | atmosphereFogging |
int | zero_index |
Entity * | x_previous |
Entity * | x_next |
Entity * | y_previous |
Entity * | y_next |
Entity * | z_previous |
Entity * | z_next |
Entity * | collision_chain |
OOUniversalID | shadingEntityID |
Entity * | collider |
CollisionRegion * | collisionRegion |
Definition at line 33 of file OOLightParticleEntity.h.
|
implementation |
Reimplemented from Entity.
Definition at line 333 of file OOLightParticleEntity.m.
References allTextures, and texture.
Referenced by allTextures.
|
implementation |
Reimplemented from Entity.
Reimplemented in OOPlasmaShotEntity.
Definition at line 325 of file OOLightParticleEntity.m.
References canCollide.
Referenced by canCollide.
+ (OOTexture *) defaultParticleTexture |
Definition at line 305 of file OOLightParticleEntity.m.
References defaultParticleTexture, nil, sBlobTexture, and setUpTexture.
Referenced by OOParticleSystem::allTextures, defaultParticleTexture, texture, and OOParticleSystem::texture.
- (float) diameter |
Definition at line 75 of file OOLightParticleEntity.m.
References _diameter, and diameter.
Referenced by diameter, OOFlasherEntity::findCollisionRadius, initWithDiameter:, OOFlasherEntity::rescaleBy:, and setDiameter:.
|
implementation |
Reimplemented from Entity.
Reimplemented in OOFlasherEntity.
Definition at line 138 of file OOLightParticleEntity.m.
References _colorComponents, _diameter, OOTexture::apply, Entity::cam_zero_distance, PlayerEntity::customViewForwardVector, PlayerEntity::customViewRightVector, PlayerEntity::customViewUpVector, Entity::drawRotationMatrix, Entity::isImmuneToBreakPatternHide, Entity::isSubEntity, nil, Entity::no_draw_distance, NO_TARGET, OO_ENTER_OPENGL, OOGL, OOGLBEGIN, OOGLEND, OOGLMultModelView(), OOSetOpenGLState, OOVerifyOpenGLState, OPENGL_STATE_ADDITIVE_BLENDING, Entity::owner, PLAYER, texture, and UNIVERSE.
Referenced by OOFlasherEntity::drawImmediate:translucent:, and drawSubEntityImmediate:translucent:.
- (void) drawSubEntityImmediate: | (bool) | immediate | |
translucent: | (bool) | translucent |
Reimplemented from Entity.
Reimplemented in OOFlasherEntity.
Definition at line 100 of file OOLightParticleEntity.m.
References Entity::cam_zero_distance, Entity::camZeroDistance, drawImmediate:translucent:, Entity::drawRotationMatrix, Entity::isSubEntity, nil, Entity::no_draw_distance, NO_TARGET, OOGLLoadModelView(), OOGLPopModelView(), OOGLPushModelView(), OOGLTranslateModelView(), OOHPVectorMultiplyMatrix(), Entity::owner, PLAYER, Entity::position, and UNIVERSE.
Referenced by OOFlasherEntity::drawSubEntityImmediate:translucent:.
- (id) initWithDiameter: | (float) | diameter |
Definition at line 54 of file OOLightParticleEntity.m.
References _colorComponents, _diameter, diameter, Entity::init, M_SQRT2, Entity::no_draw_distance, NO_DRAW_DISTANCE_FACTOR, PARTICLE_DISTANCE_SCALE_HIGH, PARTICLE_DISTANCE_SCALE_LOW, Entity::setScanClass:, and Entity::setStatus:.
|
implementation |
Reimplemented from Entity.
Definition at line 319 of file OOLightParticleEntity.m.
References isEffect.
Referenced by isEffect.
|
implementation |
Reimplemented in OOFlashEffectEntity.
Provided by category OOLightParticleEntity(Private).
Definition at line 312 of file OOLightParticleEntity.m.
References nil, OOTexture::release, resetGraphicsState, and sBlobTexture.
Referenced by resetGraphicsState.
- (void) setColor: | (OOColor *) | color |
Definition at line 87 of file OOLightParticleEntity.m.
References OOColor::getRed:green:blue:alpha:.
Referenced by ShipEntity::fireDirectLaserShotAt:, ShipEntity::fireLaserShotInDirection:weaponIdentifier:, ShipEntity::fireSubentityLaserShot:, FlasherSetProperty(), OOPlasmaBurstEntity::initWithPosition:, setColor:alpha:, and OOFlasherEntity::update:.
Definition at line 93 of file OOLightParticleEntity.m.
References _colorComponents, and setColor:.
Referenced by OOFlasherEntity(Internal)::getCurrentColorComponents, OOFlashEffectEntity(Private)::initWithPosition:size:color:duration:, and OOPlasmaShotEntity::initWithPosition:velocity:energy:duration:color:.
- (void) setDiameter: | (float) | diameter |
Definition at line 81 of file OOLightParticleEntity.m.
References _diameter, and diameter.
Referenced by FlasherSetProperty(), and OOFlasherEntity::rescaleBy:.
+ (void) setUpTexture |
Reimplemented in OOFlashEffectEntity.
Definition at line 291 of file OOLightParticleEntity.m.
References nil, OOGraphicsResetManager::registerClient:, sBlobTexture, setUpTexture, OOGraphicsResetManager::sharedManager, and OOTexture::textureWithName:inFolder:options:anisotropy:lodBias:.
Referenced by defaultParticleTexture, Universe::initWithGameView:, and setUpTexture.
- (OOTexture *) texture |
Reimplemented in OOFlashEffectEntity.
Definition at line 285 of file OOLightParticleEntity.m.
References defaultParticleTexture, and texture.
Referenced by allTextures, drawImmediate:translucent:, and texture.
|
protected |
Definition at line 36 of file OOLightParticleEntity.h.
Referenced by drawImmediate:translucent:, initWithDiameter:, OOPlasmaShotEntity::initWithPosition:velocity:energy:duration:color:, setColor:alpha:, OOFlashEffectEntity::update:, OOFlasherEntity::update:, OOPlasmaBurstEntity::update:, and OOPlasmaShotEntity::update:.
|
protected |
Definition at line 37 of file OOLightParticleEntity.h.
Referenced by diameter, drawImmediate:translucent:, initWithDiameter:, setDiameter:, OOFlashEffectEntity::update:, and OOPlasmaBurstEntity::update:.