|
Oolite
|
#include <OOSunEntity.h>
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 50 of file OOSunEntity.h.
|
implementation |
Provided by category OOSunEntity(Private).
Definition at line 438 of file OOSunEntity.m.
References M_PI.
Referenced by OOSunEntity(Private)::drawOpaqueParts.
|
implementation |
Reimplemented from Entity.
Definition at line 221 of file OOSunEntity.m.
References canCollide.
Referenced by canCollide.
| - (BOOL) changeSunProperty: | (NSString*) | key | |
| withDictionary: | (NSDictionary*) | dict |
Definition at line 616 of file OOSunEntity.m.
References corona_blending, corona_speed_factor, KEY_SUNNAME, OOClamp_0_1_f(), 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 203 of file OOSunEntity.m.
References _name, Entity::dealloc, dealloc, and DESTROY.
Referenced by dealloc.
|
implementation |
Reimplemented from Entity.
Definition at line 209 of file OOSunEntity.m.
References descriptionComponents, goneNova, Entity::position, radius, Entity::universalID, and willGoNova.
Referenced by descriptionComponents.
| - (void) drawDirectVisionSunGlare |
Definition at line 550 of file OOSunEntity.m.
References discColor, MyOpenGLView::display_z, drawDirectVisionSunGlare, HPdistance(), HPdistance2(), OO_ENTER_OPENGL, OOClamp_0_1_f(), 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 307 of file OOSunEntity.m.
References drawOpaqueParts, drawTranslucentParts, and UNIVERSE.
|
implementation |
Provided by category OOSunEntity(Private).
Definition at line 339 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 584 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 419 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 652 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 93 of file OOJSSun.m.
| - (void) getSpecularComponents: | (GLfloat[4]) | components |
Definition at line 658 of file OOSunEntity.m.
References sun_specular.
Referenced by Universe::setLighting, and Universe::setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:.
| - (BOOL) goneNova |
Definition at line 693 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 52 of file OOSunEntity.m.
Referenced by init.
| - (id) initSunWithColor: | (OOColor*) | sun_color | |
| andDictionary: | (NSDictionary*) | dict |
Definition at line 123 of file OOSunEntity.m.
References _sunBrightnessFactor, _sunCoronaAlphaFactor, changeSunProperty:withDictionary:, Entity::collision_radius, corona_blending, corona_speed_factor, corona_stage, Entity::init, OOClamp_0_1_f(), OOLog, randf(), rvalue, Entity::scanClass, setName:, setSunColor:, SUN_CORONA_SAMPLES, and sunTriangles.
|
implementation |
Reimplemented from Entity.
Definition at line 717 of file OOSunEntity.m.
References isSun.
Referenced by isSun.
|
implementation |
Reimplemented from Entity.
Definition at line 722 of file OOSunEntity.m.
References isVisible.
Referenced by isVisible.
|
implementation |
Reimplemented from Entity.
Provided by category OOSunEntity(OOJavaScriptExtensions).
Definition at line 88 of file OOJSSun.m.
|
implementation |
Reimplemented from <OOStellarBody>.
Definition at line 727 of file OOSunEntity.m.
Referenced by name.
|
implementation |
Reimplemented from Entity.
Provided by category OOSunEntity(OOJavaScriptExtensions).
|
implementation |
Reimplemented from Entity.
Provided by category OOSunEntity(OOJavaScriptExtensions).
Definition at line 99 of file OOJSSun.m.
| - (OOStellarBodyType) planetType |
Reimplemented from <OOStellarBody>.
Definition at line 647 of file OOSunEntity.m.
References planetType, and STELLAR_TYPE_SUN.
Referenced by planetType.
|
implementation |
Reimplemented from <OOStellarBody>.
Definition at line 664 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 710 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 698 of file OOSunEntity.m.
References _novaCountdown, _novaExpansionRate, _novaExpansionTimer, OOLog, and Entity::throw_sparks.
Referenced by changeSunProperty:withDictionary:, SunCancelNova(), SunCancelNova(), SunGoNova(), and SunGoNova().
|
implementation |
Reimplemented from <OOStellarBody>.
Definition at line 732 of file OOSunEntity.m.
References _name.
Referenced by changeSunProperty:withDictionary:, and initSunWithColor:andDictionary:.
|
implementation |
Reimplemented from Entity.
Definition at line 682 of file OOSunEntity.m.
References Entity::setPosition:.
Referenced by Universe::populateNormalSpace, and Universe::setUpSpace.
| - (void) setRadius: | (GLfloat) | rad | |
| andCorona: | (GLfloat) | corona |
Definition at line 669 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 59 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 237 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 327 of file OOSunEntity.m.
References Entity::absolutePositionForSubentity, Entity::cameraRelativePosition, EXPECT_NOT, HPmagnitude(), HPmagnitude2(), HPvector_multiply_scalar(), HPvector_subtract(), HPVectorToVector(), PLAYER, and updateCameraRelativePosition.
Referenced by updateCameraRelativePosition.
| - (BOOL) willGoNova |
Definition at line 688 of file OOSunEntity.m.
References Entity::throw_sparks, and willGoNova.
Referenced by descriptionComponents, and willGoNova.
|
private |
Definition at line 76 of file OOSunEntity.h.
|
private |
Definition at line 69 of file OOSunEntity.h.
Referenced by goneNova, resetNova, setGoingNova:inTime:, and update:.
|
private |
Definition at line 71 of file OOSunEntity.h.
Referenced by resetNova, setGoingNova:inTime:, and update:.
|
private |
Definition at line 70 of file OOSunEntity.h.
Referenced by resetNova, setGoingNova:inTime:, and update:.
|
private |
Definition at line 73 of file OOSunEntity.h.
Referenced by initSunWithColor:andDictionary:, and update:.
|
private |
Definition at line 74 of file OOSunEntity.h.
Referenced by drawStarGlare, and initSunWithColor:andDictionary:.
|
private |
Definition at line 58 of file OOSunEntity.h.
Referenced by drawStarGlare, and setRadius:andCorona:.
|
private |
Definition at line 63 of file OOSunEntity.h.
Referenced by changeSunProperty:withDictionary:, and initSunWithColor:andDictionary:.
|
private |
Definition at line 60 of file OOSunEntity.h.
Referenced by changeSunProperty:withDictionary:, initSunWithColor:andDictionary:, and update:.
|
private |
Definition at line 61 of file OOSunEntity.h.
Referenced by initSunWithColor:andDictionary:, and update:.
|
private |
Definition at line 55 of file OOSunEntity.h.
Referenced by drawDirectVisionSunGlare, drawStarGlare, and update:.
|
private |
Definition at line 58 of file OOSunEntity.h.
Referenced by setRadius:andCorona:.
|
private |
Definition at line 56 of file OOSunEntity.h.
|
private |
Definition at line 62 of file OOSunEntity.h.
Referenced by initSunWithColor:andDictionary:, and update:.
|
private |
Definition at line 52 of file OOSunEntity.h.
Referenced by getDiffuseComponents:, and setSunColor:.
|
private |
Definition at line 53 of file OOSunEntity.h.
Referenced by getSpecularComponents:, and setSunColor:.
|
private |
Definition at line 67 of file OOSunEntity.h.
|
private |
Definition at line 65 of file OOSunEntity.h.
Referenced by initSunWithColor:andDictionary:.
|
private |
Definition at line 66 of file OOSunEntity.h.