![]() |
Oolite 1.91.0.7650-250121-affa790
|
#include <OOSunEntity.h>
Instance Methods | |
(id) | - initSunWithColor:andDictionary: |
(BOOL) | - setSunColor: |
(BOOL) | - changeSunProperty:withDictionary: |
(OOStellarBodyType) | - planetType |
(void) | - getDiffuseComponents: |
(void) | - getSpecularComponents: |
(void) | - setRadius:andCorona: |
(BOOL) | - willGoNova |
(BOOL) | - goneNova |
(void) | - setGoingNova:inTime: |
(void) | - drawStarGlare |
(void) | - drawDirectVisionSunGlare |
(void) | - resetNova |
(id) | - init [implementation] |
(void) | - dealloc [implementation] |
(NSString *) | - descriptionComponents [implementation] |
(BOOL) | - canCollide [implementation] |
(BOOL) | - checkCloseCollisionWith: [implementation] |
(void) | - update: [implementation] |
(void) | - drawImmediate:translucent: [implementation] |
(void) | - updateCameraRelativePosition [implementation] |
(void) | - drawOpaqueParts [implementation] |
(void) | - drawTranslucentParts [implementation] |
(void) | - calculateGLArrays:width:zDistance: [implementation] |
(double) | - radius [implementation] |
(void) | - setPosition: [implementation] |
(BOOL) | - isSun [implementation] |
(BOOL) | - isVisible [implementation] |
(NSString *) | - name [implementation] |
(void) | - setName: [implementation] |
(BOOL) | - isVisibleToScripts [implementation] |
(void) | - getJSClass:andPrototype: [implementation] |
(NSString *) | - oo_jsClassName [implementation] |
![]() | |
(NSUInteger) | - sessionID |
(BOOL) | - isShip |
(BOOL) | - isDock |
(BOOL) | - isStation |
(BOOL) | - isSubEntity |
(BOOL) | - isPlayer |
(BOOL) | - isPlanet |
(BOOL) | - isSunlit |
(BOOL) | - isStellarObject |
(BOOL) | - isSky |
(BOOL) | - isWormhole |
(BOOL) | - isEffect |
(BOOL) | - isVisualEffect |
(BOOL) | - isWaypoint |
(BOOL) | - validForAddToUniverse |
(void) | - addToLinkedLists |
(void) | - removeFromLinkedLists |
(void) | - updateLinkedLists |
(void) | - wasAddedToUniverse |
(void) | - wasRemovedFromUniverse |
(void) | - warnAboutHostiles |
(CollisionRegion *) | - collisionRegion |
(void) | - setCollisionRegion: |
(void) | - setUniversalID: |
(OOUniversalID) | - universalID |
(BOOL) | - throwingSparks |
(void) | - setThrowSparks: |
(void) | - throwSparks |
(void) | - setOwner: |
(id) | - owner |
(ShipEntity *) | - parentEntity |
(ShipEntity *) | - rootShipEntity |
(void) | - setPositionX:y:z: |
(HPVector) | - position |
(Vector) | - cameraRelativePosition |
(GLfloat) | - cameraRangeFront |
(GLfloat) | - cameraRangeBack |
(Vector) | - vectorTo: |
(HPVector) | - absolutePositionForSubentity |
(HPVector) | - absolutePositionForSubentityOffset: |
(double) | - zeroDistance |
(double) | - camZeroDistance |
(NSComparisonResult) | - compareZeroDistance: |
(BoundingBox) | - boundingBox |
(GLfloat) | - mass |
(Quaternion) | - orientation |
(void) | - setOrientation: |
(Quaternion) | - normalOrientation |
(void) | - setNormalOrientation: |
(void) | - orientationChanged |
(void) | - setVelocity: |
(Vector) | - velocity |
(double) | - speed |
(GLfloat) | - distanceTravelled |
(void) | - setDistanceTravelled: |
(void) | - setStatus: |
(OOEntityStatus) | - status |
(void) | - setScanClass: |
(OOScanClass) | - scanClass |
(void) | - setEnergy: |
(GLfloat) | - energy |
(void) | - setMaxEnergy: |
(GLfloat) | - maxEnergy |
(void) | - applyRoll:andClimb: |
(void) | - applyRoll:climb:andYaw: |
(void) | - moveForward: |
(OOMatrix) | - rotationMatrix |
(OOMatrix) | - drawRotationMatrix |
(OOMatrix) | - transformationMatrix |
(OOMatrix) | - drawTransformationMatrix |
(GLfloat) | - collisionRadius |
(GLfloat) | - frustumRadius |
(void) | - setCollisionRadius: |
(NSMutableArray *) | - collisionArray |
(void) | - applyVelocity: |
(void) | - takeEnergyDamage:from:becauseOf:weaponIdentifier: |
(void) | - dumpState |
(void) | - dumpSelfState |
(double) | - findCollisionRadius |
(BOOL) | - isInSpace |
(BOOL) | - isImmuneToBreakPatternHide |
(GLfloat) | - universalTime |
(GLfloat) | - spawnTime |
(GLfloat) | - timeElapsedSinceSpawn |
(void) | - setAtmosphereFogging: |
(OOColor *) | - fogUniform |
(NSString *) | - descriptionForObjDumpBasic |
(NSString *) | - descriptionForObjDump |
(NSSet *) | - allTextures |
(BOOL) | - checkLinkedLists [implementation] |
(id< OOWeakReferenceSupport >) | - superShaderBindingTarget [implementation] |
(Vector) | - relativePosition [implementation] |
(void) | - subEntityReallyDied: [implementation] |
(BOOL) | - isBreakPattern |
(void) | - inspect [implementation] |
(BOOL) | - isECMBlast |
(NSArray *) | - debugInspectorModules [implementation] |
(NSString *) | - inspScanClassLine |
(NSString *) | - inspStatusLine |
(NSString *) | - inspRetainCountLine |
(NSString *) | - inspPositionLine |
(NSString *) | - inspVelocityLine |
(NSString *) | - inspOrientationLine |
(NSString *) | - inspEnergyLine |
(NSString *) | - inspOwnerLine |
(NSString *) | - inspTargetLine |
(NSString *) | - inspDescription [implementation] |
(NSString *) | - inspBasicIdentityLine [implementation] |
(BOOL) | - isExhaust |
(BOOL) | - isFlasher |
(void) | - deleteJSSelf |
(jsval) | - oo_jsValueInContext: [implementation] |
(BOOL) | - isCascadeWeapon |
(BOOL) | - isPlayerLikeShip |
(GLfloat) | - clock [implementation] |
(unsigned) | - pseudoFixedD100 [implementation] |
(unsigned) | - pseudoFixedD256 [implementation] |
(unsigned) | - systemGovernment [implementation] |
(unsigned) | - systemEconomy [implementation] |
(unsigned) | - systemTechLevel [implementation] |
(unsigned) | - systemPopulation [implementation] |
(unsigned) | - systemProductivity [implementation] |
(BOOL) | - isShipWithSubEntityShip: |
(void) | - drawSubEntityImmediate:translucent: [implementation] |
![]() | |
(id) | - weakSelf |
(id) | - weakRetain [implementation] |
(void) | - weakRefDied: [implementation] |
![]() | |
(id) | - OO_RETURNS_RETAINED |
Private Attributes | |
GLfloat | sun_diffuse [4] |
GLfloat | sun_specular [4] |
GLfloat | discColor [4] |
GLfloat | outerCoronaColor [4] |
GLfloat | cor16k |
GLfloat | lim16k |
double | corona_speed_factor |
double | corona_stage |
GLfloat | rvalue [SUN_CORONA_SAMPLES] |
float | corona_blending |
GLuint | sunTriangles [3240 *3] |
GLfloat | sunVertices [1801 *3] |
GLfloat | sunColors [1801 *4] |
OOTimeDelta | _novaCountdown |
OOTimeDelta | _novaExpansionTimer |
float | _novaExpansionRate |
float | _sunBrightnessFactor |
float | _sunCoronaAlphaFactor |
NSString * | _name |
Definition at line 54 of file OOSunEntity.h.
|
implementation |
Provided by category OOSunEntity(Private).
Definition at line 483 of file OOSunEntity.m.
References M_PI.
Referenced by OOSunEntity(Private)::drawOpaqueParts.
|
implementation |
Reimplemented from Entity.
Definition at line 234 of file OOSunEntity.m.
References canCollide.
Referenced by canCollide.
- (BOOL) changeSunProperty: | (NSString *) | key | |
withDictionary: | (NSDictionary*) | dict |
Definition at line 680 of file OOSunEntity.m.
References corona_blending, corona_speed_factor, KEY_SUNNAME, OOLogWARN, randf(), setGoingNova:inTime:, setName:, and setRadius:andCorona:.
Referenced by initSunWithColor:andDictionary:, and Universe::setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:.
|
implementation |
Reimplemented from Entity.
Definition at line 241 of file OOSunEntity.m.
References Entity::checkCloseCollisionWith:, DEBUG_COLLISIONS, gDebugFlags, and OOLog.
|
implementation |
Reimplemented from Entity.
Definition at line 211 of file OOSunEntity.m.
References _name, Entity::dealloc, dealloc, and DESTROY.
Referenced by dealloc.
|
implementation |
Reimplemented from Entity.
Definition at line 218 of file OOSunEntity.m.
References descriptionComponents, goneNova, Entity::position, radius, Entity::universalID, and willGoNova.
Referenced by descriptionComponents.
- (void) drawDirectVisionSunGlare |
Definition at line 605 of file OOSunEntity.m.
References discColor, MyOpenGLView::display_z, drawDirectVisionSunGlare, OO_ENTER_OPENGL, OOGL, OOGLBEGIN, OOGLEND, OOSetOpenGLState, OPENGL_STATE_OVERLAY, PLAYER, Entity::position, radius, and MyOpenGLView::viewSize.
Referenced by drawDirectVisionSunGlare, and Universe::drawUniverse.
|
implementation |
Reimplemented from Entity.
Definition at line 336 of file OOSunEntity.m.
References drawOpaqueParts, drawTranslucentParts, and UNIVERSE.
|
implementation |
Provided by category OOSunEntity(Private).
Definition at line 375 of file OOSunEntity.m.
References calculateGLArrays:width:zDistance:, OOSunEntity(Private)::drawOpaqueParts, GLDrawBallBillboard(), MAX_SUBDIVIDE, OO_ENTER_OPENGL, OOCheckOpenGLErrors(), OOGL, OOGLBEGIN, OOGLEND, OOSetOpenGLState, OOVerifyOpenGLState, OPENGL_STATE_ADDITIVE_BLENDING, and UNIVERSE.
Referenced by drawImmediate:translucent:, and OOSunEntity(Private)::drawOpaqueParts.
- (void) drawStarGlare |
Definition at line 643 of file OOSunEntity.m.
References _sunCoronaAlphaFactor, Entity::cam_zero_distance, Entity::collision_radius, cor16k, discColor, MyOpenGLView::display_z, drawStarGlare, EXPECT_NOT, OO_ENTER_OPENGL, OOGL, OOGLBEGIN, OOGLEND, OOSetOpenGLState, OPENGL_STATE_OVERLAY, SUN_GLARE_CORONA_FACTOR, and MyOpenGLView::viewSize.
Referenced by drawStarGlare, and Universe::drawUniverse.
|
implementation |
Provided by category OOSunEntity(Private).
Definition at line 461 of file OOSunEntity.m.
References OOSunEntity(Private)::drawTranslucentParts, OO_ENTER_OPENGL, OOGL, OOSetOpenGLState, OPENGL_STATE_ADDITIVE_BLENDING, and UNIVERSE.
Referenced by drawImmediate:translucent:, and OOSunEntity(Private)::drawTranslucentParts.
- (void) getDiffuseComponents: | (GLfloat[4]) | components |
Definition at line 735 of file OOSunEntity.m.
References sun_diffuse.
Referenced by Universe::setLighting, and Universe::setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:.
|
implementation |
Reimplemented from Entity.
Provided by category OOSunEntity(OOJavaScriptExtensions).
Definition at line 107 of file OOJSSun.m.
- (void) getSpecularComponents: | (GLfloat[4]) | components |
Definition at line 742 of file OOSunEntity.m.
References sun_specular.
Referenced by Universe::setLighting, and Universe::setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:.
- (BOOL) goneNova |
Definition at line 782 of file OOSunEntity.m.
References _novaCountdown, goneNova, and Entity::throw_sparks.
Referenced by HeadUpDisplay(Private)::checkPlayerInSystemFlight, descriptionComponents, and goneNova.
|
implementation |
Reimplemented from Entity.
Definition at line 53 of file OOSunEntity.m.
Referenced by init.
- (id) initSunWithColor: | (OOColor*) | sun_color | |
andDictionary: | (NSDictionary*) | dict |
Definition at line 125 of file OOSunEntity.m.
References _sunBrightnessFactor, _sunCoronaAlphaFactor, changeSunProperty:withDictionary:, Entity::collision_radius, corona_blending, corona_speed_factor, corona_stage, Entity::init, OOLog, randf(), rvalue, Entity::scanClass, setName:, setSunColor:, SUN_CORONA_SAMPLES, and sunTriangles.
|
implementation |
Reimplemented from Entity.
Definition at line 810 of file OOSunEntity.m.
References isSun.
Referenced by isSun.
|
implementation |
Reimplemented from Entity.
Definition at line 816 of file OOSunEntity.m.
References isVisible.
Referenced by isVisible.
|
implementation |
Reimplemented from Entity.
Provided by category OOSunEntity(OOJavaScriptExtensions).
Definition at line 101 of file OOJSSun.m.
|
implementation |
Reimplemented from <OOStellarBody>.
Definition at line 822 of file OOSunEntity.m.
Referenced by name.
|
implementation |
Reimplemented from Entity.
Provided by category OOSunEntity(OOJavaScriptExtensions).
Definition at line 114 of file OOJSSun.m.
- (OOStellarBodyType) planetType |
Reimplemented from <OOStellarBody>.
Definition at line 729 of file OOSunEntity.m.
References planetType, and STELLAR_TYPE_SUN.
Referenced by planetType.
|
implementation |
Reimplemented from <OOStellarBody>.
Definition at line 749 of file OOSunEntity.m.
References Entity::collision_radius, and radius.
Referenced by Universe::coordinatesForPosition:withCoordinateSystem:returningScalar:, descriptionComponents, drawDirectVisionSunGlare, Universe::legacyPositionFrom:asCoordinateSystem:, and radius.
- (void) resetNova |
Definition at line 802 of file OOSunEntity.m.
References _novaCountdown, _novaExpansionRate, _novaExpansionTimer, and resetNova.
Referenced by resetNova, update:, and PlayerEntity(OOPrivate)::witchJumpTo:misjump:.
- (void) setGoingNova: | (BOOL) | yesno | |
inTime: | (double) | interval |
Definition at line 788 of file OOSunEntity.m.
References _novaCountdown, _novaExpansionRate, _novaExpansionTimer, OOLog, and Entity::throw_sparks.
Referenced by changeSunProperty:withDictionary:, SunCancelNova(), and SunGoNova().
|
implementation |
Reimplemented from <OOStellarBody>.
Definition at line 828 of file OOSunEntity.m.
References _name.
Referenced by changeSunProperty:withDictionary:, and initSunWithColor:andDictionary:.
|
implementation |
Reimplemented from Entity.
Definition at line 769 of file OOSunEntity.m.
References Entity::setPosition:.
Referenced by Universe::populateNormalSpace, and Universe::setUpSpace.
- (void) setRadius: | (GLfloat) | rad | |
andCorona: | (GLfloat) | corona |
Definition at line 755 of file OOSunEntity.m.
References Entity::collision_radius, cor16k, lim16k, and NO_DRAW_DISTANCE_FACTOR.
Referenced by changeSunProperty:withDictionary:, and Universe::setUpSpace.
- (BOOL) setSunColor: | (OOColor*) | sun_color |
Definition at line 61 of file OOSunEntity.m.
References OOColor::alphaComponent, OOColor::blendedColorWithFraction:ofColor:, OOColor::blueComponent, OOColor::colorWithHue:saturation:brightness:alpha:, OOColor::colorWithRed:green:blue:alpha:, OOColor::getHue:saturation:brightness:alpha:, OOColor::getRed:green:blue:alpha:, OOColor::greenComponent, nil, OO_ENTER_OPENGL, OOGL, randf(), OOColor::redComponent, sun_diffuse, sun_specular, and OOColor::whiteColor.
Referenced by initSunWithColor:andDictionary:, and Universe::setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:.
|
implementation |
Reimplemented from Entity.
Definition at line 253 of file OOSunEntity.m.
References _novaCountdown, _novaExpansionRate, _novaExpansionTimer, _sunBrightnessFactor, Entity::collision_radius, corona_speed_factor, corona_stage, discColor, nil, OOLog, OOMatrixForBillboard(), PLAYER, Entity::position, randf(), resetNova, Entity::rotMatrix, rvalue, Entity::throw_sparks, UNIVERSE, and Entity::update:.
|
implementation |
Reimplemented from Entity.
Definition at line 361 of file OOSunEntity.m.
References Entity::absolutePositionForSubentity, Entity::cameraRelativePosition, EXPECT_NOT, PLAYER, and updateCameraRelativePosition.
Referenced by updateCameraRelativePosition.
- (BOOL) willGoNova |
Definition at line 776 of file OOSunEntity.m.
References Entity::throw_sparks, and willGoNova.
Referenced by descriptionComponents, and willGoNova.
|
private |
Definition at line 82 of file OOSunEntity.h.
|
private |
Definition at line 75 of file OOSunEntity.h.
Referenced by goneNova, resetNova, setGoingNova:inTime:, and update:.
|
private |
Definition at line 77 of file OOSunEntity.h.
Referenced by resetNova, setGoingNova:inTime:, and update:.
|
private |
Definition at line 76 of file OOSunEntity.h.
Referenced by resetNova, setGoingNova:inTime:, and update:.
|
private |
Definition at line 79 of file OOSunEntity.h.
Referenced by initSunWithColor:andDictionary:, and update:.
|
private |
Definition at line 80 of file OOSunEntity.h.
Referenced by drawStarGlare, and initSunWithColor:andDictionary:.
|
private |
Definition at line 64 of file OOSunEntity.h.
Referenced by drawStarGlare, and setRadius:andCorona:.
|
private |
Definition at line 69 of file OOSunEntity.h.
Referenced by changeSunProperty:withDictionary:, and initSunWithColor:andDictionary:.
|
private |
Definition at line 66 of file OOSunEntity.h.
Referenced by changeSunProperty:withDictionary:, initSunWithColor:andDictionary:, and update:.
|
private |
Definition at line 67 of file OOSunEntity.h.
Referenced by initSunWithColor:andDictionary:, and update:.
|
private |
Definition at line 61 of file OOSunEntity.h.
Referenced by drawDirectVisionSunGlare, drawStarGlare, and update:.
|
private |
Definition at line 64 of file OOSunEntity.h.
Referenced by setRadius:andCorona:.
|
private |
Definition at line 62 of file OOSunEntity.h.
|
private |
Definition at line 68 of file OOSunEntity.h.
Referenced by initSunWithColor:andDictionary:, and update:.
|
private |
Definition at line 58 of file OOSunEntity.h.
Referenced by getDiffuseComponents:, and setSunColor:.
|
private |
Definition at line 59 of file OOSunEntity.h.
Referenced by getSpecularComponents:, and setSunColor:.
|
private |
Definition at line 73 of file OOSunEntity.h.
|
private |
Definition at line 71 of file OOSunEntity.h.
Referenced by initSunWithColor:andDictionary:.
|
private |
Definition at line 72 of file OOSunEntity.h.