![]() |
Oolite 1.91.0.7658-250404-b1488af
|
import "OOParticleSystem.h"
import "Universe.h"
import "OOTexture.h"
import "PlayerEntity.h"
import "OOLightParticleEntity.h"
import "OOMacroOpenGL.h"
import "MyOpenGLView.h"
Go to the source code of this file.
Macros | |
#define | FREEZE_PARTICLES 0 |
#define | DrawQuadForView(x, y, z, sz) |
Variables | |
__pad0__ | |
kMaxSpeed | |
unsigned | count = 0.4f * size |
OOColor * | hsvColor = [OOColor colorWithHue:0.12f + 0.08f * randf() saturation:1.0f brightness:1.0f alpha:1.0f] |
GLfloat | baseColor [4] = { 1.0f, 1.0f, 0.5f, 1.0f } |
green | __pad1__ |
return | self |
float | maxSpeed = minSpeed * 4.0f |
Definition at line 133 of file OOParticleSystem.m.
Referenced by OOParticleSystem::drawImmediate:translucent:.
#define FREEZE_PARTICLES 0 |
Definition at line 36 of file OOParticleSystem.m.
__pad0__ |
Definition at line 252 of file OOParticleSystem.m.
green __pad1__ |
Definition at line 277 of file OOParticleSystem.m.
GLfloat baseColor[4] = { 1.0f, 1.0f, 0.5f, 1.0f } |
count = 0.4f * size |
Definition at line 270 of file OOParticleSystem.m.
Referenced by PlayerEntity::activatePrimableEquipment:withMode:, PlayerEntity(Scripting)::add:, ShipEntity::addCargo:, OOJoystickSplineAxisProfile::addControl:, PlayerEntity(Scripting)::addEqScriptForKey:, PlayerEntity::addEquipmentFromCollection:, PlayerEntity::addEquipmentWithScriptToCustomKeyArray:, GuiDisplayGen::addLongText:startingAtRow:align:, PlayerEntity(Contracts)::addPassenger:start:destination:eta:fee:advance:risk:, OOSkyQuadSet::addQuads:count:toArray:, PlayerEntity::addRoleToPlayer:inSlot:, PlayerEntity(Scripting)::addShips:, PlayerEntity(Scripting)::addShipsAt:, Universe::addShipsAt:withRole:quantity:withinRadius:asGroup:, PlayerEntity(Scripting)::addShipsAtPrecisely:, Universe::addShipsToRoute:withRole:quantity:routeFraction:asGroup:, PlayerEntity(Scripting)::addShipsWithinRadius:, PlayerEntity(Scripting)::addSystemShips:, AddTexture(), OOMesh(Private)::allocateBytesWithSize:count:key:, OORoleSet::anyRole, OOShipRegistry(OODataLoader)::applyLikeShips:withKey:, ResourceManager::areRequirementsFulfilled:forOXP:andFile:, ArrayForErrorReport(), ResourceManager::arrayFromFilesNamed:inFolder:andMerge:cache:, PlayerEntity(Scripting)::awardCargo:, PlayerEntity(ScriptMethods)::awardCommodityType:amount:, ShipEntity::broadcastEnergyBlastImminent, Universe::brochureDescriptionWithDictionary:standardEquipment:optionalEquipment:, BuildOutlineContour(), PlayerEntity(Contracts)::buySelectedShip, DockEntity::canAcceptShipForDocking:, PlayerEntity::canAddEquipment:inContext:, OOShipRegistry(OODataLoader)::canonicalizeAndTagSubentities:, CanonicalizeMaterialSpecifier(), ShipEntity::canScoop:, PlayerEntity::cargoQuantityForType:, ShipEntity(PureAI)::checkForFullHold, OOTextFieldHistoryManager(Private)::checkInvariant, ResourceManager::checkOXPMessagesInPath:, PlayerEntity(Scripting)::checkScript, Universe(OOPrivate)::chooseStringForKey:inDictionary:, AI(OOPrivate)::cleanActions:forHandler:state:stateMachine:, PlayerEntity::clearRolesFromPlayer:, PlayerEntity::commanderDataDictionary, OOALSoundVorbisCodec::comments, ComponentsFromVersionString(), NSString(OOJavaScriptExtensions)::concatenationOfStringsFromJavaScriptValues:count:separator:inContext:, Universe::coordinatesFromCoordinateSystemString:, ShipEntity::countEquipmentItem:, DockEntity::countOfShipsInLaunchQueueWithPrimaryRole:, PlayerEntity::cycleNextMultiFunctionDisplay:, PlayerEntity::cyclePreviousMultiFunctionDisplay:, DataArrayToPoints(), ShipEntity::dealEnergyDamage:atRange:withBias:, ShipEntity::dealEnergyDamageWithinDesiredRange, ShipEntity::dealMomentumWithinDesiredRange:, Universe::debugDumpEntities, AI::debugDumpPendingMessages, PlayerEntity(KeyMapperInternal)::deleteAllKeySettings, OOOXPVerifierStage(OOPrivate)::dependencyCompleted:, DescribeValue(), OOTimeProfile::description, Universe::descriptionForArrayKey:index:, PlayerEntity::dialFuelScoopStatus, ResourceManager::dictionaryFromFilesNamed:inFolder:mergeMode:cache:, Universe::displayCountdownMessage:forCount:, DockEntity::dockingInstructionsForShip:, ShipEntity::doScriptEvent:withArguments:, GuiDisplayGen(Internal)::drawEquipmentList:z:, GuiDisplayGen(Internal)::drawGLDisplay:x:y:z:, OOParticleSystem::drawImmediate:translucent:, OOPolygonSprite::drawWithData:count:VBO:, ShipEntity::dumpCargoItem:, OOOXPVerifier(OOPrivate)::dumpDebugGraphviz, OODebugMonitor::dumpEntity:withState:parentVisible:, StationEntity::dumpSelfState, WormholeEntity::dumpSelfState, ShipEntity::enterWormhole:replacing:, EntityFromArgumentList(), PlayerEntity(KeyMapperInternal)::entryIsEqualToDefault:, PlayerEntity(Scripting)::eqScriptIndexForKey:, PlayerEntity::equipmentList, ShipEntity::equipmentListForScripting, ResourceManager::errors, AI::exitStateMachineWithMessage:, ExpandDigitKey(), ExpandStringKeyFromDescriptions(), ShipEntity::findNearestPlanetExcludingMoons, OOSystemDescriptionManager::getPropertiesForSystemKey:, GetRGBAArrayFromInfo(), ShipEntity(AI)::groupAttackTarget, ResourceManager::handleEquipmentListMerging:forLookupIndex:, PlayerEntity(OOControlsPrivate)::handleGameOptionsScreenKeys, OOMacJoystickManager::handleJoystickAttach:, PlayerEntity(OOControlsPrivate)::handleKeyboardLayoutKeys, PlayerEntity(OOControlsPrivate)::handleKeyMapperScreenKeys, ResourceManager::handleStarNebulaListMerging:, PlayerEntity(OOControlsPrivate)::handleStickMapperScreenKeys, OOSmallFragmentBurstEntity::if, OOSystemDescriptionManager::importScriptedChanges:, OOShipRegistry::init, OOSoundMixer::init, OOExplosionCloudEntity(OOPrivate)::initExplosionCloudWithEntity:size:andSettings:, OOExhaustPlumeEntity::initForShip:withDefinition:andScale:, HeadUpDisplay::InitTextEngine(void), OOSoundSourcePool::initWithCount:minRepeatTime:, OOPolygonSprite::initWithDataArray:outlineWidth:name:, RBSplitView::initWithFrame:andSubviews:, OOEquipmentType(Private)::initWithInfo:, OOProbabilisticTextureManager::initWithPListName:options:anisotropy:lodBias:seed:, OOParticleSystem::initWithPosition:velocity:count:minSpeed:maxSpeed:duration:baseColor:, OOSkyQuadSet::initWithQuadsWithTexture:inArray:count:, GuiDisplayGen::insertItemsFromArray:withKeys:intoRow:color:, OOOXZManager(NSURLConnectionDataDelegate)::installOptions, OOOXZManager(NSURLConnectionDataDelegate)::installOXZ:, IsZeroString(), JSArrayConverter(), JSArrayFromNSArray(), PlayerEntity(KeyMapperInternal)::keyFunctionList, PlayerEntity::leaveWitchspace, PlayerEntity::loadCargoPodsForType:amount:, OOMesh(Private)::loadData:scaleFactor:, OOShipRegistry(OODataLoader)::loadDemoShips, OOJoystickManager::loadProfileForAxis:, ResourceManager::loadScripts, LookUpLegacySelector(), OOFileScannerVerifierStage(OOPrivate)::lowercaseMap:, PlayerEntity(OOLoadSavePrivate)::lsCommanders:directory:pageNumber:highlightName:, OOJoystickSplineAxisProfile(Private)::makeSegments, ShipEntity::manageCollisions, ResourceManager::manifest:HasUnmetDependency:logErrors:, ResourceManager::manifestHasConflicts:logErrors:, ResourceManager::manifestHasMissingDependencies:logErrors:, ResourceManager::mergeRoleCategories:intoDictionary:, AI::message:, PlayerEntity(Scripting)::messageShipAIs:, PlayerEntity(Scripting)::missionsList, MissionVariablesEnumerate(), OOJoystickSplineAxisProfile::moveControl:point:, NewRandomDigrams(), PlayerEntity::nextInfoSystem, OOProbabilitySetEnumerator::nextObject, NSArray(OldSchoolPropertyListWriting)::oldSchoolPListFormatWithIndentation:errorDescription:, NSDictionary(OldSchoolPropertyListWriting)::oldSchoolPListFormatWithIndentation:errorDescription:, NSArray(OOExtractor)::oo_objectAtIndex:, OOConstantFromJSStringPRIVATE(), OOConvertSystemDescriptionsToArrayFormat(), NSArray(OODeepCopy)::ooDeepCopyWithSharedObjects:, NSDictionary(OODeepCopy)::ooDeepCopyWithSharedObjects:, NSSet(OODeepCopy)::ooDeepCopyWithSharedObjects:, OODisplayStringFromEconomyID(), OODisplayStringFromGovernmentID(), OOHPVectorFromObject(), OOIsNumberLiteral(), OOLegacyConditionsAreSanitized(), OOLookUpPluralDescriptionPRIV(), OOParseRolesFromString(), OOQuaternionFromObject(), OOTabString(), OOVectorFromObject(), ResourceManager::pathsWithAddOns, PlayerEntity(Scripting)::PerformActionStatment, Universe::planet, OOJoystickSplineAxisProfile::pointAtIndex:, PlayerEntity(OOControlsPrivate)::pollCustomViewControls, PlayerEntity(OOControlsPrivate)::pollFlightControls:, PlayerEntity(OOControlsPrivate)::pollMarketScreenControls, OOOpenGLMatrixStack::pop, Universe(OOPrivate)::populateSpaceFromActiveWormholes, ResourceManager::preloadFileListFromOXZ:forFolders:, Universe::preloadPlanetTexturesForSystem:, Universe::preloadSounds, AI::preserveCurrentStateMachine, GuiDisplayGen::printLongText:align:color:fadeTime:key:addToArray:, OOOXZManager(NSURLConnectionDataDelegate)::processDownloadedOXZ, PlayerEntity(Contracts)::processEscapePods, PlayerEntity(Controls)::processKeyCode:, OOOXZManager::processOptionsNext, PlayerEntity(Scripting)::processSceneDictionary:atOffset:, PlayerEntity(Scripting)::processSceneString:atOffset:, OOCache::prune, DockEntity::pruneAndCountShipsOnApproach, ShipEntity(PureAI)::randomPauseAI:, Universe::randomShipKeyForRoleRespectingConditions:, RBSplitView(RB___ViewAdditions)::RB___subviews, AI::reactToMessage:context:, OOPNGTextureLoader(OOPrivate)::readBytes:count:, SkyEntity(OOPrivate)::readColor1:andColor2:andColor3:andColor4:fromDictionary:, GuiDisplayGen::reflowTextForMFD:, OOOXPVerifier(OOPrivate)::registerBaseStages, PlayerEntity(Scripting)::removeAllCargo:, Universe::removeAllEntitiesExceptPlayer, PlayerEntity(Contracts)::removeContract:destination:, OOJoystickSplineAxisProfile::removeControl:, PlayerEntity(Scripting)::removeEqScriptForKey:, ShipEntity::removeEquipmentItem:, OOOXZManager(NSURLConnectionDataDelegate)::removeOptions, OOOXZManager(NSURLConnectionDataDelegate)::removeOXZ:, PlayerEntity(Contracts)::removeParcel:, PlayerEntity(Contracts)::removePassenger:, OOMesh::renderOpaqueParts, AI::reportStackOverflow, OOOpenGLExtensionManager::reset, HeadUpDisplay::resetGuis:, AI::restorePreviousStateMachine, HeadUpDisplay::reticleColorForIndex:, ResourceManager::roleCategoriesDictionary, OOCheckShipDataPListVerifierStage(OOPrivate)::rolesFromString:, Universe::routeFromSystem:toSystem:optimizedBy:, OOCheckRequiresPListVerifierStage::run, RunDeferredOperations(), OOOXPVerifier(OOPrivate)::runStages, SanitizeConditionalStatement(), ShipEntity(LoadRestore)::savedShipDictionaryWithContext:, PlayerEntity(KeyMapperInternal)::saveKeySetting:, ShipEntity(PureAI)::scanForLoot, ShipEntity::scoopUpProcess:processEvents:processMessages:, OOPListScript(SetUp)::scriptsFromDictionaryOfScripts:filePath:, PlayerEntity(ScriptingPrivate)::scriptTestCondition:, GuiDisplayGen::selectedRowKey, Universe::selectIntro2NextCategory, Universe::selectIntro2PreviousCategory, OOSoundSourcePool(Private)::selectSlotForPriority:, OODebugTCPConsoleClient(OOPrivate)::sendBytes:count:, OODebugTCPConsoleClient(OOPrivate)::sendDictionary:, ShipEntity(PureAI)::sendScriptMessage:, PlayerEntity(Scripting)::set:, PlayerEntity::setCommanderDataFromDictionary:, ShipEntity(PureAI)::setCoordinates:, HeadUpDisplay::setCrosshairDefinition:, PlayerEntity(Scripting)::setGalacticHyperspaceFixedCoordsTo:, PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:, PlayerEntity::setGuiToGameOptionsScreen, PlayerEntity::setGuiToInterfacesScreen:, PlayerEntity::setGuiToIntroFirstGo:, PlayerEntity(KeyMapper)::setGuiToKeyConfigEntryScreen, PlayerEntity(KeyMapper)::setGuiToKeyConfigScreen:, PlayerEntity(KeyMapper)::setGuiToKeyMapperScreen:resetCurrentRow:, PlayerEntity::setGuiToMarketScreen, PlayerEntity(LoadSave)::setGuiToScenarioScreen:, PlayerEntity::setGuiToSystemDataScreenRefreshBackground:, Universe(OOPrivate)::setLibraryTextForDemoShip, PlayerEntity(Scripting)::setMissionChoices:, PlayerEntity(Scripting)::setMissionChoicesDictionary:, ShipEntity::setPendingEscortCount:, PlayerEntity(Scripting)::setPlanetinfo:, RBSplitSubview::setPosition:, OOSystemDescriptionManager::setProperties:forSystemKey:, OOSystemDescriptionManager::setProperty:forSystemKey:andLayer:toValue:fromManifest:, OOSoundSource::setRepeatCount:, HeadUpDisplay::setReticleColorForIndex:toColor:, PlayerEntity(Scripting)::setSpecificPlanetInfo:, RBSplitView::setStatesFromArray:, PlayerEntity::setTrumbleValueFrom:, OOCrosshairs(Private)::setUpDataForOnePoint:scale:colorComps:overallAlpha:data:, OODebugController::setUpLogMessageClassMenu, Universe::setUpPlanet, StationEntity::setUpShipFromDictionary:, Universe::setUpUniverseFromMisjump, Universe::setUpUniverseFromStation, Universe::setUpUniverseFromWitchspace, ShipDamageAssessment(), ShipDumpCargo(), ShipGetProperty(), ShipGroupAddShip(), ShipGroupGetProperty(), ShipRestoreSubEntities(), ShipSetCargo(), ShipSetProperty(), Universe::shipsForSaleForSystem:withTL:atTime:, ShipSpawn(), OOCheckJSSyntaxVerifierStage::shouldRun, OOOXZManager::showRemoveOptions, PlayerEntity(Contracts)::showShipyardInfoForSelection, ShipEntity(LoadRestoreInternal)::simplifyShipdata:andGetDeletes:, GameController::snapshotsURLCreatingIfNeeded:, OODockTilePlugIn::snapshotsURLCreatingIfNeeded:, Universe::soundNameForCustomSoundKey:, SoundSourcePlay(), OODebugMonitor::sourceCodeForFile:line:, ShipEntity::spawn:, ShipEntity(ScriptMethods)::spawnShipsWithRole:count:, SpecialSubstitutionSelectors(), SplitGeometryX(), SplitGeometryY(), SplitGeometryZ(), StationAddShipToShipyard(), StationRemoveShipFromShipyard(), PlayerEntity(StickMapperInternal)::stickFunctionList, NSString(OOJavaScriptExtensions)::stringWithJavaScriptParameters:count:inContext:, PlayerEntity(Scripting)::subtract:, SVGDumpAppendBaseContour(), PlayerEntity::switchHudTo:, OOMaterial(OOConvenienceCreators)::synthesizeMaterialDictionaryWithName:configuration:macros:, SystemAddShipsOrGroup(), SystemAddShipsOrGroupToRoute(), SystemInfoEnumerate(), SystemLegacyAddShips(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAtPrecisely(), SystemLegacyAddShipsWithinRadius(), SystemLegacyAddSystemShips(), AI::takeAction:, PlayerEntity::takeInternalDamage, ShipEntity(PureAI)::targetFirstBeaconWithCode:, ShipEntity(PureAI)::targetNextBeaconWithCode:, GuiDisplayGen::targetNextFoundSystem:, AI::think, Universe::tradeInValueForCommanderDictionary:, TranslateGeometryX(), TranslateGeometryY(), TranslateGeometryZ(), OOShipRegistry(OODataLoader)::translateOldStyleSubentityDeclaration:forShip:shipData:fatalError:, ShipEntity::turretCount, PlayerEntity::unloadCargoPods, OOAIDebugInspectorModule::update, OOShipDebugInspectorModule::update, DockEntity::update:, OOECMBlastEntity::update:, OOExplosionCloudEntity::update:, OOFlasherEntity::update:, OOParticleSystem::update:, OOPlasmaShotEntity::update:, OOSmallFragmentBurstEntity::update:, Universe::update:, PlayerEntity(KeyMapperInternal)::updateKeyDefinition:index:, PlayerEntity(KeyMapperInternal)::updateShiftKeyDefinition:index:, PlayerEntity::updateSystemMemory, PlayerEntity(OOPrivate)::updateWormholes, OOAIStateMachineVerifierStage(Private)::validateAI:, PlayerEntity::validateCustomEquipActivationArray, OOShipRegistry(OODataLoader)::validateNewStyleFlasherDeclaration:forShip:fatalError:, OOSystemDescriptionEntry(OOPrivate)::validateProperty:withValue:, Verify_Array(), Verify_Dictionary(), VisualEffectRestoreSubEntities(), ResourceManager::writeDiagnosticData:toFileNamed:, and OODefaultShaderSynthesizer::writeLightMaps.
OOColor* hsvColor = [OOColor colorWithHue:0.12f + 0.08f * randf() saturation:1.0f brightness:1.0f alpha:1.0f] |
Definition at line 275 of file OOParticleSystem.m.
kMaxSpeed |
Definition at line 267 of file OOParticleSystem.m.
Referenced by OOSmallFragmentBurstEntity::if.
float maxSpeed = minSpeed * 4.0f |
Definition at line 325 of file OOParticleSystem.m.
Referenced by OOBigFragmentBurstEntity::if, OOSmallFragmentBurstEntity::if, OOExplosionCloudEntity(OOPrivate)::initExplosionCloudWithEntity:size:andSettings:, and OOParticleSystem::initWithPosition:velocity:count:minSpeed:maxSpeed:duration:baseColor:.
return self |
Definition at line 288 of file OOParticleSystem.m.
Referenced by ShipEntity(Private)::coordinatesForEscortPosition:, and OOOctreeBuilder::SetNode_slow.