|
Oolite
|
#include <OOExhaustPlumeEntity.h>
Class Methods | |
| (id) | + exhaustForShip:withDefinition:andScale: |
| (void) | + setUpTexture |
| (OOTexture *) | + plumeTexture |
| (void) | + resetGraphicsState |
Private Attributes | |
| Vector | _exhaustScale |
| OOHPScalar | _vertices [34 *3] |
| GLfloat | _glVertices [34 *3] |
| GLfloat | _exhaustBaseColors [34 *4] |
| Frame | _track [kExhaustFrameCount] |
| OOTimeAbsolute | _trackTime |
| uint8_t | _nextFrame |
Definition at line 41 of file OOExhaustPlumeEntity.h.
|
implementation |
Reimplemented from Entity.
Definition at line 359 of file OOExhaustPlumeEntity.m.
References _exhaustBaseColors, _glVertices, _vertices, afttstr1, afttstr2, afttstr3, afttstr4, OOTexture::apply, Entity::isPlayer, OO_ENTER_OPENGL, OOGL, OOGLPopModelView(), OOGLPushModelView(), OOSetOpenGLState, OOVerifyOpenGLState, OPENGL_STATE_ADDITIVE_BLENDING, Entity::owner, pA, texture, tfan1, tstr1, tstr2, tstr3, tstr4, UNIVERSE, HPVector::x, HPVector::y, and HPVector::z.
| + (id) exhaustForShip: | (ShipEntity*) | ship | |
| withDefinition: | (NSArray*) | definition | |
| andScale: | (float) | scale |
Definition at line 57 of file OOExhaustPlumeEntity.m.
Referenced by ShipEntity::setUpSubEntities.
|
implementation |
Reimplemented from Entity.
Definition at line 99 of file OOExhaustPlumeEntity.m.
References Entity::collision_radius, and findCollisionRadius.
Referenced by findCollisionRadius, and ShipEntity::frustumRadius.
Provided by category OOExhaustPlumeEntity(Private).
Definition at line 558 of file OOExhaustPlumeEntity.m.
References Frame::k, NEXT, Frame::orientation, Frame::position, PREV, Frame::timeframe, vector_forward_from_quaternion(), Quaternion::w, HPVector::x, Quaternion::x, HPVector::y, Quaternion::y, HPVector::z, and Quaternion::z.
Referenced by update:.
| - (void) getJSClass: | (JSClass**) | outClass | |
| andPrototype: | (JSObject**) | outPrototype |
Reimplemented from Entity.
Provided by category OOExhaustPlumeEntity(OOJavaScriptExtensions).
Definition at line 107 of file OOJSExhaustPlume.m.
| - (id) initForShip: | (ShipEntity*) | ship | |
| withDefinition: | (NSArray*) | definition | |
| andScale: | (float) | scale |
Definition at line 62 of file OOExhaustPlumeEntity.m.
References count, Entity::init, nil, scale, Entity::setOwner:, Entity::setPosition:, and setScale:.
|
implementation |
Reimplemented from Entity.
Definition at line 94 of file OOExhaustPlumeEntity.m.
References isExhaust.
Referenced by isExhaust.
| - (BOOL) isVisibleToScripts |
Reimplemented from Entity.
Provided by category OOExhaustPlumeEntity(OOJavaScriptExtensions).
Definition at line 116 of file OOJSExhaustPlume.m.
| - (BOOL) isVisibleToScripts |
Reimplemented from Entity.
Provided by category OOExhaustPlumeEntity(OOJavaScriptExtensions).
| - (JSClassID) oo_jsClassID |
Reimplemented from Entity.
Provided by category OOExhaustPlumeEntity(OOJavaScriptExtensions).
Definition at line 106 of file OOJSExhaustPlume.m.
| - (NSString *) oo_jsClassName |
Reimplemented from Entity.
Provided by category OOExhaustPlumeEntity(OOJavaScriptExtensions).
Definition at line 111 of file OOJSExhaustPlume.m.
| - (NSString *) oo_jsClassName |
Reimplemented from Entity.
Provided by category OOExhaustPlumeEntity(OOJavaScriptExtensions).
| + (OOTexture *) plumeTexture |
Definition at line 659 of file OOExhaustPlumeEntity.m.
References nil, plumeTexture, setUpTexture, and sPlumeTexture.
Referenced by plumeTexture, and texture.
|
implementation |
Reimplemented from <OOSubEntity>.
Definition at line 631 of file OOExhaustPlumeEntity.m.
References _exhaustScale, and vector_multiply_scalar().
|
implementation |
Reimplemented from <OOSubEntity>.
Definition at line 636 of file OOExhaustPlumeEntity.m.
| + (void) resetGraphicsState |
Definition at line 666 of file OOExhaustPlumeEntity.m.
References nil, resetGraphicsState, and sPlumeTexture.
Referenced by resetGraphicsState.
| - (void) resetPlume |
Definition at line 610 of file OOExhaustPlumeEntity.m.
References _nextFrame, _track, Entity::drawTransformationMatrix, kExhaustFrameCount, kIdentityQuaternion, kZeroVector, OOHPVectorMultiplyMatrix(), Entity::owner, Entity::position, and resetPlume.
Referenced by ShipEntity::resetExhaustPlumes, and resetPlume.
|
implementation |
Provided by category OOExhaustPlumeEntity(Private).
Definition at line 542 of file OOExhaustPlumeEntity.m.
References HPvector_add(), kExhaustFrameCount, Entity::normalOrientation, OOHPVectorMultiplyMatrix(), Entity::owner, OOExhaustPlumeEntity(Private)::saveToLastFrame, and ShipEntity::upVector.
Referenced by OOExhaustPlumeEntity(Private)::saveToLastFrame, and update:.
| - (Vector) scale |
Definition at line 81 of file OOExhaustPlumeEntity.m.
References _exhaustScale, and scale.
Referenced by initForShip:withDefinition:andScale:, scale, and setScale:.
| - (void) setScale: | (Vector) | scale |
Definition at line 86 of file OOExhaustPlumeEntity.m.
References _exhaustScale, and scale.
Referenced by ExhaustPlumeSetProperty(), ExhaustPlumeSetProperty(), and initForShip:withDefinition:andScale:.
| + (void) setUpTexture |
Definition at line 647 of file OOExhaustPlumeEntity.m.
References nil, OOGraphicsResetManager::registerClient:, setUpTexture, OOGraphicsResetManager::sharedManager, sPlumeTexture, and OOTexture::textureWithName:inFolder:options:anisotropy:lodBias:.
Referenced by plumeTexture, and setUpTexture.
| - (OOTexture *) texture |
Definition at line 642 of file OOExhaustPlumeEntity.m.
References plumeTexture, and texture.
Referenced by drawSubEntityImmediate:translucent:, and texture.
|
implementation |
Reimplemented from Entity.
Definition at line 104 of file OOExhaustPlumeEntity.m.
References _exhaustBaseColors, _exhaustScale, _trackTime, _vertices, Entity::collision_radius, cross_product(), ShipEntity::damage, ShipEntity::exhaustEmissiveColor, EXPECT_NOT, ShipEntity::flightSpeed, ShipEntity::forwardVector, frameAtTime:fromFrame:, OOColor::getRed:green:blue:alpha:, HPmagnitude(), HPvector_add(), HPvector_subtract(), Entity::isPlayer, Entity::isVisible, Frame::k, kFadeLevel1, kFadeLevel2, kFadeLevel3, kOverallAlpha, kScaleLevel1, kScaleLevel2, kScaleLevel3, kTimeStep, M_SQRT1_2, make_HPvector(), make_vector(), nil, Entity::normalOrientation, Entity::owner, Entity::position, Frame::position, randf(), ranrot_rand, ShipEntity::rightVector, saveToLastFrame, Entity::speed, ShipEntity::speedFactor, UNIVERSE, ShipEntity::upVector, vector_add(), vector_multiply_scalar(), vectorToHPVector(), HPVector::x, Vector::x, HPVector::y, Vector::y, HPVector::z, and Vector::z.
|
private |
Definition at line 46 of file OOExhaustPlumeEntity.h.
Referenced by drawSubEntityImmediate:translucent:, and update:.
|
private |
Definition at line 43 of file OOExhaustPlumeEntity.h.
Referenced by rescaleBy:, scale, setScale:, and update:.
|
private |
Definition at line 45 of file OOExhaustPlumeEntity.h.
Referenced by drawSubEntityImmediate:translucent:.
|
private |
Definition at line 49 of file OOExhaustPlumeEntity.h.
Referenced by resetPlume.
|
private |
Definition at line 47 of file OOExhaustPlumeEntity.h.
Referenced by resetPlume.
|
private |
Definition at line 48 of file OOExhaustPlumeEntity.h.
Referenced by update:.
|
private |
Definition at line 44 of file OOExhaustPlumeEntity.h.
Referenced by drawSubEntityImmediate:translucent:, and update:.