|
Oolite
|
#include <Entity.h>
Public Attributes | |
| OOUniversalID | universalID |
| unsigned | isShip: 1 |
| unsigned | isStation: 1 |
| unsigned | isPlayer: 1 |
| unsigned | isWormhole: 1 |
| unsigned | isSubEntity: 1 |
| unsigned | hasMoved: 1 |
| unsigned | hasRotated: 1 |
| unsigned | hasCollided: 1 |
| unsigned | isSunlit: 1 |
| unsigned | collisionTestFilter: 2 |
| unsigned | throw_sparks: 1 |
| unsigned | isImmuneToBreakPatternHide: 1 |
| unsigned | isExplicitlyNotMainStation: 1 |
| unsigned | isVisualEffect: 1 |
| OOScanClass | scanClass |
| GLfloat | zero_distance |
| GLfloat | cam_zero_distance |
| GLfloat | no_draw_distance |
| GLfloat | collision_radius |
| HPVector | position |
| Vector | cameraRelativePosition |
| Quaternion | orientation |
| OOColor * | atmosphereFogging |
| int | zero_index |
| Entity * | x_previous |
| Entity * | x_next |
| Entity * | y_previous |
| Entity * | y_next |
| Entity * | z_previous |
| Entity * | z_next |
| Entity * | collision_chain |
| OOUniversalID | shadingEntityID |
| Entity * | collider |
| CollisionRegion * | collisionRegion |
Protected Attributes | |
| HPVector | lastPosition |
| Quaternion | lastOrientation |
| GLfloat | distanceTravelled |
| OOMatrix | rotMatrix |
| Vector | velocity |
| GLfloat | energy |
| GLfloat | maxEnergy |
| BoundingBox | boundingBox |
| GLfloat | mass |
| NSMutableArray * | collidingEntities |
| OOTimeAbsolute | spawnTime |
| struct JSObject * | _jsSelf |
| NSUInteger | lastDrawCounter |
| Protected Attributes inherited from OOWeakRefObject | |
| OOWeakReference * | weakSelf |
Private Attributes | |
| NSUInteger | _sessionID |
| OOWeakReference * | _owner |
| OOEntityStatus | _status |
| - (HPVector) absolutePositionForSubentity |
Definition at line 627 of file Entity.m.
References absolutePositionForSubentity, and absolutePositionForSubentityOffset:.
Referenced by DockEntity::abortAllDockings, DockEntity::abortDockingForShip:, absolutePositionForSubentity, DockEntity(OOPrivate)::addShipToShipsOnApproach:, ShipEntity::ballTrackLeadingTarget:atTarget:, ShipEntity::becomeExplosion, cameraRelativePosition, DockEntity::clearDockingCorridor, ShipEntity::collideWithShip:, DockEntity::dockingCorridorIsEmpty, DockEntity::dockingInstructionsForShip:, PlayerEntity::doesHitLine:v1:hitEntity:, ShipEntity::doesHitLine:v1:hitEntity:, ShipEntity::doOctreesCollide, ShipEntity::dumpItem:, DockEntity::launchShip:, DockEntity::pruneAndCountShipsOnApproach, DockEntity::shipIsInDockingCorridor:, updateCameraRelativePosition, and OOSunEntity::updateCameraRelativePosition.
Definition at line 632 of file Entity.m.
References drawRotationMatrix, HPvector_add(), isSubEntity, nil, OOHPVectorMultiplyMatrix(), owner, parentEntity, position, and rotMatrix.
Referenced by absolutePositionForSubentity, Universe::firstShipHitByLaserFromShip:inDirection:offset:gettingRangeFound:, and OOLaserShotEntity::initLaserFromShip:direction:offset:.
| - (void) addToLinkedLists |
Definition at line 207 of file Entity.m.
References addToLinkedLists, checkLinkedLists, collision_radius, DEBUG_LINKED_LISTS, gDebugFlags, nil, OOLog, position, UNIVERSE, x_next, x_previous, y_next, y_previous, z_next, and z_previous.
Referenced by addToLinkedLists, isVisualEffect, and Universe::MaintainLinkedLists.
| - (void) applyRoll: | (GLfloat) | roll | |
| andClimb: | (GLfloat) | climb |
Reimplemented in PlayerEntity, and ShipEntity.
Definition at line 768 of file Entity.m.
References hasRotated, orientation, orientationChanged, quaternion_rotate_about_x(), and quaternion_rotate_about_z().
| - (void) applyRoll: | (GLfloat) | roll | |
| climb: | (GLfloat) | climb | |
| andYaw: | (GLfloat) | yaw |
Reimplemented in ShipEntity.
Definition at line 781 of file Entity.m.
References hasRotated, orientation, orientationChanged, quaternion_rotate_about_x(), quaternion_rotate_about_y(), and quaternion_rotate_about_z().
| - (void) applyVelocity: | (OOTimeDelta) | delta_t |
Definition at line 878 of file Entity.m.
References HPvector_add(), HPvector_multiply_scalar(), position, vectorToHPVector(), and velocity.
Referenced by PlayerEntity(OOPrivate)::performAutopilotUpdates:, PlayerEntity(OOPrivate)::performInFlightUpdates:, and update:.
References boundingBox.
| - (GLfloat) cameraRangeBack |
Reimplemented in SkyEntity.
Definition at line 591 of file Entity.m.
References cameraRangeBack, cameraRelativePosition, frustumRadius, and magnitude().
Referenced by cameraRangeBack, cameraRelativePosition, and Universe::drawUniverse.
| - (GLfloat) cameraRangeFront |
Reimplemented in SkyEntity.
Definition at line 586 of file Entity.m.
References cameraRangeFront, cameraRelativePosition, frustumRadius, and magnitude().
Referenced by cameraRangeFront, and cameraRelativePosition.
References absolutePositionForSubentity, cameraRangeBack, cameraRangeFront, cameraRelativePosition, camZeroDistance, updateCameraRelativePosition, and zeroDistance.
| - (double) camZeroDistance |
Definition at line 653 of file Entity.m.
References cam_zero_distance, and camZeroDistance.
Referenced by cameraRelativePosition, camZeroDistance, OOLightParticleEntity::drawSubEntityImmediate:translucent:, and update:.
| - (BOOL) canCollide |
Reimplemented in DustEntity, OOBreakPatternEntity, OOLaserShotEntity, OOLightParticleEntity, OOParticleSystem, OOPlasmaShotEntity, OOQuiriumCascadeEntity, OORingEffectEntity, OOSunEntity, OOVisualEffectEntity, PlanetEntity, PlayerEntity, ShipEntity, SkyEntity, and WormholeEntity.
Definition at line 825 of file Entity.m.
References canCollide.
Referenced by canCollide, Universe::filterSortedLists, and maxEnergy.
| - (BOOL) checkCloseCollisionWith: | (Entity*) | other |
Reimplemented in OOParticleSystem, OOPlasmaShotEntity, OOQuiriumCascadeEntity, PlanetEntity, ShipEntity, and WormholeEntity.
Definition at line 883 of file Entity.m.
References nil.
Referenced by CollisionRegion::findCollisions.
|
implementation |
Provided by category Entity(OOPrivate).
Definition at line 321 of file Entity.m.
References Entity(OOPrivate)::checkLinkedLists, kOOLogEntityVerificationError, nil, OOLog, UNIVERSE, x_next, x_previous, y_next, y_previous, z_next, and z_previous.
Referenced by addToLinkedLists, Entity(OOPrivate)::checkLinkedLists, removeFromLinkedLists, and updateLinkedLists.
|
implementation |
Provided by category Entity(ShaderBindings).
Definition at line 35 of file EntityShaderBindings.m.
| - (NSMutableArray *) collisionArray |
Definition at line 845 of file Entity.m.
References collidingEntities, and collisionArray.
Referenced by ShipEntity::collideWithShip:, collisionArray, CollisionRegion::findCollisions, maxEnergy, and ShipEntity::scoopUpProcess:processEvents:processMessages:.
| - (GLfloat) collisionRadius |
Reimplemented in OOVisualEffectEntity.
Definition at line 830 of file Entity.m.
References collision_radius, and collisionRadius.
Referenced by Universe::addShipsToRoute:withRole:quantity:routeFraction:asGroup:, ShipEntity::becomeExplosion, ShipEntity::behaviour_land_on_planet:, ShipEntity::behaviour_track_as_turret:, collisionRadius, ShipEntity::dealEnergyDamage:atRange:withBias:, ShipEntity::dealEnergyDamageWithinDesiredRange, ShipEntity::dealMomentumWithinDesiredRange:, DockEntity::dockingInstructionsForShip:, OOEntityWithDrawable::drawImmediate:translucent:, OOFlashEffectEntity::explosionFlashFromEntity:, Universe::firstEntityTargetedByPlayer, OOBigFragmentBurstEntity::fragmentBurstFromEntity:, OOSmallFragmentBurstEntity::fragmentBurstFromEntity:, HeadUpDisplay::hudDrawReticleOnTarget, OOExplosionCloudEntity(OOPrivate)::initExplosionCloudWithEntity:size:andSettings:, OORingEffectEntity::initRingFromEntity:, Universe::makeDemoShipWithRole:spinning:, maxEnergy, PlanetEntity::miniaturize, Universe::safeWitchspaceExitDistance, PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:, WormholeEntity::suckInShip:, and PlayerEntity(OOPrivate)::updateAlertConditionForNearbyEntities.
References collisionRegion.
| - (NSComparisonResult) compareZeroDistance: | (Entity*) | otherEntity |
Reimplemented in PlayerEntity.
Definition at line 658 of file Entity.m.
References zero_distance.
|
implementation |
Reimplemented from OOWeakRefObject.
Reimplemented in DockEntity, DustEntity, OOEntityWithDrawable, OOExplosionCloudEntity, OOFlasherEntity, OOLaserShotEntity, OOSunEntity, OOVisualEffectEntity, OOWaypointEntity, PlanetEntity, PlayerEntity, ShipEntity, SkyEntity, StationEntity, and WormholeEntity.
Definition at line 98 of file Entity.m.
References collidingEntities, collisionRegion, dealloc, OOWeakRefObject::dealloc, deleteJSSelf, DESTROY, and setOwner:.
Referenced by DustEntity::dealloc, dealloc, OOEntityWithDrawable::dealloc, OOExplosionCloudEntity::dealloc, OOFlasherEntity::dealloc, OOLaserShotEntity::dealloc, OOSunEntity::dealloc, OOWaypointEntity::dealloc, PlanetEntity::dealloc, and WormholeEntity::dealloc.
| - (void) deleteJSSelf |
Provided by category Entity(OOJavaScriptExtensions).
Definition at line 78 of file EntityOOJavaScriptExtensions.m.
Referenced by dealloc, and PlayerEntity(OOJavaScriptExtensions)::setJSSelf:context:.
| - (void) deleteJSSelf |
Provided by category Entity(OOJavaScriptExtensions).
|
implementation |
Reimplemented in OOLaserShotEntity, OOParticleSystem, OOQuiriumCascadeEntity, OORingEffectEntity, OOSunEntity, PlanetEntity, ShipEntity, StationEntity, and WormholeEntity.
Definition at line 115 of file Entity.m.
References descriptionComponents, position, scanClass, and status.
Referenced by descriptionComponents, OOLaserShotEntity::descriptionComponents, and ShipEntity::descriptionComponents.
| - (GLfloat) distanceTravelled |
| - (void) drawImmediate: | (bool) | immediate | |
| translucent: | (bool) | translucent |
Reimplemented in DockEntity, DustEntity, OOBreakPatternEntity, OOECMBlastEntity, OOEntityWithDrawable, OOFlasherEntity, OOLaserShotEntity, OOLightParticleEntity, OOParticleSystem, OOQuiriumCascadeEntity, OORingEffectEntity, OOSunEntity, OOVisualEffectEntity, OOWaypointEntity, PlanetEntity, PlayerEntity, ShipEntity, SkyEntity, and WormholeEntity.
Definition at line 894 of file Entity.m.
References OOLogGenericSubclassResponsibility.
Referenced by Universe::drawUniverse.
| - (OOMatrix) drawRotationMatrix |
Reimplemented in PlayerEntity.
Definition at line 808 of file Entity.m.
References drawRotationMatrix, and rotMatrix.
Referenced by ShipEntity::absoluteIJKForSubentity, absolutePositionForSubentityOffset:, OOLightParticleEntity::drawImmediate:translucent:, drawRotationMatrix, OOLightParticleEntity::drawSubEntityImmediate:translucent:, ShipEntity::fireTurretCannon:, OOLaserShotEntity::initLaserFromShip:direction:offset:, maxEnergy, and OOLaserShotEntity::update:.
|
implementation |
Reimplemented in OOExhaustPlumeEntity, OOFlasherEntity, OOLightParticleEntity, OOVisualEffectEntity, and ShipEntity.
Provided by category Entity(SubEntityRelationship).
Definition at line 12975 of file ShipEntity.m.
Referenced by OOVisualEffectEntity::drawImmediate:translucent:, and ShipEntity::drawImmediate:translucent:.
| - (OOMatrix) drawTransformationMatrix |
Reimplemented in PlayerEntity.
Definition at line 819 of file Entity.m.
References drawTransformationMatrix, OOMatrixHPTranslate(), position, and rotMatrix.
Referenced by drawTransformationMatrix, maxEnergy, and OOExhaustPlumeEntity::resetPlume.
| - (void) dumpSelfState |
Reimplemented in StationEntity, and WormholeEntity.
Definition at line 918 of file Entity.m.
References ADD_FLAG_IF_SET, collisionTestFilter, distanceTravelled, dumpSelfState, energy, hasMoved, hasRotated, isPlayer, isShip, isStation, isSubEntity, isSunlit, isWormhole, mass, maxEnergy, nil, OOLog, OOStringFromEntityStatus(), OOStringFromScanClass(), orientation, owner, position, scanClass, status, throw_sparks, and universalID.
Referenced by dumpSelfState, StationEntity::dumpSelfState, WormholeEntity::dumpSelfState, dumpState, and maxEnergy.
| - (void) dumpState |
Definition at line 903 of file Entity.m.
References dumpSelfState, dumpState, OOLog, OOLogIndent(), OOLogPopIndent(), OOLogPushIndent(), and OOLogWillDisplayMessagesInClass().
Referenced by dumpState, maxEnergy, and PlayerEntity(OOPrivate)::updateTargeting.
| - (double) findCollisionRadius |
Reimplemented in OOEntityWithDrawable, OOExhaustPlumeEntity, and OOFlasherEntity.
Definition at line 888 of file Entity.m.
References findCollisionRadius, and OOLogGenericSubclassResponsibility.
Referenced by findCollisionRadius, and lastDrawCounter.
| - (OOColor *) fogUniform |
Definition at line 996 of file Entity.m.
References fogUniform.
Referenced by fogUniform, and spawnTime.
| - (GLfloat) frustumRadius |
Reimplemented in OOVisualEffectEntity, and ShipEntity.
Definition at line 835 of file Entity.m.
References collision_radius, and frustumRadius.
Referenced by cameraRangeBack, cameraRangeFront, frustumRadius, and maxEnergy.
| - (void) getJSClass: | (JSClass**) | outClass | |
| andPrototype: | (JSObject**) | outPrototype |
Reimplemented in DockEntity, OOExhaustPlumeEntity, OOFlasherEntity, OOSunEntity, OOVisualEffectEntity, OOWaypointEntity, ShipEntity, StationEntity, and WormholeEntity.
Provided by category Entity(OOJavaScriptExtensions).
Definition at line 81 of file EntityOOJavaScriptExtensions.m.
Referenced by Entity(OOJavaScriptExtensions)::oo_jsValueInContext:.
|
implementation |
Reimplemented in DustEntity, OOParticleSystem, OOSunEntity, OOVisualEffectEntity, PlanetEntity, PlayerEntity, ShipEntity, and WormholeEntity.
Definition at line 64 of file Entity.m.
References _sessionID, atmosphereFogging, collidingEntities, OOColor::colorWithRed:green:blue:alpha:, EXPECT_NOT, init, isSunlit, kIdentityMatrix, kIdentityQuaternion, kZeroHPVector, lastDrawCounter, nil, no_draw_distance, orientation, position, rotMatrix, scanClass, setStatus:, and spawnTime.
Referenced by DustEntity::init, init, PlanetEntity(OOPrivate)::initAsAtmosphereForPlanet:dictionary:, ShipEntity(Hax)::initBypassForPlayer, OOExhaustPlumeEntity::initForShip:withDefinition:andScale:, PlanetEntity::initFromDictionary:withAtmosphere:andSeed:, OOECMBlastEntity::initFromShip:, OOLaserShotEntity::initLaserFromShip:direction:offset:, OOQuiriumCascadeEntity::initQuiriumCascadeFromShip:, OORingEffectEntity::initRingFromEntity:, OOSunEntity::initSunWithColor:andDictionary:, SkyEntity::initWithColors:col2:andSystemInfo:, OOLightParticleEntity::initWithDiameter:, OOWaypointEntity::initWithDictionary:, OOVisualEffectEntity::initWithKey:definition:, ShipEntity::initWithKey:definition:, and OOBreakPatternEntity::initWithPolygonSides:startAngle:aspectRatio:.
| - (BOOL) isBreakPattern |
Reimplemented in OOBreakPatternEntity, and OOVisualEffectEntity.
Provided by category Entity(OOBreakPatternEntity).
Definition at line 164 of file OOBreakPatternEntity.m.
| - (BOOL) isCascadeWeapon |
Reimplemented in OOQuiriumCascadeEntity.
Provided by category Entity(OOQuiriumCascadeExtensions).
Definition at line 160 of file OOQuiriumCascadeEntity.m.
Referenced by PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, ShipEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, and StationEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:.
| - (BOOL) isDock |
| - (BOOL) isECMBlast |
Reimplemented in OOECMBlastEntity.
Provided by category Entity(OOECMBlastEntity).
Definition at line 119 of file OOECMBlastEntity.m.
| - (BOOL) isEffect |
Reimplemented in OOLaserShotEntity, OOLightParticleEntity, OOParticleSystem, OOQuiriumCascadeEntity, OORingEffectEntity, OOVisualEffectEntity, and OOWaypointEntity.
Definition at line 180 of file Entity.m.
References isEffect.
Referenced by OOParticleSystem::checkCloseCollisionWith:, OOPlasmaShotEntity::checkCloseCollisionWith:, WormholeEntity::checkCloseCollisionWith:, isEffect, and isWormhole.
| - (BOOL) isExhaust |
Reimplemented in OOExhaustPlumeEntity.
Provided by category Entity(OOExhaustPlume).
Definition at line 676 of file OOExhaustPlumeEntity.m.
| - (BOOL) isFlasher |
Reimplemented in OOFlasherEntity.
Provided by category Entity(OOFlasherEntityExtensions).
Definition at line 212 of file OOFlasherEntity.m.
| - (BOOL) isImmuneToBreakPatternHide |
| - (BOOL) isInSpace |
Definition at line 1033 of file Entity.m.
References isInSpace, and status.
Referenced by ShipEntity::dealMomentumWithinDesiredRange:, isInSpace, lastDrawCounter, PlayerEntity::moveTargetMemoryBy:, and PlayerEntity::validateCompassTarget.
| - (BOOL) isPlanet |
Reimplemented in PlanetEntity.
Definition at line 150 of file Entity.m.
References isPlanet.
Referenced by ShipEntity::behaviour_land_on_planet:, isPlanet, isPlayer, isStellarObject, and PlayerEntity::lookingAtSunWithThresholdAngleCos:.
| - (BOOL) isPlayer |
| - (BOOL) isPlayerLikeShip |
Reimplemented in PlayerEntity, and ProxyPlayerEntity.
Provided by category Entity(ProxyPlayer).
Definition at line 194 of file ProxyPlayerEntity.m.
| - (BOOL) isShipWithSubEntityShip: | (Entity*) | other |
Reimplemented in OOVisualEffectEntity, and ShipEntity.
Provided by category Entity(SubEntityRelationship).
Definition at line 12970 of file ShipEntity.m.
| - (BOOL) isSky |
| - (BOOL) isStellarObject |
Definition at line 165 of file Entity.m.
References isPlanet, isStellarObject, and isSun.
Referenced by Universe::drawUniverse, isStellarObject, isSunlit, and ShipEntity::manageCollisions.
| - (BOOL) isSubEntity |
References isSubEntity.
| - (BOOL) isSun |
Reimplemented in OOSunEntity.
Definition at line 155 of file Entity.m.
References isSun.
Referenced by PlayerEntity(OOPrivate)::checkEntityForMassLock:withScanClass:, ShipEntity::checkForAegis, isPlayer, isStellarObject, isSun, IsSunPredicate(), and ShipEntity::manageCollisions.
| - (BOOL) isSunlit |
| - (BOOL) isVisible |
Reimplemented in OOSunEntity, PlanetEntity, ShipEntity, and SkyEntity.
Definition at line 1028 of file Entity.m.
References ABSOLUTE_NO_DRAW_DISTANCE2, cam_zero_distance, and isVisible.
Referenced by isVisible, lastDrawCounter, and OOExhaustPlumeEntity::update:.
| - (BOOL) isVisibleToScripts |
Reimplemented in OOExhaustPlumeEntity, OOExhaustPlumeEntity, OOFlasherEntity, OOFlasherEntity, OOSunEntity, OOVisualEffectEntity, OOVisualEffectEntity, OOWaypointEntity, OOWaypointEntity, ShipEntity, WormholeEntity, and WormholeEntity.
Provided by category Entity(OOJavaScriptExtensions).
Definition at line 38 of file EntityOOJavaScriptExtensions.m.
Referenced by JSEntityIsJavaScriptVisiblePredicate().
| - (BOOL) isVisibleToScripts |
Reimplemented in OOExhaustPlumeEntity, OOExhaustPlumeEntity, OOFlasherEntity, OOFlasherEntity, OOSunEntity, OOVisualEffectEntity, OOVisualEffectEntity, OOWaypointEntity, OOWaypointEntity, ShipEntity, WormholeEntity, and WormholeEntity.
Provided by category Entity(OOJavaScriptExtensions).
| - (BOOL) isVisualEffect |
Reimplemented in OOVisualEffectEntity.
References addToLinkedLists, isVisualEffect, isWaypoint, removeFromLinkedLists, updateLinkedLists, validForAddToUniverse, warnAboutHostiles, wasAddedToUniverse, and wasRemovedFromUniverse.
| - (BOOL) isWaypoint |
Reimplemented in OOWaypointEntity.
Definition at line 190 of file Entity.m.
References isWaypoint.
Referenced by isVisualEffect, and isWaypoint.
| - (BOOL) isWormhole |
| - (NSUInteger) lastDrawCounter |
References findCollisionRadius, isInSpace, isVisible, and lastDrawCounter.
| - (GLfloat) maxEnergy |
References canCollide, collisionArray, collisionRadius, drawRotationMatrix, drawTransformationMatrix, dumpSelfState, dumpState, frustumRadius, maxEnergy, rotationMatrix, and transformationMatrix.
| - (void) moveForward: | (double) | amount |
Reimplemented in PlayerEntity.
Definition at line 796 of file Entity.m.
References distanceTravelled, HPvector_add(), HPvector_forward_from_quaternion(), HPvector_multiply_scalar(), orientation, and position.
Referenced by ShipEntity::applyThrust:.
| - (Quaternion) normalOrientation |
Reimplemented in PlayerEntity.
Definition at line 687 of file Entity.m.
References normalOrientation, and orientation.
Referenced by ShipEntity::absoluteTractorPosition, ShipEntity::ballTrackLeadingTarget:atTarget:, ShipEntity::becomeExplosion, ShipEntity::dumpItem:, ShipEntity::fireMissileWithIdentifier:andTarget:, Universe::firstShipHitByLaserFromShip:inDirection:offset:gettingRangeFound:, OOLaserShotEntity::initLaserFromShip:direction:offset:, normalOrientation, orientation, ShipEntity(LoadRestore)::savedShipDictionaryWithContext:, OOExhaustPlumeEntity(Private)::saveToLastFrame, ShipEntity::throwSparks, OOExhaustPlumeEntity::update:, and OOLaserShotEntity::update:.
| - (JSClassID) oo_jsClassID |
Reimplemented in DockEntity, OOExhaustPlumeEntity, OOFlasherEntity, OOSunEntity, OOVisualEffectEntity, OOWaypointEntity, PlayerEntity, ShipEntity, StationEntity, and WormholeEntity.
Provided by category Entity(OOJavaScriptExtensions).
Definition at line 73 of file EntityOOJavaScriptExtensions.m.
| - (NSString *) oo_jsClassName |
Reimplemented in DockEntity, OOExhaustPlumeEntity, OOExhaustPlumeEntity, OOFlasherEntity, OOFlasherEntity, OOSunEntity, OOVisualEffectEntity, OOVisualEffectEntity, OOWaypointEntity, OOWaypointEntity, PlayerEntity, ShipEntity, StationEntity, WormholeEntity, and WormholeEntity.
Provided by category Entity(OOJavaScriptExtensions).
Definition at line 43 of file EntityOOJavaScriptExtensions.m.
| - (NSString *) oo_jsClassName |
Reimplemented in DockEntity, OOExhaustPlumeEntity, OOExhaustPlumeEntity, OOFlasherEntity, OOFlasherEntity, OOSunEntity, OOVisualEffectEntity, OOVisualEffectEntity, OOWaypointEntity, OOWaypointEntity, PlayerEntity, ShipEntity, StationEntity, WormholeEntity, and WormholeEntity.
Provided by category Entity(OOJavaScriptExtensions).
|
implementation |
Provided by category Entity(OOJavaScriptExtensions).
Definition at line 49 of file EntityOOJavaScriptExtensions.m.
Referenced by JSFunctionPredicate(), MissionRunScreen(), and MissionRunScreen().
References normalOrientation, orientation, and orientationChanged.
| - (void) orientationChanged |
Reimplemented in OOVisualEffectEntity, PlayerEntity, and ShipEntity.
Definition at line 697 of file Entity.m.
References OOMatrixForQuaternionRotation(), orientation, orientationChanged, quaternion_normalize(), and rotMatrix.
Referenced by applyRoll:andClimb:, applyRoll:climb:andYaw:, orientation, orientationChanged, OOVisualEffectEntity::orientationChanged, ShipEntity::orientationChanged, setOrientation:, and PlanetEntity::update:.
| - (id) owner |
Definition at line 548 of file Entity.m.
References owner, and OOWeakReference::weakRefUnderlyingObject.
Referenced by ShipEntity::abandonShip, ShipEntity::absoluteIJKForSubentity, absolutePositionForSubentityOffset:, ShipEntity::adjustMissedShots:, ShipEntity::ballTrackLeadingTarget:atTarget:, ShipEntity::behaviour_formation_form_up:, ShipEntity::behaviour_track_as_turret:, ShipEntity::behaviour_tractored:, OOParticleSystem::checkCloseCollisionWith:, OOPlasmaShotEntity::checkCloseCollisionWith:, ShipEntity::dealEnergyDamage:atRange:withBias:, ShipEntity::dealEnergyDamageWithinDesiredRange, ShipEntity::dockEscorts, OOLightParticleEntity::drawImmediate:translucent:, ShipEntity::drawImmediate:translucent:, OOExhaustPlumeEntity::drawSubEntityImmediate:translucent:, OOLightParticleEntity::drawSubEntityImmediate:translucent:, dumpSelfState, EntityGetProperty(), EntityGetProperty(), ShipEntity(PureAI)::escortCheckMother, ExhaustPlumeRemove(), ExhaustPlumeRemove(), ShipEntity(PureAI)::fightOrFleeMissile, ShipEntity::fireMissileWithIdentifier:andTarget:, ShipEntity::fireSubentityLaserShot:, ShipEntity::fireTurretCannon:, FlasherRemove(), FlasherRemove(), OOQuiriumCascadeEntity::initQuiriumCascadeFromShip:, ShipEntity(PureAI)::messageMother:, ShipEntity::missedShots, owner, parentEntity, OOExhaustPlumeEntity::resetPlume, OOExhaustPlumeEntity(Private)::saveToLastFrame, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, DockEntity::shipIsInDockingQueue:, ShipEntity(ScriptMethods)::spawnShipsWithRole:count:, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, ShipEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, ShipEntity::takeHeatDamage:, ShipEntity(PureAI)::thargonCheckMother, universalID, update:, OOExhaustPlumeEntity::update:, OOLaserShotEntity::update:, OOPlasmaShotEntity::update:, OOQuiriumCascadeEntity::update:, ShipEntity::update:, VisualEffectRemove(), and VisualEffectRemove().
| - (ShipEntity *) parentEntity |
Definition at line 553 of file Entity.m.
References nil, owner, and parentEntity.
Referenced by DockEntity::abortAllDockings, DockEntity::abortDockingForShip:, absolutePositionForSubentityOffset:, ShipEntity::ballTrackLeadingTarget:atTarget:, ShipEntity::becomeExplosion, DockEntity::clearDockingCorridor, ShipEntity::collideWithShip:, ShipEntity::dealloc, DockEntity::dockingCorridorIsEmpty, DockEntity::dockingInstructionsForShip:, ShipEntity::fireTurretCannon:, Universe::firstShipHitByLaserFromShip:inDirection:offset:gettingRangeFound:, DockEntity::launchShip:, ShipEntity::markAsOffender:withReason:, parentEntity, DockEntity::portUpVectorForShipsBoundingBox:, DockEntity(OOPrivate)::pullInShipIfPermitted:, rootShipEntity, ShipEntity::setBounty:withReason:, ShipEntity::setBounty:withReasonAsString:, DockEntity::setDimensionsAndCorridor:ddc:launching:, DockEntity::shipIsInDockingCorridor:, ShipEntity::subEntityTakingDamage, superShaderBindingTarget, and universalID.
|
implementation |
Provided by category Entity(ShaderBindings).
Definition at line 41 of file EntityShaderBindings.m.
|
implementation |
Provided by category Entity(ShaderBindings).
Definition at line 46 of file EntityShaderBindings.m.
|
implementation |
Definition at line 598 of file Entity.m.
References HPvector_subtract(), HPVectorToVector(), PLAYER, position, and relativePosition.
Referenced by PlayerEntity::lookingAtSunWithThresholdAngleCos:, ShipEntity::lookingAtSunWithThresholdAngleCos:, and relativePosition.
| - (void) removeFromLinkedLists |
Definition at line 269 of file Entity.m.
References checkLinkedLists, DEBUG_LINKED_LISTS, gDebugFlags, nil, OOLog, removeFromLinkedLists, UNIVERSE, x_next, x_previous, y_next, y_previous, z_next, and z_previous.
Referenced by Universe(OOPrivate)::doRemoveEntity:, isVisualEffect, and removeFromLinkedLists.
| - (ShipEntity *) rootShipEntity |
Definition at line 566 of file Entity.m.
References isShip, nil, parentEntity, and rootShipEntity.
Referenced by OOPlasmaShotEntity::checkCloseCollisionWith:, ShipEntity::entityForShaderProperties, ShipEntity::fireTurretCannon:, OOLaserShotEntity::initLaserFromShip:direction:offset:, rootShipEntity, ShipEntity(ScriptMethods)::spawnShipsWithRole:count:, ShipEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, universalID, and OOPlasmaShotEntity::update:.
| - (OOMatrix) rotationMatrix |
Definition at line 803 of file Entity.m.
References rotationMatrix, and rotMatrix.
Referenced by maxEnergy, and rotationMatrix.
| - (OOScanClass) scanClass |
Reimplemented in ShipEntity.
References scanClass.
| - (NSUInteger) sessionID |
Reimplemented in PlayerEntity.
Definition at line 120 of file Entity.m.
References _sessionID, and sessionID.
Referenced by sessionID, and validForAddToUniverse.
| - (void) setAtmosphereFogging: | (OOColor*) | fogging |
Definition at line 990 of file Entity.m.
References atmosphereFogging.
Referenced by Universe::drawUniverse.
| - (void) setCollisionRadius: | (GLfloat) | amount |
Definition at line 840 of file Entity.m.
References collision_radius.
Referenced by OOPlasmaBurstEntity::initWithPosition:, OOSparkEntity::initWithPosition:velocity:duration:size:color:, OOPlasmaShotEntity::initWithPosition:velocity:energy:duration:color:, and OOLaserShotEntity::setRange:.
| - (void) setCollisionRegion: | (CollisionRegion*) | region |
Definition at line 510 of file Entity.m.
References collisionRegion.
Referenced by CollisionRegion::checkEntity:.
| - (void) setDistanceTravelled: | (GLfloat) | value |
Definition at line 723 of file Entity.m.
References distanceTravelled.
Referenced by ShipEntity::fireMissileWithIdentifier:andTarget:.
| - (void) setEnergy: | (GLfloat) | amount |
Definition at line 748 of file Entity.m.
References energy.
Referenced by Universe::addWreckageFrom:withRole:at:scale:lifetime:, ShipEntity::deserializeShipSubEntitiesFrom:, EntitySetProperty(), EntitySetProperty(), ShipEntity::fireSubentityLaserShot:, OOPlasmaShotEntity::initWithPosition:velocity:energy:duration:color:, ShipEntity::launchCascadeMine, Universe::setUpSpace, and ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:.
| - (void) setLastDrawCounter: | (NSUInteger) | drawCounter |
Definition at line 968 of file Entity.m.
References lastDrawCounter.
Referenced by Universe::drawUniverse.
| - (void) setMaxEnergy: | (GLfloat) | amount |
Definition at line 758 of file Entity.m.
References maxEnergy.
Referenced by EntitySetProperty(), and EntitySetProperty().
| - (void) setNormalOrientation: | (Quaternion) | quat |
Reimplemented in PlayerEntity.
Definition at line 692 of file Entity.m.
References setOrientation:.
Referenced by EntitySetProperty(), EntitySetProperty(), DockEntity::launchShip:, ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:, WaypointSetProperty(), and WaypointSetProperty().
| - (void) setOrientation: | (Quaternion) | quat |
Reimplemented in OOWaypointEntity, and PlanetEntity.
Definition at line 676 of file Entity.m.
References orientation, and orientationChanged.
Referenced by Universe::addShipAt:withRole:withinRadius:, Universe::addShips:withRole:atPosition:withCoordinateSystem:, Universe::addWreckageFrom:withRole:at:scale:lifetime:, ShipEntity::becomeExplosion, WormholeEntity::disgorgeShips, PlayerEntity::docked, ShipEntity::dumpItem:, PlayerEntity::enterDock:, ShipEntity::fireDirectLaserShotAt:, ShipEntity::fireMissileWithIdentifier:andTarget:, OOLaserShotEntity::initLaserFromShip:direction:offset:, OORingEffectEntity::initRingFromEntity:, ShipEntity::launchCascadeMine, PlanetEntity::launchShuttle, PlayerEntity::leaveWitchspace, PlayerEntity(LoadSave)::loadPlayerFromFile:asNew:, Universe::makeDemoShipWithRole:spinning:, PlayerEntity(Scripting)::processSceneString:atOffset:, ShipEntity::releaseCargoPodsDebris, setNormalOrientation:, PlayerEntity::setNormalOrientation:, OOWaypointEntity::setOrientation:, PlanetEntity::setOrientation:, Universe::setUpBreakPattern:orientation:forDocking:, Universe(OOPrivate)::setUpInitialUniverse, Universe::setupIntroFirstGo:, OOVisualEffectEntity(Private)::setUpOneStandardSubentity:, ShipEntity::setUpOneStandardSubentity:asTurret:, Universe::setUpSpace, Universe::setUpWitchspaceBetweenSystem:andSystem:, PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:, Universe::spawnShip:, Universe::spawnShipWithRole:near:, OOLaserShotEntity::update:, ShipEntity::update:, and Universe::update:.
| - (void) setOwner: | (Entity*) | ent |
Reimplemented in ShipEntity.
Definition at line 542 of file Entity.m.
References _owner, and OOWeakRefObject::weakRetain.
Referenced by dealloc, ShipEntity::fireTurretCannon:, PlanetEntity(OOPrivate)::initAsAtmosphereForPlanet:dictionary:, OOExhaustPlumeEntity::initForShip:withDefinition:andScale:, OOLaserShotEntity::initLaserFromShip:direction:offset:, OOQuiriumCascadeEntity::initQuiriumCascadeFromShip:, OORingEffectEntity::initRingFromEntity:, OOVisualEffectEntity(SubEntityRelationship)::isShipWithSubEntityShip:, ShipEntity(SubEntityRelationship)::isShipWithSubEntityShip:, ShipEntity::removeExhaust:, ShipEntity::removeFlasher:, ShipEntity::setOwner:, and ShipEntity::throwSparks.
| - (void) setPosition: | (HPVector) | posn |
Reimplemented in OOSunEntity, and PlanetEntity.
Definition at line 608 of file Entity.m.
References position, and updateCameraRelativePosition.
Referenced by Universe::addLaserHitEffectsAt:against:damage:color:, Universe::addShipAt:withRole:withinRadius:, Universe::addShips:withRole:atPosition:withCoordinateSystem:, Universe::addShipWithRole:launchPos:rfactor:, Universe::addWreckageFrom:withRole:at:scale:lifetime:, ShipEntity::becomeExplosion, DockEntity::clearDockingCorridor, ShipEntity::collideWithShip:, WormholeEntity::disgorgeShips, PlayerEntity::docked, ShipEntity::dumpItem:, EntitySetProperty(), EntitySetProperty(), ShipEntity::fireDirectLaserShotAt:, ShipEntity::fireMissileWithIdentifier:andTarget:, OOExhaustPlumeEntity::initForShip:withDefinition:andScale:, OOECMBlastEntity::initFromShip:, OOLaserShotEntity::initLaserFromShip:direction:offset:, OOQuiriumCascadeEntity::initQuiriumCascadeFromShip:, OORingEffectEntity::initRingFromEntity:, OOPlasmaBurstEntity::initWithPosition:, OOFlashEffectEntity(Private)::initWithPosition:size:color:duration:, OOParticleSystem::initWithPosition:velocity:count:minSpeed:maxSpeed:duration:baseColor:, OOSparkEntity::initWithPosition:velocity:duration:size:color:, OOPlasmaShotEntity::initWithPosition:velocity:energy:duration:color:, ShipEntity::launchCascadeMine, DockEntity::launchShip:, PlanetEntity::launchShuttle, ShipEntity::leaveWitchspace, PlayerEntity::moveForward:, PlayerEntity(Scripting)::processSceneString:atOffset:, ShipEntity::releaseCargoPodsDebris, OOVisualEffectEntity::rescaleBy:, ShipEntity(Private)::rescaleBy:writeToCache:, WormholeEntity::setExitPosition:, OOSunEntity::setPosition:, OOVisualEffectEntity::setScaleX:, OOVisualEffectEntity::setScaleY:, OOVisualEffectEntity::setScaleZ:, Universe::setUpBreakPattern:orientation:forDocking:, Universe(OOPrivate)::setUpInitialUniverse, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, OOVisualEffectEntity(Private)::setUpOneFlasher:, ShipEntity(Private)::setUpOneFlasher:, OOVisualEffectEntity(Private)::setUpOneStandardSubentity:, ShipEntity::setUpOneStandardSubentity:asTurret:, Universe::setUpSpace, Universe::setUpUniverseFromStation, DockEntity::shipIsInDockingCorridor:, ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:, Universe::spawnShip:, OOLaserShotEntity::update:, and Universe::update:.
| - (void) setPositionX: | (OOHPScalar) | x | |
| y: | (OOHPScalar) | y | |
| z: | (OOHPScalar) | z |
Definition at line 614 of file Entity.m.
References position, updateCameraRelativePosition, x, and y.
Referenced by Universe::makeDemoShipWithRole:spinning:, Universe::setupIntroFirstGo:, PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:, and Universe::update:.
| - (void) setScanClass: | (OOScanClass) | sClass |
Definition at line 738 of file Entity.m.
References scanClass.
Referenced by ShipEntity::abandonShip, Universe::addShipAt:withRole:withinRadius:, Universe::addShips:withRole:atPosition:withCoordinateSystem:, Universe::addShipWithRole:launchPos:rfactor:, PlayerEntity(ScriptMethods)::awardCommodityType:amount:, ShipEntity::becomeExplosion, PlayerEntity::createCargoPodWithType:andAmount:, ShipEntity::dumpItem:, EntitySetProperty(), EntitySetProperty(), ShipEntity::fireDirectLaserShotAt:, ShipEntity::fireLaserShotInDirection:weaponIdentifier:, ShipEntity::fireMissileWithIdentifier:andTarget:, ShipEntity::fireSubentityLaserShot:, OOECMBlastEntity::initFromShip:, OORingEffectEntity::initRingFromEntity:, OOLightParticleEntity::initWithDiameter:, OOWaypointEntity::initWithDictionary:, OOBreakPatternEntity::initWithPolygonSides:startAngle:aspectRatio:, ShipEntity::launchCascadeMine, StationEntity::launchDefenseShip, StationEntity::launchEscort, StationEntity::launchIndependentShip:, PlayerEntity::launchMine:, StationEntity::launchMiner, StationEntity::launchPatrol, StationEntity::launchPirateShip, StationEntity::launchPolice, StationEntity::launchScavenger, StationEntity::launchShipWithRole:, PlanetEntity::launchShuttle, StationEntity::launchShuttle, PlayerEntity::loadCargoPodsForType:amount:, Universe::makeDemoShipWithRole:spinning:, Universe::newShipWithRole:, PlayerEntity(Scripting)::processSceneString:atOffset:, ShipEntity::releaseCargoPodsDebris, Universe(OOPrivate)::setUpCargoPods, Universe::setupIntroFirstGo:, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, Universe::setUpSpace, Universe::setUpWitchspaceBetweenSystem:andSystem:, PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:, Universe::update:, and Universe::witchspaceShipWithPrimaryRole:.
| - (void) setStatus: | (OOEntityStatus) | stat |
Reimplemented in ShipEntity.
Definition at line 728 of file Entity.m.
References _status.
Referenced by DustEntity::init, init, WormholeEntity(Private)::init, PlanetEntity::initFromDictionary:withAtmosphere:andSeed:, OOECMBlastEntity::initFromShip:, OOLaserShotEntity::initLaserFromShip:direction:offset:, OOQuiriumCascadeEntity::initQuiriumCascadeFromShip:, OORingEffectEntity::initRingFromEntity:, SkyEntity::initWithColors:col2:andSystemInfo:, OOLightParticleEntity::initWithDiameter:, OOWaypointEntity::initWithDictionary:, OOBreakPatternEntity::initWithPolygonSides:startAngle:aspectRatio:, OOParticleSystem::initWithPosition:velocity:count:minSpeed:maxSpeed:duration:baseColor:, PlanetEntity::miniaturize, ShipEntity::scoopUpProcess:processEvents:processMessages:, ShipEntity::setStatus:, Universe::setUpSpace, and OOVisualEffectEntity::setUpVisualEffectFromDictionary:.
| - (void) setThrowSparks: | (BOOL) | value |
Definition at line 532 of file Entity.m.
References throw_sparks.
Referenced by ShipEntity(PureAI)::ai_throwSparks, and Universe::setUpSpace.
| - (void) setUniversalID: | (OOUniversalID) | uid |
Definition at line 517 of file Entity.m.
References universalID.
Referenced by Universe(OOPrivate)::doRemoveEntity:.
| - (void) setVelocity: | (Vector) | vel |
Definition at line 703 of file Entity.m.
References velocity.
Referenced by Universe::addLaserHitEffectsAt:against:damage:color:, Universe::addWreckageFrom:withRole:at:scale:lifetime:, ShipEntity::becomeExplosion, WormholeEntity::disgorgeShips, ShipEntity::dumpItem:, ShipEntity::fireDirectLaserShotAt:, ShipEntity::fireLaserShotInDirection:weaponIdentifier:, ShipEntity::fireMissileWithIdentifier:andTarget:, OOFlashEffectEntity::initExplosionFlashWithPosition:velocity:size:, OOFlashEffectEntity::initLaserFlashWithPosition:velocity:color:, OORingEffectEntity::initRingFromEntity:, OOSparkEntity::initWithPosition:velocity:duration:size:color:, OOPlasmaShotEntity::initWithPosition:velocity:energy:duration:color:, ShipEntity::launchCascadeMine, PlayerEntity::launchEscapeCapsule, PlayerEntity::launchMine:, DockEntity::launchShip:, PlayerEntity(Scripting)::processSceneString:atOffset:, ShipEntity::releaseCargoPodsDebris, ShipEntity::setTotalVelocity:, Universe::setUpBreakPattern:orientation:forDocking:, Universe::setUpSpace, and Universe::update:.
| - (GLfloat) spawnTime |
References fogUniform, spawnTime, and timeElapsedSinceSpawn.
| - (double) speed |
Definition at line 713 of file Entity.m.
References magnitude(), speed, and velocity.
Referenced by ShipEntity::behaviour_attack_break_off_target:, ShipEntity::behaviour_attack_fly_from_target:, ShipEntity::behaviour_attack_fly_to_target:, ShipEntity::behaviour_attack_slow_dogfight:, ShipEntity::behaviour_evasive_action:, ShipEntity::behaviour_fly_to_target_six:, ShipEntity::behaviour_intercept_target:, OOParticleSystem::initWithPosition:velocity:count:minSpeed:maxSpeed:duration:baseColor:, ShipEntity::missileTrackPrimaryTarget:, StationEntity::OOMakeDockingInstructions, WormholeEntity::setExitSpeed:, speed, OOExhaustPlumeEntity::update:, and velocity.
| - (OOEntityStatus) status |
Definition at line 733 of file Entity.m.
References _status, and status.
Referenced by DockEntity::abortAllDockings, DockEntity::abortDockingForShip:, ShipEntity::acceptAsEscort:, PlayerEntity::addTarget:, ShipEntity::alertCondition, ShipEntity::becomeExplosion, StationEntity::becomeExplosion, ShipEntity::becomeLargeExplosion:, ShipEntity::behaviour_tractored:, PlayerEntity::canCollide, ShipEntity::canCollide, PlayerEntity::cargoQuantityForType:, PlayerEntity(Scripting)::checkScript, DockEntity::clearDockingCorridor, PlayerEntity::collectBountyFor:, descriptionComponents, PlayerEntity::dialFuelScoopStatus, WormholeEntity::disgorgeShips, distanceTravelled, PlayerEntity::doBookkeeping:, PlayerEntity::docked, PlayerEntity(ScriptMethods)::dockedAtMainStation, DockEntity::dockingCorridorIsEmpty, PlayerEntity::drawImmediate:translucent:, Universe::drawUniverse, dumpSelfState, PlayerEntity::engageAutopilotToStation:, PlayerEntity::enterDock:, PlayerEntity::enterWormhole:, ShipEntity::enterWormhole:replacing:, EntityGetProperty(), EntityGetProperty(), ShipEntity::getTractoredBy:, PlayerEntity::interpretAIMessage:, PlayerEntity::isDocked, isInSpace, PlayerEntity::isValidTarget:, ShipEntity::isValidTarget:, PlayerEntity::launchEscapeCapsule, StationEntity::legalStatusOfManifest:export:, StationEntity::noteDockedShip:, ShipEntity::noteKilledBy:damageType:, ShipEntity::onTarget:withWeapon:, PlayerEntity(OOControlsPrivate)::pollGuiScreenControlsWithFKeyAlias:, ShipEntity::realAlertCondition, PlayerEntity::receiveCommsMessage:from:, ShipEntity::removeEquipmentItem:, ShipEntity::scoopUpProcess:processEvents:processMessages:, PlayerEntity::setCargoQuantityForType:amount:, PlayerEntity::setFoundTarget:, PlayerEntity::setGuiToChartScreenFrom:, PlayerEntity(KeyMapper)::setGuiToConfirmClearScreen, PlayerEntity::setGuiToGameOptionsScreen, PlayerEntity::setGuiToIntroFirstGo:, PlayerEntity(KeyMapper)::setGuiToKeyboardLayoutScreen:resetCurrentRow:, PlayerEntity(KeyMapper)::setGuiToKeyConfigEntryScreen, PlayerEntity(KeyMapper)::setGuiToKeyConfigScreen:, PlayerEntity(KeyMapper)::setGuiToKeyMapperScreen:resetCurrentRow:, PlayerEntity::setGuiToLoadSaveScreen, PlayerEntity(Contracts)::setGuiToManifestScreen, PlayerEntity::setGuiToMarketInfoScreen, PlayerEntity::setGuiToMarketScreen, PlayerEntity::setGuiToStatusScreen, PlayerEntity(StickMapper)::setGuiToStickMapperScreen:resetCurrentRow:, PlayerEntity::setGuiToSystemDataScreenRefreshBackground:, ShipEntity::setProximityAlert:, ShipEntity::setStatus:, DockEntity::shipIsInDockingCorridor:, StationEntity::shipIsInDockingCorridor:, DockEntity::shipIsInDockingQueue:, status, WormholeEntity::suckInShip:, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, ShipEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, PlayerEntity::takeHeatDamage:, ShipEntity::takeHeatDamage:, PlayerEntity::takeScrapeDamage:from:, ShipEntity::takeScrapeDamage:from:, DockEntity::update:, update:, OOECMBlastEntity::update:, PlayerEntity::update:, ShipEntity::update:, StationEntity::update:, PlayerEntity::validateCompassTarget, ShipEntity::validateDefenseTargets, ShipEntity::wasAddedToUniverse, and PlayerEntity::witchJumpChecklist:.
|
implementation |
Reimplemented in ShipEntity.
Definition at line 958 of file Entity.m.
References OOLog.
|
implementation |
Definition at line 561 of file Entity.m.
References parentEntity, and superShaderBindingTarget.
Referenced by superShaderBindingTarget.
|
implementation |
Provided by category Entity(ShaderBindings).
Definition at line 57 of file EntityShaderBindings.m.
|
implementation |
Provided by category Entity(ShaderBindings).
Definition at line 52 of file EntityShaderBindings.m.
|
implementation |
Provided by category Entity(ShaderBindings).
Definition at line 67 of file EntityShaderBindings.m.
|
implementation |
Provided by category Entity(ShaderBindings).
Definition at line 72 of file EntityShaderBindings.m.
|
implementation |
Provided by category Entity(ShaderBindings).
Definition at line 62 of file EntityShaderBindings.m.
| - (void) takeEnergyDamage: | (double) | amount | |
| from: | (Entity*) | ent | |
| becauseOf: | (Entity*) | other | |
| weaponIdentifier: | (NSString*) | weaponIdentifier |
Reimplemented in DockEntity, PlayerEntity, ShipEntity, and StationEntity.
Definition at line 899 of file Entity.m.
Referenced by ShipEntity::dealEnergyDamage:atRange:withBias:, ShipEntity::dealEnergyDamageWithinDesiredRange, OOPlasmaShotEntity::update:, and OOQuiriumCascadeEntity::update:.
| - (BOOL) throwingSparks |
Definition at line 527 of file Entity.m.
References throw_sparks, and throwingSparks.
Referenced by throwingSparks, and universalID.
| - (void) throwSparks |
Reimplemented in ShipEntity.
Definition at line 537 of file Entity.m.
References throwSparks.
Referenced by throwSparks, and universalID.
| - (GLfloat) timeElapsedSinceSpawn |
Definition at line 985 of file Entity.m.
References spawnTime, and timeElapsedSinceSpawn.
Referenced by spawnTime, timeElapsedSinceSpawn, OOFlashEffectEntity::update:, OOPlasmaBurstEntity::update:, and OOPlasmaShotEntity::update:.
| - (OOMatrix) transformationMatrix |
Definition at line 813 of file Entity.m.
References OOMatrixHPTranslate(), position, rotMatrix, and transformationMatrix.
Referenced by maxEnergy, and transformationMatrix.
References owner, parentEntity, rootShipEntity, throwingSparks, throwSparks, and universalID.
| - (GLfloat) universalTime |
Definition at line 975 of file Entity.m.
References universalTime.
Referenced by isImmuneToBreakPatternHide, and universalTime.
| - (void) update: | (OOTimeDelta) | delta_t |
Reimplemented in DockEntity, DustEntity, OOBigFragmentBurstEntity, OOBreakPatternEntity, OOECMBlastEntity, OOExhaustPlumeEntity, OOExplosionCloudEntity, OOFlashEffectEntity, OOFlasherEntity, OOLaserShotEntity, OOParticleSystem, OOPlasmaBurstEntity, OOPlasmaShotEntity, OOQuiriumCascadeEntity, OORingEffectEntity, OOSmallFragmentBurstEntity, OOSparkEntity, OOSunEntity, OOVisualEffectEntity, PlanetEntity, PlayerEntity, ShipEntity, SkyEntity, StationEntity, and WormholeEntity.
Definition at line 850 of file Entity.m.
References _status, applyVelocity:, cam_zero_distance, cameraRelativePosition, camZeroDistance, hasMoved, hasRotated, HPdistance2(), HPmagnitude2(), HPvector_equal(), HPVectorToVector(), isSubEntity, lastOrientation, lastPosition, orientation, owner, PLAYER, position, quaternion_equal(), status, updateCameraRelativePosition, zero_distance, and zeroDistance.
Referenced by OOBreakPatternEntity::update:, OOFlashEffectEntity::update:, OOFlasherEntity::update:, OOLaserShotEntity::update:, OOParticleSystem::update:, OOPlasmaBurstEntity::update:, OOPlasmaShotEntity::update:, OOQuiriumCascadeEntity::update:, OORingEffectEntity::update:, OOSparkEntity::update:, OOSunEntity::update:, OOVisualEffectEntity::update:, PlanetEntity::update:, ShipEntity::update:, Universe::update:, and WormholeEntity::update:.
| - (void) updateCameraRelativePosition |
Reimplemented in DustEntity, and OOSunEntity.
Definition at line 622 of file Entity.m.
References absolutePositionForSubentity, cameraRelativePosition, HPvector_subtract(), HPVectorToVector(), PLAYER, and updateCameraRelativePosition.
Referenced by cameraRelativePosition, Universe::drawUniverse, setPosition:, setPositionX:y:z:, update:, and updateCameraRelativePosition.
| - (void) updateLinkedLists |
Definition at line 393 of file Entity.m.
References checkLinkedLists, collision_radius, DEBUG_LINKED_LISTS, gDebugFlags, kOOLogEntityVerificationError, nil, OOLog, position, UNIVERSE, updateLinkedLists, x_next, x_previous, y_next, y_previous, z_next, and z_previous.
Referenced by isVisualEffect, Universe::update:, and updateLinkedLists.
| - (BOOL) validForAddToUniverse |
Reimplemented in PlayerEntity, and ShipEntity.
Definition at line 195 of file Entity.m.
References EXPECT_NOT, OOLogERR, sessionID, and validForAddToUniverse.
Referenced by isVisualEffect, validForAddToUniverse, and ShipEntity::validForAddToUniverse.
Definition at line 603 of file Entity.m.
References HPvector_subtract(), HPVectorToVector(), and position.
Referenced by ShipEntity::dealEnergyDamage:atRange:withBias:, ShipEntity::dealEnergyDamageWithinDesiredRange, ShipEntity::dealMomentumWithinDesiredRange:, ShipEntity::missileTrackPrimaryTarget:, and ShipEntity::trackOntoTarget:withDForward:.
Reimplemented in ShipEntity.
References speed, and velocity.
| - (void) warnAboutHostiles |
Reimplemented in PlayerEntity.
Definition at line 499 of file Entity.m.
References OOLog, and warnAboutHostiles.
Referenced by isVisualEffect, and warnAboutHostiles.
| - (void) wasAddedToUniverse |
Reimplemented in ShipEntity.
Definition at line 489 of file Entity.m.
References wasAddedToUniverse.
Referenced by isVisualEffect, wasAddedToUniverse, and ShipEntity::wasAddedToUniverse.
| - (void) wasRemovedFromUniverse |
Reimplemented in ShipEntity.
Definition at line 494 of file Entity.m.
References wasRemovedFromUniverse.
Referenced by Universe(OOPrivate)::doRemoveEntity:, isVisualEffect, and wasRemovedFromUniverse.
| - (double) zeroDistance |
Definition at line 648 of file Entity.m.
References zero_distance, and zeroDistance.
Referenced by cameraRelativePosition, update:, and zeroDistance.
|
private |
|
private |
|
private |
Definition at line 159 of file Entity.h.
Referenced by setStatus:, status, and update:.
| - (OOColor*) atmosphereFogging |
Definition at line 111 of file Entity.h.
Referenced by init, and setAtmosphereFogging:.
|
protected |
Definition at line 666 of file Entity.m.
Referenced by ShipEntity::becomeExplosion, boundingBox, PlayerEntity::doBookkeeping:, ShipEntity::drawImmediate:translucent:, ShipEntity::drawSubEntityImmediate:translucent:, ShipEntity::dumpItem:, ShipEntity::fireMissileWithIdentifier:andTarget:, Universe::firstShipHitByLaserFromShip:inDirection:offset:gettingRangeFound:, OOLaserShotEntity::initLaserFromShip:direction:offset:, PlayerEntity::launchEscapeCapsule, DockEntity::launchShip:, ShipEntity::missileLaunchPosition, ShipEntity::positionOffsetForAlignment:, ShipEntity::releaseCargoPodsDebris, PlayerEntity::setDefaultViewOffsets, DockEntity::setDimensionsAndCorridor:ddc:launching:, OOEntityWithDrawable::setDrawable:, ShipEntity::setUpSubEntities, ShipGetProperty(), ShipGetProperty(), DockEntity::shipIsInDockingCorridor:, ShipEntity::throwSparks, and ShipEntity::update:.
| - (GLfloat) cam_zero_distance |
Definition at line 105 of file Entity.h.
Referenced by camZeroDistance, OOEntityWithDrawable::drawImmediate:translucent:, OOLightParticleEntity::drawImmediate:translucent:, OOParticleSystem::drawImmediate:translucent:, OOQuiriumCascadeEntity::drawImmediate:translucent:, OOVisualEffectEntity::drawImmediate:translucent:, OOWaypointEntity::drawImmediate:translucent:, PlanetEntity::drawImmediate:translucent:, ShipEntity::drawImmediate:translucent:, WormholeEntity::drawImmediate:translucent:, OOSunEntity::drawStarGlare, OOLightParticleEntity::drawSubEntityImmediate:translucent:, ShipEntity::drawSubEntityImmediate:translucent:, PlanetEntity::drawUnconditionally, isVisible, ShipEntity::isVisible, update:, PlanetEntity::update:, and SkyEntity::update:.
| - (Vector) cameraRelativePosition |
Definition at line 581 of file Entity.m.
Referenced by cameraRangeBack, cameraRangeFront, cameraRelativePosition, OOEntityWithDrawable::drawImmediate:translucent:, PlanetEntity::drawImmediate:translucent:, PlanetEntity::drawUnconditionally, Universe::drawUniverse, DustEntity::update:, update:, DustEntity::updateCameraRelativePosition, updateCameraRelativePosition, and OOSunEntity::updateCameraRelativePosition.
| - (Entity*) collider |
Definition at line 124 of file Entity.h.
Referenced by ShipEntity::checkCloseCollisionWith:, and CollisionRegion::findCollisions.
|
protected |
Definition at line 144 of file Entity.h.
Referenced by ShipEntity::checkCloseCollisionWith:, collisionArray, dealloc, init, ShipEntity::manageCollisions, OOPlasmaShotEntity::update:, and OOQuiriumCascadeEntity::update:.
| - (Entity*) collision_chain |
Definition at line 120 of file Entity.h.
Referenced by Universe::filterSortedLists, and CollisionRegion::findCollisions.
| - (GLfloat) collision_radius |
Definition at line 107 of file Entity.h.
Referenced by Universe::addShips:withRole:atPosition:withCoordinateSystem:, addToLinkedLists, ShipEntity::avoidCollision, ShipEntity::becomeExplosion, ShipEntity::behaviour_attack_slow_dogfight:, ShipEntity::behaviour_avoid_collision:, ShipEntity::behaviour_intercept_target:, ShipEntity::behaviour_tractored:, ShipEntity::checkCloseCollisionWith:, PlayerEntity(OOPrivate)::checkEntityForMassLock:withScanClass:, OOVisualEffectEntity::clearSubEntities, ShipEntity::clearSubEntities, collisionRadius, OOVisualEffectEntity::collisionRadius, Universe::countEntitiesMatchingPredicate:parameter:inRange:ofEntity:, PlayerEntity::customViewZoomIn:, PlayerEntity::customViewZoomOut:, PlayerEntity::dialAltitude, PlayerEntity::doBookkeeping:, DockEntity::dockingInstructionsForShip:, OOEntityWithDrawable::drawImmediate:translucent:, OOParticleSystem::drawImmediate:translucent:, OOQuiriumCascadeEntity::drawImmediate:translucent:, WormholeEntity::drawImmediate:translucent:, HeadUpDisplay(Private)::drawScanner:, OOSunEntity::drawStarGlare, PlanetEntity::drawUnconditionally, ShipEntity::dumpItem:, CollisionRegion::entityByEntityOcclusionToValue, Universe::EntityInRange, Universe::filterSortedLists, OOExhaustPlumeEntity::findCollisionRadius, CollisionRegion::findCollisions, ShipEntity::fireMissileWithIdentifier:andTarget:, ShipEntity::fireTurretCannon:, Universe::firstShipHitByLaserFromShip:inDirection:offset:gettingRangeFound:, frustumRadius, Universe::getSafeVectorFromEntity:toDistance:fromPoint:, Universe::getSunSkimEndPositionForShip:, Universe::getSunSkimStartPositionForShip:, Universe::hazardOnRouteFromEntity:toDistance:fromPoint:, HeadUpDisplay::hudDrawReticleOnTarget, DustEntity::init, PlanetEntity(OOPrivate)::initAsAtmosphereForPlanet:dictionary:, PlanetEntity::initFromDictionary:withAtmosphere:andSeed:, OOSunEntity::initSunWithColor:andDictionary:, WormholeEntity::initWormholeTo:fromShip:, Universe::isVectorClearFromEntity:toDistance:fromPoint:, ShipEntity::launchCascadeMine, PlanetEntity::launchShuttle, ShipEntity::legalStatus, PlanetEntity::miniaturize, ShipEntity::onTarget:withWeapon:, OOSunEntity::radius, PlanetEntity::radius, ShipEntity::rangeToSecondaryTarget:, OOVisualEffectEntity::rescaleBy:, setCollisionRadius:, ShipEntity(PureAI)::setDestinationWithinTarget, OOEntityWithDrawable::setDrawable:, ShipEntity::setProximityAlert:, ShipEntity(PureAI)::setRacepointsFromTarget, PlanetEntity::setRadius:, OOSunEntity::setRadius:andCorona:, ShipEntity(Private)::setUpOneEscort:inGroup:withRole:atPosition:andCount:, OOVisualEffectEntity::setUpSubEntities, ShipEntity::setUpSubEntities, OOVisualEffectEntity::setUpVisualEffectFromDictionary:, CollisionRegion::shadowAtPointOcclusionToValue, Universe::spawnShipWithRole:near:, WormholeEntity::suckInShip:, ShipEntity::trackOntoTarget:withDForward:, ShipEntity::trackPrimaryTarget:retreat:, OOExhaustPlumeEntity::update:, OOParticleSystem::update:, OOQuiriumCascadeEntity::update:, OOSunEntity::update:, PlanetEntity::update:, ShipEntity::update:, WormholeEntity::update:, and updateLinkedLists.
| - (CollisionRegion *) collisionRegion |
Definition at line 505 of file Entity.m.
Referenced by collisionRegion, dealloc, and setCollisionRegion:.
| - (unsigned) collisionTestFilter |
Definition at line 96 of file Entity.h.
Referenced by dumpSelfState, Universe::filterSortedLists, and CollisionRegion::findCollisions.
|
protected |
Definition at line 718 of file Entity.m.
Referenced by distanceTravelled, dumpSelfState, moveForward:, PlayerEntity::moveForward:, setDistanceTravelled:, and ShipEntity::update:.
|
protected |
Definition at line 753 of file Entity.m.
Referenced by ShipEntity::activateCloakingDevice, ShipEntity::alertCondition, ShipEntity::behaviour_track_as_turret:, ShipEntity::collideWithShip:, ShipEntity::considerFiringMissile:, ShipEntity::damage, PlayerEntity::dialEnergy, PlayerEntity::doBookkeeping:, PlayerEntity::docked, dumpSelfState, energy, ShipEntity::fireDirectLaserDefensiveShot, PlayerEntity::fireMainWeapon, ShipEntity::fireSubentityLaserShot:, ShipEntity::fireWeapon:direction:range:, PlayerEntity::getDestroyedBy:damageType:, PlanetEntity::initFromDictionary:withAtmosphere:andSeed:, PlayerEntity::launchEscapeCapsule, ShipEntity::removeEquipmentItem:, ShipEntity(PureAI)::requestNewTarget, setEnergy:, PlayerEntity::setUpAndConfirmOK:saveGame:, PlayerEntity::setUpShipFromDictionary:, ShipEntity::setUpShipFromDictionary:, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, ShipEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, StationEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, ShipEntity::takeHeatDamage:, ShipEntity::takeScrapeDamage:from:, OOPlasmaShotEntity::update:, OOQuiriumCascadeEntity::update:, and ShipEntity::update:.
| - (unsigned) hasCollided |
Definition at line 94 of file Entity.h.
Referenced by CollisionRegion::findCollisions.
| - (unsigned) hasMoved |
Definition at line 92 of file Entity.h.
Referenced by dumpSelfState, CollisionRegion::findShadowedEntities, and update:.
| - (unsigned) hasRotated |
Definition at line 93 of file Entity.h.
Referenced by applyRoll:andClimb:, PlayerEntity::applyRoll:andClimb:, ShipEntity::applyRoll:andClimb:, applyRoll:climb:andYaw:, ShipEntity::applyRoll:climb:andYaw:, dumpSelfState, and update:.
| - (unsigned) isExplicitlyNotMainStation |
Definition at line 99 of file Entity.h.
Referenced by Universe::addEntity:, Universe::IsCandidateMainStationPredicate, and Universe::unMagicMainStation.
| - (BOOL) isImmuneToBreakPatternHide |
Definition at line 1050 of file Entity.m.
Referenced by OOBreakPatternEntity::drawImmediate:translucent:, OOEntityWithDrawable::drawImmediate:translucent:, OOLightParticleEntity::drawImmediate:translucent:, Universe::drawUniverse, OOBreakPatternEntity::initWithPolygonSides:startAngle:aspectRatio:, OOVisualEffectEntity::isBreakPattern, isImmuneToBreakPatternHide, OOVisualEffectEntity::setIsBreakPattern:, Universe::setUpBreakPattern:orientation:forDocking:, and OOVisualEffectEntity::setUpVisualEffectFromDictionary:.
| - (BOOL) isPlayer |
Definition at line 145 of file Entity.m.
Referenced by ShipEntity::abandonShip, DockEntity::abortDockingForShip:, StationEntity::abortDockingForShip:, StationEntity::acceptDockingClearanceRequestFrom:, ShipEntity::addEquipmentItem:withValidation:inContext:, PlayerEntity::addRoleForAggression:, DockEntity::allowsLaunchingOf:, ShipEntity::becomeExplosion, ShipEntity::becomeLargeExplosion:, ShipEntity::behaviour_tractored:, ShipEntity(AI)::broadcastDistressMessageWithDumping:, ShipEntity::broadcastMessage:withUnpilotedOverride:, ShipEntity::canScoop:, ShipEntity::checkShipsInVicinityForWitchJumpExit, PlayerEntity::deferredInit, DockEntity::dockingCorridorIsEmpty, StationEntity::dockingInstructionsForShip:, OOExhaustPlumeEntity::drawSubEntityImmediate:translucent:, ShipEntity::dumpItem:, dumpSelfState, ShipEntity::equipmentValidToAdd:whileLoading:inContext:, ShipEntity::fireLaserShotInDirection:weaponIdentifier:, ShipEntity::fireMissileWithIdentifier:andTarget:, ShipEntity::fireSubentityLaserShot:, ShipEntity::fireTurretCannon:, WormholeEntity::initWormholeTo:fromShip:, isPlayer, PlayerEntity::lookingAtSunWithThresholdAngleCos:, ShipEntity::manageCollisions, StationEntity::noteDockedShip:, ShipEntity::realAlertCondition, ShipEntity::releaseCargoPodsDebris, ShipEntity::removeEquipmentItem:, ShipEntity::rollToMatchUp:rotating:, ShipEntity(PureAI)::scanForFormationLeader, ShipEntity(PureAI)::scanForNearestMerchantman, ShipEntity::scoopUpProcess:processEvents:processMessages:, ShipEntity::sendMessage:toShip:withUnpilotedOverride:, DockEntity::shipIsInDockingCorridor:, StationEntity::shipIsInDockingCorridor:, DockEntity::shipIsInDockingQueue:, ShipEntity::trackDestination:retreat:, OOExhaustPlumeEntity::update:, and OOLaserShotEntity::update:.
| - (BOOL) isShip |
Definition at line 125 of file Entity.m.
Referenced by DockEntity::abortAllDockings, ShipEntity::addDefenseTarget:, PlayerEntity::addTarget:, DockEntity::allowsLaunchingOf:, ShipEntity::approachAspectToPrimaryTarget, ShipEntity::behaviour_attack_break_off_target:, ShipEntity::behaviour_attack_fly_to_target:, ShipEntity::behaviour_attack_sniper:, ShipEntity::behaviour_attack_target:, ShipEntity::behaviour_flee_target:, ShipEntity::behaviour_fly_to_target_six:, ShipEntity::behaviour_formation_form_up:, ShipEntity::behaviour_tractored:, ShipEntity::broadcastEnergyBlastImminent, PlanetEntity::checkCloseCollisionWith:, ShipEntity::checkCloseCollisionWith:, PlayerEntity(OOPrivate)::checkEntityForMassLock:withScanClass:, ShipEntity::checkScanner, ShipEntity::checkScannerIgnoringUnpowered, ShipEntity::checkShipsInVicinityForWitchJumpExit, DockEntity::clearDockingCorridor, ShipEntity::dealMomentumWithinDesiredRange:, PlayerEntity::doBookkeeping:, DockEntity::dockingCorridorIsEmpty, ShipEntity::doOctreesCollide, OOEntityWithDrawable::drawImmediate:translucent:, dumpSelfState, CollisionRegion::findCollisions, ShipEntity::fireLaserShotInDirection:weaponIdentifier:, ShipEntity::fireMissileWithIdentifier:andTarget:, StationEntity::fitsInDock:andLogNoFit:, PlayerEntity::hasHostileTarget, ShipEntity::hasHostileTarget, OOLaserShotEntity::initLaserFromShip:direction:offset:, ShipEntity::initWithKey:definition:, ShipEntity::interpretAIMessage:, isShip, IsShipPredicate(), PlayerEntity::isValidTarget:, ShipEntity::isValidTarget:, DockEntity::launchShip:, PlayerEntity::lookingAtSunWithThresholdAngleCos:, PlayerEntity::loseTargetStatus, ShipEntity::manageCollisions, ShipEntity::missileTrackPrimaryTarget:, PlayerEntity::moveTargetMemoryBy:, ShipEntity::noteKilledBy:damageType:, ShipEntity::noteLostTarget, ShipEntity::noteTakingDamage:from:type:, ShipEntity::realAlertCondition, HeadUpDisplay::refreshLastTransmitter, ShipEntity::respondToAttackFrom:becauseOf:, rootShipEntity, ShipEntity::setSubEntityTakingDamage:, ShipEntity(PureAI)::setTargetToPrimaryAggressor, DockEntity::setUpShipFromDictionary:, ShipEntity::setUpShipFromDictionary:, StationEntity::setUpShipFromDictionary:, DockEntity::shipIsInDockingCorridor:, StationEntity::shipIsInDockingCorridor:, DockEntity::shipIsInDockingQueue:, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, ShipEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, StationEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, ShipEntity::takeScrapeDamage:from:, ShipEntity::trackPrimaryTarget:retreat:, ShipEntity::update:, PlayerEntity(OOPrivate)::updateAlertConditionForNearbyEntities, and ShipEntity::updateTrackingCurve.
| - (BOOL) isStation |
Definition at line 135 of file Entity.m.
Referenced by ShipEntity::behaviour_fly_to_destination:, ShipEntity::behaviour_idle:, ShipEntity(AI)::broadcastDistressMessageWithDumping:, PlayerEntity::cancelDockingRequest:, ShipEntity::canScoop:, ShipEntity::cascadeIfAppropriateWithDamageAmount:cascadeOwner:, ShipEntity(PureAI)::checkForMotherStation, PlayerEntity::doBookkeeping:, ShipEntity::dockEscorts, dumpSelfState, CollisionRegion::findCollisions, StationEntity::initWithKey:definition:, Universe::IsCandidateMainStationPredicate, Universe::IsFriendlyStationPredicate, isStation, IsStationPredicate(), PlayerEntity::localMarket, PlayerEntity::marketScreenTitle, PlayerEntity::performDockingRequest:, Universe::removeAllEntitiesExceptPlayer, PlayerEntity::setDockingClearanceStatus:, PlayerEntity::setDockTarget:, PlayerEntity::setGuiToMarketScreen, ShipEntity::setProximityAlert:, ShipEntity::setTargetToNearestStationIncludingHostiles:, ShipEntity::setTargetToSystemStation, ShipEntity::setUpOneStandardSubentity:asTurret:, DockEntity::setUpShipFromDictionary:, StationEntity::setUpShipFromDictionary:, StationEntity::setUpSubEntities, Universe::setUpUniverseFromStation, WormholeEntity::suckInShip:, and ShipEntity::trackDestination:retreat:.
| - (BOOL) isSubEntity |
Definition at line 140 of file Entity.m.
Referenced by ShipEntity::abandonShip, ShipEntity::absoluteIJKForSubentity, absolutePositionForSubentityOffset:, OOVisualEffectEntity(Private)::addSubEntity:, ShipEntity(Private)::addSubEntity:, ShipEntity::addTarget:, ShipEntity::adjustMissedShots:, ShipEntity::ballTrackLeadingTarget:atTarget:, PlayerEntity::collectBountyFor:, ShipEntity::descriptionComponents, OOEntityWithDrawable::drawImmediate:translucent:, OOLightParticleEntity::drawImmediate:translucent:, ShipEntity::drawImmediate:translucent:, OOLightParticleEntity::drawSubEntityImmediate:translucent:, dumpSelfState, ShipEntity::fireTurretCannon:, IsShipPredicate(), isSubEntity, IsVisualEffectPredicate(), ShipEntity::markAsOffender:withReason:, ShipEntity::missedShots, ShipEntity::processBehaviour:, ShipEntity::setBounty:withReason:, ShipEntity::setBounty:withReasonAsString:, ShipEntity::setHulk:, ShipEntity::setOwner:, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, ShipEntity::takeHeatDamage:, update:, and ShipEntity::update:.
| - (BOOL) isSunlit |
Definition at line 160 of file Entity.m.
Referenced by ShipEntity::currentAimTolerance, DustEntity::drawImmediate:translucent:, dumpSelfState, CollisionRegion::findShadowedEntities, init, isSunlit, PlayerEntity::lookingAtSunWithThresholdAngleCos:, and ShipEntity::onTarget:withWeapon:.
| - (BOOL) isVisualEffect |
Definition at line 185 of file Entity.m.
Referenced by OOEntityWithDrawable::drawImmediate:translucent:, isVisualEffect, and IsVisualEffectPredicate().
| - (BOOL) isWormhole |
Definition at line 175 of file Entity.m.
Referenced by PlayerEntity::addTarget:, HeadUpDisplay(Private)::drawDirectionCue:, dumpSelfState, PlayerEntity::isValidTarget:, ShipEntity::isValidTarget:, isWormhole, and ShipEntity::manageCollisions.
|
protected |
Definition at line 963 of file Entity.m.
Referenced by init, lastDrawCounter, and setLastDrawCounter:.
|
protected |
Definition at line 130 of file Entity.h.
Referenced by PlayerEntity::applyRoll:andClimb:, and update:.
|
protected |
Definition at line 671 of file Entity.m.
Referenced by ShipEntity::addImpactMoment:fraction:, Universe::addWreckageFrom:withRole:at:scale:lifetime:, PlayerEntity::baseMass, ShipEntity::becomeExplosion, ShipEntity::behaviour_tractored:, ShipEntity::checkShipsInVicinityForWitchJumpExit, ShipEntity::clearSubEntities, ShipEntity::collideWithShip:, DockEntity::dockingCorridorIsEmpty, ShipEntity::dumpItem:, dumpSelfState, WormholeEntity::dumpSelfState, ShipEntity::fuelChargeRate, WormholeEntity::initWormholeTo:fromShip:, mass, ShipEntity::setProximityAlert:, ShipEntity(Private)::subEntityDied:, WormholeEntity::suckInShip:, PlayerEntity::takeInternalDamage, and ShipEntity::takeScrapeDamage:from:.
|
protected |
Definition at line 763 of file Entity.m.
Referenced by ShipEntity::activateCloakingDevice, ShipEntity::addEquipmentItem:withValidation:inContext:, ShipEntity::alertCondition, ShipEntity::considerFiringMissile:, ShipEntity::damage, PlayerEntity::dialEnergy, PlayerEntity::dialMaxEnergy, PlayerEntity::doBookkeeping:, PlayerEntity::docked, dumpSelfState, maxEnergy, OOShipLibraryShields(), ShipEntity::removeEquipmentItem:, setMaxEnergy:, PlayerEntity::setUpShipFromDictionary:, ShipEntity::setUpShipFromDictionary:, ShipEntity(LoadRestore)::shipRestoredFromDictionary:useFallback:context:, ShipEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, ShipEntity::takeHeatDamage:, ShipEntity::takeScrapeDamage:from:, and ShipEntity::update:.
| - (GLfloat) no_draw_distance |
Definition at line 106 of file Entity.h.
Referenced by OOEntityWithDrawable::drawImmediate:translucent:, OOLightParticleEntity::drawImmediate:translucent:, OOVisualEffectEntity::drawImmediate:translucent:, OOWaypointEntity::drawImmediate:translucent:, ShipEntity::drawImmediate:translucent:, WormholeEntity::drawImmediate:translucent:, OOLightParticleEntity::drawSubEntityImmediate:translucent:, ShipEntity::drawSubEntityImmediate:translucent:, init, OOLightParticleEntity::initWithDiameter:, ShipEntity::isVisible, OOEntityWithDrawable::setDrawable:, OOVisualEffectEntity::setNoDrawDistance, OOWaypointEntity::setSize:, ShipEntity::setUpSubEntities, and WormholeEntity::update:.
| - (Quaternion) orientation |
Definition at line 682 of file Entity.m.
Referenced by applyRoll:andClimb:, PlayerEntity::applyRoll:andClimb:, ShipEntity::applyRoll:andClimb:, applyRoll:climb:andYaw:, ShipEntity::applyRoll:climb:andYaw:, PlayerEntity::applyYaw:, ShipEntity::ballTrackLeadingTarget:atTarget:, StationEntity::beaconPosition, PlayerEntity::breakPatternPosition, DockEntity::clearDockingCorridor, OOLaserShotEntity::descriptionComponents, DockEntity::dockingCorridorIsEmpty, DockEntity::dockingInstructionsForShip:, dumpSelfState, ShipEntity::fireDirectLaserShotAt:, ShipEntity::fireLaserShotInDirection:weaponIdentifier:, ShipEntity::fireSubentityLaserShot:, ShipEntity::fireTurretCannon:, Universe::firstShipHitByLaserFromShip:inDirection:offset:gettingRangeFound:, HeadUpDisplay::hudRotateViewpointForVirtualDepth, init, PlanetEntity(OOPrivate)::initAsAtmosphereForPlanet:dictionary:, PlanetEntity::initFromDictionary:withAtmosphere:andSeed:, OORingEffectEntity::initRingFromEntity:, DockEntity::isOffCentre, JSObjectGetQuaternion(), JSObjectGetQuaternion(), DockEntity::launchShip:, PlayerEntity::lookingAtSunWithThresholdAngleCos:, moveForward:, normalOrientation, PlayerEntity::normalOrientation, orientation, orientationChanged, OOVisualEffectEntity::orientationChanged, PlayerEntity::orientationChanged, ShipEntity::orientationChanged, DockEntity::portUpVectorForShipsBoundingBox:, ShipEntity::setDemoShip:, DockEntity::setDimensionsAndCorridor:ddc:launching:, setOrientation:, ShipEntity::setUpShipFromDictionary:, OOVisualEffectEntity::setUpVisualEffectFromDictionary:, DockEntity::shipIsInDockingCorridor:, PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:, ShipEntity::trackOntoTarget:withDForward:, ShipEntity::trackPrimaryTarget:retreat:, update:, PlanetEntity::update:, WaypointGetProperty(), WaypointGetProperty(), and ShipEntity::witchspaceLeavingEffects.
| - (HPVector) position |
Definition at line 576 of file Entity.m.
Referenced by DockEntity::abortAllDockings, DockEntity::abortDockingForShip:, absolutePositionForSubentityOffset:, ShipEntity::absoluteTractorPosition, Universe::addShipsToRoute:withRole:quantity:routeFraction:asGroup:, DockEntity(OOPrivate)::addShipToShipsOnApproach:, addToLinkedLists, applyVelocity:, ShipEntity::approachAspectToPrimaryTarget, ShipEntity::AuthorityPredicate, ShipEntity::avoidCollision, ShipEntity::ballTrackLeadingTarget:atTarget:, StationEntity::beaconPosition, ShipEntity::becomeExplosion, ShipEntity::behaviour_avoid_collision:, ShipEntity::behaviour_fly_thru_navpoints:, ShipEntity::behaviour_intercept_target:, ShipEntity::behaviour_land_on_planet:, ShipEntity::behaviour_track_as_turret:, ShipEntity::behaviour_tractored:, PlayerEntity::breakPatternPosition, ShipEntity::broadcastMessage:withUnpilotedOverride:, ShipEntity::calculateTargetPosition, ShipEntity::canScoop:, ShipEntity::canStillTrackPrimaryTarget, PlanetEntity::checkCloseCollisionWith:, ShipEntity::checkCloseCollisionWith:, CollisionRegion::checkEntity:, ShipEntity::checkForAegis, ShipEntity(PureAI)::checkForMotherStation, ShipEntity::checkScanner, ShipEntity::checkScannerIgnoringUnpowered, ShipEntity::checkShipsInVicinityForWitchJumpExit, DockEntity::clearDockingCorridor, ShipEntity::collideWithShip:, PlayerEntity::commanderDataDictionary, ShipEntity::ComparePlanetsBySurfaceDistance, Universe::coordinatesForPosition:withCoordinateSystem:returningScalar:, Universe::countEntitiesMatchingPredicate:parameter:inRange:ofEntity:, PlayerEntity::createDoppelganger, ShipEntity::currentAimTolerance, descriptionComponents, OOSunEntity::descriptionComponents, PlanetEntity::descriptionComponents, ShipEntity::descriptionComponents, WormholeEntity::disgorgeShips, ShipEntity::distance_six:, ShipEntity::distance_twelve:withOffset:, PlayerEntity::doBookkeeping:, PlayerEntity::docked, DockEntity::dockingCorridorIsEmpty, DockEntity::dockingInstructionsForShip:, StationEntity::dockingInstructionsForShip:, ShipEntity::doesHitLine:v1:, PlayerEntity::doesHitLine:v1:hitEntity:, ShipEntity::doesHitLine:v1:hitEntity:, OOSunEntity::drawDirectVisionSunGlare, OOParticleSystem::drawImmediate:translucent:, OOLightParticleEntity::drawSubEntityImmediate:translucent:, ShipEntity::drawSubEntityImmediate:translucent:, drawTransformationMatrix, PlayerEntity::drawTransformationMatrix, Universe::drawUniverse, dumpSelfState, StationEntity::dumpSelfState, ShipEntity(AI)::enterTargetWormhole, CollisionRegion::entityByEntityOcclusionToValue, Universe::EntityInRange, OOFlashEffectEntity::explosionFlashFromEntity:, Universe::filterSortedLists, ShipEntity::findBoundingBoxRelativeTo:i:j:k:, CollisionRegion::findCollisions, Universe::findEntitiesMatchingPredicate:parameter:inRange:ofEntity:, ShipEntity::findNearestPlanet, ShipEntity::fireDirectLaserShotAt:, ShipEntity::fireLaserShotInDirection:weaponIdentifier:, ShipEntity::fireMissileWithIdentifier:andTarget:, ShipEntity::fireSubentityLaserShot:, ShipEntity::fireTurretCannon:, Universe::firstShipHitByLaserFromShip:inDirection:offset:gettingRangeFound:, OOBigFragmentBurstEntity::fragmentBurstFromEntity:, OOSmallFragmentBurstEntity::fragmentBurstFromEntity:, Universe::getSafeVectorFromEntity:toDistance:fromPoint:, Universe::getStationMarkets, Universe::getSunSkimEndPositionForShip:, Universe::getSunSkimStartPositionForShip:, Universe::hazardOnRouteFromEntity:toDistance:fromPoint:, init, PlanetEntity(OOPrivate)::initAsAtmosphereForPlanet:dictionary:, OOExplosionCloudEntity(OOPrivate)::initExplosionCloudWithEntity:size:andSettings:, OOECMBlastEntity::initFromShip:, OOLaserShotEntity::initLaserFromShip:direction:offset:, OOQuiriumCascadeEntity::initQuiriumCascadeFromShip:, OORingEffectEntity::initRingFromEntity:, WormholeEntity::initWithDict:, OOWaypointEntity::initWithDictionary:, WormholeEntity::initWormholeTo:fromShip:, PlayerEntity::interpretAIMessage:, DockEntity::isOffCentre, Universe::isVectorClearFromEntity:toDistance:fromPoint:, JSObjectGetVector(), JSObjectGetVector(), ShipEntity::launchCascadeMine, PlayerEntity::launchEscapeCapsule, PlanetEntity::launchShuttle, PlayerEntity::leaveWitchspace, Universe::legacyPositionFrom:asCoordinateSystem:, PlayerEntity(LoadSave)::loadPlayerFromFile:asNew:, PlayerEntity::lookingAtSunWithThresholdAngleCos:, ShipEntity::lookingAtSunWithThresholdAngleCos:, moveForward:, Universe::nearestEntityMatchingPredicate:parameter:relativeToEntity:, ShipEntity::onTarget:withWeapon:, Universe::populateNormalSpace, position, DockEntity::pruneAndCountShipsOnApproach, ShipEntity::rangeToDestination, ShipEntity::rangeToSecondaryTarget:, ShipEntity::realAlertCondition, relativePosition, ShipEntity::releaseCargoPodsDebris, OOVisualEffectEntity::rescaleBy:, ShipEntity(Private)::rescaleBy:writeToCache:, OOExhaustPlumeEntity::resetPlume, ShipEntity(LoadRestore)::savedShipDictionaryWithContext:, ShipEntity::sendExpandedMessage:toShip:, ShipEntity::sendMessage:toShip:withUnpilotedOverride:, ShipEntity(PureAI)::setDestinationToDockingAbort, ShipEntity(PureAI)::setDestinationToTarget, ShipEntity(PureAI)::setDestinationWithinTarget, DockEntity::setDimensionsAndCorridor:ddc:launching:, Universe::setLighting, ShipEntity(PureAI)::setPlanetPatrolCoordinates, setPosition:, PlanetEntity::setPosition:, setPositionX:y:z:, ShipEntity::setProximityAlert:, ShipEntity(PureAI)::setRacepointsFromTarget, OOVisualEffectEntity::setScaleX:, OOVisualEffectEntity::setScaleY:, OOVisualEffectEntity::setScaleZ:, ShipEntity(PureAI)::setSunSkimExitCoordinates, ShipEntity::setTargetToNearestStationIncludingHostiles:, Universe(OOPrivate)::setUpInitialUniverse, CollisionRegion::shadowAtPointOcclusionToValue, DockEntity::shipIsInDockingCorridor:, Universe::spawnShip:, ShipEntity::startTrackingCurve, WormholeEntity::suckInShip:, ShipEntity::SurfaceDistanceSqared, ShipEntity::SurfaceDistanceSqaredV, PlayerEntity::takeEnergyDamage:from:becauseOf:weaponIdentifier:, PlayerEntity::takeScrapeDamage:from:, ShipEntity(PureAI)::thargonCheckMother, ShipEntity::throwSparks, ShipEntity::trackDestination:retreat:, ShipEntity::trackPrimaryTarget:retreat:, ShipEntity::trackSideTarget:leftside:, transformationMatrix, update:, OOExhaustPlumeEntity::update:, OOLaserShotEntity::update:, OOPlasmaShotEntity::update:, OOQuiriumCascadeEntity::update:, OOSunEntity::update:, ShipEntity::update:, SkyEntity::update:, WormholeEntity::update:, updateLinkedLists, ShipEntity::updateTrackingCurve, vectorTo:, and PlayerEntity::viewpointPosition.
|
protected |
Definition at line 134 of file Entity.h.
Referenced by absolutePositionForSubentityOffset:, drawRotationMatrix, ShipEntity::drawSubEntityImmediate:translucent:, drawTransformationMatrix, PlanetEntity::drawUnconditionally, init, orientationChanged, PlayerEntity::orientationChanged, rotationMatrix, ShipEntity::setUpShipFromDictionary:, OOVisualEffectEntity::setUpVisualEffectFromDictionary:, transformationMatrix, OOQuiriumCascadeEntity::update:, OOSunEntity::update:, WormholeEntity::update:, and PlayerEntity::viewpointPosition.
| - (OOScanClass) scanClass |
Definition at line 743 of file Entity.m.
Referenced by ShipEntity::checkScannerIgnoringUnpowered, descriptionComponents, WormholeEntity::drawImmediate:translucent:, HeadUpDisplay(Private)::drawScanner:, dumpSelfState, HasScanClassPredicate(), init, PlanetEntity::initFromDictionary:withAtmosphere:andSeed:, OOQuiriumCascadeEntity::initQuiriumCascadeFromShip:, OOSunEntity::initSunWithColor:andDictionary:, OOParticleSystem::initWithPosition:velocity:count:minSpeed:maxSpeed:duration:baseColor:, scanClass, PlayerEntity(Scripting)::sendAllShipsAway, setScanClass:, OOVisualEffectEntity::setUpVisualEffectFromDictionary:, WormholeEntity::update:, and PlayerEntity(OOPrivate)::updateAlertConditionForNearbyEntities.
| - (OOUniversalID) shadingEntityID |
Definition at line 122 of file Entity.h.
Referenced by CollisionRegion::findShadowedEntities.
|
protected |
Definition at line 980 of file Entity.m.
Referenced by OOPlasmaShotEntity::canCollide, init, spawnTime, and timeElapsedSinceSpawn.
| - (unsigned) throw_sparks |
Definition at line 97 of file Entity.h.
Referenced by dumpSelfState, OOSunEntity::goneNova, OOSunEntity::setGoingNova:inTime:, setThrowSparks:, ShipEntity::takeHeatDamage:, throwingSparks, OOSunEntity::update:, ShipEntity::update:, and OOSunEntity::willGoNova.
| - (OOUniversalID) universalID |
Definition at line 522 of file Entity.m.
Referenced by DockEntity::abortDockingForShip:, DockEntity(OOPrivate)::addShipToShipsOnApproach:, ShipEntity(PureAI)::ai_debugMessage:, ShipEntity::behaviour_fly_to_target_six:, PlanetEntity::checkCloseCollisionWith:, ShipEntity::checkCloseCollisionWith:, ShipEntity::checkShipsInVicinityForWitchJumpExit, ShipEntity::collideWithShip:, OOSunEntity::descriptionComponents, PlanetEntity::descriptionComponents, DockEntity::dockingInstructionsForShip:, Universe(OOPrivate)::doRemoveEntity:, HeadUpDisplay(Private)::drawScanner:, dumpSelfState, CollisionRegion::findShadowedEntities, AI(OOPrivate)::refreshOwnerDesc, ShipEntity::setCommsMessageColor, PlayerEntity::setDockTarget:, ShipEntity(PureAI)::setTargetToPrimaryAggressor, setUniversalID:, DockEntity::shipIsInDockingQueue:, universalID, and ShipEntity::wasAddedToUniverse.
|
protected |
Definition at line 708 of file Entity.m.
Referenced by applyVelocity:, ShipEntity::ballTrackLeadingTarget:atTarget:, ShipEntity::collideWithShip:, OOFlashEffectEntity::explosionFlashFromEntity:, OOBigFragmentBurstEntity::fragmentBurstFromEntity:, OOSmallFragmentBurstEntity::fragmentBurstFromEntity:, OOBigFragmentBurstEntity::if, OOSmallFragmentBurstEntity::if, OOExplosionCloudEntity(OOPrivate)::initExplosionCloudWithEntity:size:andSettings:, OOLaserShotEntity::initLaserFromShip:direction:offset:, OORingEffectEntity::initRingFromEntity:, OOParticleSystem::initWithPosition:velocity:count:minSpeed:maxSpeed:duration:baseColor:, ShipEntity::missileTrackPrimaryTarget:, setVelocity:, speed, velocity, and DustEntity::warpVector.
| - (Entity *) x_next |
Definition at line 116 of file Entity.h.
Referenced by addToLinkedLists, Entity(OOPrivate)::checkLinkedLists, Universe::filterSortedLists, Universe::MaintainLinkedLists, removeFromLinkedLists, and updateLinkedLists.
| - (Entity*) x_previous |
Definition at line 116 of file Entity.h.
Referenced by addToLinkedLists, Entity(OOPrivate)::checkLinkedLists, Universe::filterSortedLists, Universe::MaintainLinkedLists, removeFromLinkedLists, and updateLinkedLists.
| - (Entity *) y_next |
Definition at line 117 of file Entity.h.
Referenced by addToLinkedLists, Entity(OOPrivate)::checkLinkedLists, Universe::filterSortedLists, Universe::MaintainLinkedLists, removeFromLinkedLists, and updateLinkedLists.
| - (Entity*) y_previous |
Definition at line 117 of file Entity.h.
Referenced by addToLinkedLists, Entity(OOPrivate)::checkLinkedLists, Universe::filterSortedLists, Universe::MaintainLinkedLists, removeFromLinkedLists, and updateLinkedLists.
| - (Entity *) z_next |
Definition at line 118 of file Entity.h.
Referenced by addToLinkedLists, Entity(OOPrivate)::checkLinkedLists, ShipEntity::checkScanner, ShipEntity::checkScannerIgnoringUnpowered, Universe::filterSortedLists, Universe::MaintainLinkedLists, removeFromLinkedLists, and updateLinkedLists.
| - (Entity*) z_previous |
Definition at line 118 of file Entity.h.
Referenced by addToLinkedLists, Entity(OOPrivate)::checkLinkedLists, ShipEntity::checkScanner, ShipEntity::checkScannerIgnoringUnpowered, Universe::filterSortedLists, Universe::MaintainLinkedLists, removeFromLinkedLists, and updateLinkedLists.
| - (GLfloat) zero_distance |
Definition at line 104 of file Entity.h.
Referenced by PlayerEntity(OOPrivate)::checkEntityForMassLock:withScanClass:, compareZeroDistance:, PlayerEntity::dialAltitude, PlayerEntity::doBookkeeping:, HeadUpDisplay(Private)::drawScanner:, HeadUpDisplay::hudDrawReticleOnTarget, ShipEntity::initWithKey:definition:, WormholeEntity::initWormholeTo:fromShip:, PlayerEntity::isValidTarget:, PlayerEntity::moveTargetMemoryBy:, DustEntity::update:, update:, SkyEntity::update:, Universe::update:, PlayerEntity(OOPrivate)::updateAlertConditionForNearbyEntities, and zeroDistance.
| - (int) zero_index |
Definition at line 113 of file Entity.h.
Referenced by Universe(OOPrivate)::doRemoveEntity:, and Universe::update:.