Oolite
Loading...
Searching...
No Matches
OOFoundation.h File Reference
import <Foundation/Foundation.h>
#include <math.h>
#include <stdbool.h>
import "OOLogging.h"
Include dependency graph for OOFoundation.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

category  NSObject(OODescriptionComponents)
category  NSEnumerator(OOForEachSupport)

Macros

#define OOLITE_DEBUG   1
#define OOLITE_MAC_OS_X   1
#define DESTROY(x)
#define OOLITE_HAVE_CLANG   0
#define OOLITE_GNUSTEP   0
#define OOLITE_WINDOWS   0
#define OOLITE_LINUX   0
#define OOLITE_SDL   0
#define OOLITE_MAC_COCOA_UI   (OOLITE_MAC_OS_X && !OOLITE_SDL)
#define OOLITE_SPEECH_SYNTH   0
#define OOLITE_ESPEAK   0
#define OOLITE_64_BIT   0
#define OOLITE_PROPERTY_SYNTAX   (OOLITE_MAC_OS_X || OOLITE_HAVE_CLANG)
#define OOLITE_RELEASE_PLIST_ERROR_STRINGS   1
#define foreach(VAR, COLLECTION)
#define foreachkey(VAR, DICT)
#define OOLITE_OPTIONAL(protocolName)

Typedefs

typedef NSInteger OOComparisonResult

Macro Definition Documentation

◆ DESTROY

#define DESTROY ( x)
Value:
do { \
id x_ = x; \
x = nil; \
[x_ release]; \
} while (0)
return nil
float x

Definition at line 62 of file OOFoundation.h.

62#define DESTROY(x) \
63 do { \
64 id x_ = x; \
65 x = nil; \
66 [x_ release]; \
67 } while (0)

Referenced by OOEquipmentType::addEquipmentWithInfo:, ShipEntity::addTarget:, ShipEntity(PureAI)::becomeUncontrolledThargon, ShipEntity(AI)::broadcastDistressMessageWithDumping:, DockEntity(OOPrivate)::clearAllIdLocks, DockEntity(OOPrivate)::clearIdLocks:, ClearPendingCallback(), OOOXZManager(NSURLConnectionDataDelegate)::connection:didFailWithError:, OOOXZManager(NSURLConnectionDataDelegate)::connection:didReceiveResponse:, OOOXZManager(NSURLConnectionDataDelegate)::connectionDidFinishLoading:, AI::dealloc, CollisionRegion::dealloc, DockEntity::dealloc, DustEntity::dealloc, Entity::dealloc, HeadUpDisplay::dealloc, Octree::dealloc, OOALBufferedSound::dealloc, OOAsyncCacheWriter::dealloc, OOAsyncLogger::dealloc, OOCharacter::dealloc, OOCombinedEmissionMapGenerator::dealloc, OOCommodities::dealloc, OOCommodityMarket::dealloc, OOConcreteTexture::dealloc, OODefaultShaderSynthesizer::dealloc, OOEquipmentType::dealloc, OOExplosionCloudEntity::dealloc, OOFullScreenController::dealloc, OOJSFunction::dealloc, OOJSScript::dealloc, OOMesh::dealloc, OOOpenGLExtensionManager::dealloc, OOOXZManager::dealloc, OOPolygonSprite::dealloc, OORegExpMatcher::dealloc, OOShipGroupEnumerator::dealloc, OOSunEntity::dealloc, OOSystemDescriptionEntry::dealloc, OOSystemDescriptionManager::dealloc, OOVisualEffectEntity::dealloc, OOWaypointEntity::dealloc, OOWeakSet::dealloc, PlanetEntity::dealloc, PlayerEntity::dealloc, ShipEntity::dealloc, StationEntity::dealloc, Universe::dealloc, PlayerEntity::deferredInit, PlayerEntity(Sound)::destroySound, OODefaultShaderSynthesizer::destroyTemporaries, PlayerEntity::disengageAutopilot, PlayerEntity::doBookkeeping:, HeadUpDisplay(Private)::drawCrosshairs, PlayerEntity::engageAutopilotToStation:, PlayerEntity::enterDock:, ShipEntity::foundTarget, OOAsyncLogger::init, OORegExpMatcher::init, OOECMBlastEntity::initFromShip:, StationEntity::initialiseLocalMarket, OOMesh(Private)::initWithName:cacheKey:materialDictionary:shadersDictionary:smooth:shaderMacros:shaderBindingTarget:scaleFactor:cacheWriteable:, OOJSFunction::initWithName:scope:code:argumentCount:argumentNames:fileName:lineNumber:context:, OOSingleTextureMaterial::initWithName:texture:configuration:, OOProbabilitySet::initWithObjects:weights:count:, OOJSScript::initWithPath:properties:, OOPixMapTextureLoader::initWithPixMap:textureOptions:freeWhenDone:, PlayerEntity::interpretAIMessage:, OOWeakSet::isEqual:, ShipEntity::lastEscortTarget, OOShipRegistry(OODataLoader)::loadDemoShips, OOEquipmentType::loadEquipment, LoadExplicitSettings(), PlayerEntity(LoadSave)::loadPlayerFromFile:asNew:, OOPolygonSprite(Private)::loadPolygons:outlineWidth:, main(), ShipEntity::noteLostTarget, HeadUpDisplay::OOHUDResetTextEngine(void), OOJSFrameCallbacksInvoke(), OOJSFrameCallbacksInvoke(), OOJSScriptDestroyCompiledScripts(), OOLogOutputHandlerClose(), OOLogSetDisplayMessagesInClass(), ResourceManager::pathsWithAddOns, OOAsyncCacheWriter::performAsyncTask, PlayerEntity(OOControlsPrivate)::pollFlightControls:, PlayerEntity(OOControlsPrivate)::pollMarketScreenControls, ShipEntity::primaryAggressor, ShipEntity::primaryTarget, ShipEntity::primaryTargetWithoutValidityCheck, OOOXZManager(NSURLConnectionDataDelegate)::processDownloadedManifests, OOOXZManager(NSURLConnectionDataDelegate)::processDownloadedOXZ, ShipEntity::proximityAlert, OOTexture::rebindAllTextures, ShipEntity(PureAI)::recallStoredTarget, ShipEntity::rememberedShip, PlayerEntity(Scripting)::removeAllCargo:, OOOXZManager(NSURLConnectionDataDelegate)::removeOXZ:, ShipEntity::removeTarget:, ShipEntity(AI)::requestDockingCoordinates, ShipEntity(PureAI)::requestNewTarget, OOMesh(Private)::rescaleByFactor:, ResourceManager::reset, OOOpenGLExtensionManager::reset, DustEntity::resetGraphicsState, ResourceManager::resetManifestKnowledgeForOXZManager, ShipEntity::resumePostProximityAlert, ShipEntity(PureAI)::scanForFormationLeader, ShipEntity(AI)::scanForHostiles, ShipEntity(PureAI)::scanForLoot, ShipEntity(PureAI)::scanForNearestMerchantman, ShipEntity(PureAI)::scanForNearestShipMatchingPredicate:, ShipEntity(OOAIPrivate)::scanForNearestShipWithPredicate:parameter:, ShipEntity(PureAI)::scanForNonThargoid, ShipEntity(PureAI)::scanForOffenders, ShipEntity(PureAI)::scanForRandomLoot, ShipEntity(PureAI)::scanForRandomMerchantman, ShipEntity(PureAI)::scanForRocks, PlayerEntity::selectNextMissile, OOVisualEffectEntity::setBeaconCode:, OOWaypointEntity::setBeaconCode:, ShipEntity::setBeaconCode:, PlayerEntity::setCommanderDataFromDictionary:, ShipEntity::setCommodity:andAmount:, ShipEntity::setCommodityForPod:andAmount:, OOOXZManager(NSURLConnectionDataDelegate)::setCurrentDownload:withLabel:, OOOXZManager::setFilter:, OOOXZManager(NSURLConnectionDataDelegate)::setFilteredList:, OOCommodityMarket::setGood:withInfo:, PlayerEntity::setGuiToMarketInfoScreen, PlayerEntity::setGuiToMarketScreen, OOEquipmentType::setMissileRegistryRole:forShip:, OOOXZManager::setOXPURL:, OOOXZManager(NSURLConnectionDataDelegate)::setOXZList:, OOOXZManager(NSURLConnectionDataDelegate)::setProgressStatus:, ShipEntity::setProximityAlert:, OOVisualEffectEntity::setScannerDisplayColor1:, ShipEntity::setScannerDisplayColor1:, OOVisualEffectEntity::setScannerDisplayColor2:, ShipEntity::setScannerDisplayColor2:, ShipEntity::setScannerDisplayColorHostile1:, ShipEntity::setScannerDisplayColorHostile2:, ShipEntity::setShipDataKey:, OOShipRegistry::setShipInfoForKey:with:, Universe::setSystemTo:, ShipEntity::setTargetToSystemStation, PlayerEntity::setUpAndConfirmOK:saveGame:, ShipEntity::setUpCargoType:, Universe::setupIntroFirstGo:, PlayerEntity::setUpShipFromDictionary:, Universe::setUpSpace, OOConcreteTexture(Private)::setUpTexture, PlayerEntity(Sound)::setUpWeaponSounds, ResourceManager::setUseAddOns:, Universe::setUseAddOns:fromSaveGame:forceReinit:, OOSoundMixer::shutdown, ShipEntity(PureAI)::storeTarget, OORegExpMatcher::string:matchesExpression:flags:, SVGDumpBegin(), SVGDumpEnd(), PlayerEntity::switchHudTo:, ShipEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, ShipEntity::targetStation, ShipEntity::thankedShip, UnregisterObjectConverters(), PlayerEntity(OOPrivate)::updateTargeting, OOScriptTimer::updateTimers, PlayerEntity(OOPrivate)::witchStart, and OOCacheManager(Private)::writeDict:.

◆ foreach

#define foreach ( VAR,
COLLECTION )
Value:
for (VAR in COLLECTION)

Definition at line 321 of file OOFoundation.h.

◆ foreachkey

#define foreachkey ( VAR,
DICT )
Value:
for (VAR in DICT)

Definition at line 322 of file OOFoundation.h.

Referenced by OORoleSet::anyRole, OOShipRegistry(OODataLoader)::applyLikeShips:withKey:, OOCacheManager(Private)::buildCachesFromDictionary:, OOShipRegistry(OODataLoader)::buildRoleProbabilitySets, OOFileScannerVerifierStage(OOPrivate)::checkKnownFiles, AI(OOPrivate)::cleanHandlers:forState:stateMachine:, GatherStringAddrsDict(), OOCommodities::generateBlankMarket, OOCommodities::generateManifestForPlayer, OOCommodities::generateMarketForStation:, OOCommodities::generateMarketForSystemWithEconomy:andScript:, OOCommodities::goodNamed:, HighestIndex(), OOSystemDescriptionManager::importLegacyScriptedChanges:, OOSystemDescriptionManager::importScriptedChanges:, PlayerEntity::initialiseMissionDestinations:andLegacy:, InitKeyToIndexDict(), OOJSScript::initWithPath:properties:, OORoleSet(OOPrivate)::initWithRolesAndProbabilities:, JSObjectFromNSDictionary(), OOShipRegistry(OODataLoader)::loadAndApplyShipDataOverrides:, OOShipRegistry(OODataLoader)::loadAndMergeShipyard:, OOShipRegistry(OODataLoader)::loadCachedRoleProbabilitySets, OOPListScript(SetUp)::loadCachedScripts:, LoadExplicitSettingsFromDictionary(), AI(OOPrivate)::loadStateMachine:jsName:, ResourceManager::logControlDictionary, PlayerEntity::markedDestinations, ResourceManager::mergeRoleCategories:intoDictionary:, OOShipRegistry(OODataLoader)::mergeShipRoles:forShipKey:intoProbabilityMap:, OOConvertSystemDescriptionsToArrayFormat(), NSDictionary(OODeepCopy)::ooDeepCopyWithSharedObjects:, OOEncodingConverter(Private)::performConversionForString:, Universe::preloadSounds, OOPListScript(SetUp)::scriptsFromDictionaryOfScripts:filePath:, OOSystemDescriptionManager(OOPrivate)::setProperties:inDescription:, OOOXPVerifier(OOPrivate)::setUpLogOverrides, ShipEntity(LoadRestoreInternal)::simplifyShipdata:andGetDeletes:, OOShipRegistry(OODataLoader)::stripPrivateKeys:, ResourceManager::systemDescriptionManager, ShipEntity::update:, OOAIStateMachineVerifierStage(Private)::validateAI:, Universe(OOPrivate)::verifyDescriptions, and PlayerEntity(Scripting)::worldScriptsRequiringTickle.

◆ OOLITE_64_BIT

#define OOLITE_64_BIT   0

Definition at line 245 of file OOFoundation.h.

◆ OOLITE_DEBUG

#define OOLITE_DEBUG   1

Definition at line 43 of file OOFoundation.h.

◆ OOLITE_ESPEAK

#define OOLITE_ESPEAK   0

Definition at line 241 of file OOFoundation.h.

◆ OOLITE_GNUSTEP

#define OOLITE_GNUSTEP   0

Definition at line 214 of file OOFoundation.h.

◆ OOLITE_HAVE_CLANG

#define OOLITE_HAVE_CLANG   0

Definition at line 74 of file OOFoundation.h.

Referenced by main().

◆ OOLITE_LINUX

#define OOLITE_LINUX   0

Definition at line 226 of file OOFoundation.h.

◆ OOLITE_MAC_COCOA_UI

#define OOLITE_MAC_COCOA_UI   (OOLITE_MAC_OS_X && !OOLITE_SDL)

Definition at line 234 of file OOFoundation.h.

◆ OOLITE_MAC_OS_X

#define OOLITE_MAC_OS_X   1

Definition at line 57 of file OOFoundation.h.

◆ OOLITE_OPTIONAL

#define OOLITE_OPTIONAL ( protocolName)
Value:
@optional

Definition at line 332 of file OOFoundation.h.

◆ OOLITE_PROPERTY_SYNTAX

#define OOLITE_PROPERTY_SYNTAX   (OOLITE_MAC_OS_X || OOLITE_HAVE_CLANG)

Definition at line 248 of file OOFoundation.h.

◆ OOLITE_RELEASE_PLIST_ERROR_STRINGS

#define OOLITE_RELEASE_PLIST_ERROR_STRINGS   1

Definition at line 277 of file OOFoundation.h.

◆ OOLITE_SDL

#define OOLITE_SDL   0

Definition at line 230 of file OOFoundation.h.

◆ OOLITE_SPEECH_SYNTH

#define OOLITE_SPEECH_SYNTH   0

Definition at line 237 of file OOFoundation.h.

◆ OOLITE_WINDOWS

#define OOLITE_WINDOWS   0

Definition at line 222 of file OOFoundation.h.

Referenced by MyOpenGLView::createWindowWithSize:, and main().

Typedef Documentation

◆ OOComparisonResult

typedef NSInteger OOComparisonResult

Definition at line 287 of file OOFoundation.h.