|
Oolite
|
#include <Entity.h>
Inheritance diagram for Entity:
Collaboration diagram for Entity: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 55 of file Entity.m.
Referenced by ShipEntity::absoluteIJKForSubentity.
Here is the caller graph for this function:| - (HPVector) absolutePositionForSubentityOffset: | (HPVector) | offset |
Definition at line 55 of file Entity.m.
Referenced by OOLaserShotEntity::dealloc.
Here is the caller graph for this function:| - (void) addToLinkedLists |
Definition at line 55 of file Entity.m.
Referenced by Universe::addEntity:.
Here is the caller graph for this function:| - (NSSet *) allTextures |
Reimplemented in OOEntityWithDrawable, OOLightParticleEntity, and OOParticleSystem.
| - (void) applyRoll: | (GLfloat) | roll | |
| andClimb: | (GLfloat) | climb | |
Reimplemented in PlayerEntity, and ShipEntity.
Definition at line 55 of file Entity.m.
| - (void) applyRoll: | (GLfloat) | roll | |
| climb: | (GLfloat) | climb | |
| andYaw: | (GLfloat) | yaw | |
Reimplemented in ShipEntity.
Definition at line 55 of file Entity.m.
| - (void) applyVelocity: | (OOTimeDelta) | delta_t |
| - (BoundingBox) boundingBox |
| - (GLfloat) cameraRangeBack |
| - (GLfloat) cameraRangeFront |
Reimplemented in SkyEntity.
| - (Vector) cameraRelativePosition |
| - (BOOL) canCollide |
Reimplemented in DustEntity, OOBreakPatternEntity, OOLaserShotEntity, OOLightParticleEntity, OOParticleSystem, OOPlasmaShotEntity, OOQuiriumCascadeEntity, OORingEffectEntity, OOSunEntity, OOVisualEffectEntity, PlayerEntity, ShipEntity, SkyEntity, and WormholeEntity.
Definition at line 55 of file Entity.m.
| - (BOOL) checkCloseCollisionWith: | (Entity *) | other |
Reimplemented in OOParticleSystem, OOPlanetEntity, OOPlasmaShotEntity, OOQuiriumCascadeEntity, OOSunEntity, ShipEntity, and WormholeEntity.
|
implementation |
Provided by category Entity(OOPrivate).
Definition at line 55 of file Entity.m.
|
implementation |
Provided by category Entity(ShaderBindings).
Definition at line 1 of file EntityShaderBindings.m.
| - (GLfloat) collisionRadius |
Reimplemented in OOVisualEffectEntity.
Definition at line 55 of file Entity.m.
Referenced by HeadUpDisplay::hudDrawReticleOnTarget.
Here is the caller graph for this function:| - (CollisionRegion *) collisionRegion |
| - (NSComparisonResult) compareZeroDistance: | (Entity *) | otherEntity |
Reimplemented in PlayerEntity.
Definition at line 55 of file Entity.m.
|
implementation |
Reimplemented from OOWeakRefObject.
Reimplemented in DockEntity, DustEntity, OOEntityWithDrawable, OOExplosionCloudEntity, OOFlasherEntity, OOLaserShotEntity, OOPlanetEntity, OOSunEntity, OOVisualEffectEntity, OOWaypointEntity, PlayerEntity, ShipEntity, SkyEntity, StationEntity, and WormholeEntity.
Definition at line 55 of file Entity.m.
Referenced by OOEntityWithDrawable::allTextures.
Here is the caller graph for this function:| - (void) deleteJSSelf |
Provided by category Entity(OOJavaScriptExtensions).
Definition at line 1 of file EntityOOJavaScriptExtensions.m.
|
implementation |
Reimplemented in OOLaserShotEntity, OOParticleSystem, OOPlanetEntity, OOQuiriumCascadeEntity, OORingEffectEntity, OOSunEntity, ShipEntity, StationEntity, and WormholeEntity.
Definition at line 55 of file Entity.m.
| - (NSString *) descriptionForObjDump |
Reimplemented in DustEntity, ShipEntity, and SkyEntity.
Definition at line 55 of file Entity.m.
| - (NSString *) descriptionForObjDumpBasic |
| - (GLfloat) distanceTravelled |
| - (void) drawImmediate: | (bool) | immediate | |
| translucent: | (bool) | translucent | |
Reimplemented in DockEntity, DustEntity, OOBreakPatternEntity, OOECMBlastEntity, OOEntityWithDrawable, OOFlasherEntity, OOLaserShotEntity, OOLightParticleEntity, OOParticleSystem, OOPlanetEntity, OOQuiriumCascadeEntity, OORingEffectEntity, OOSunEntity, OOVisualEffectEntity, OOWaypointEntity, PlayerEntity, ShipEntity, SkyEntity, and WormholeEntity.
Definition at line 55 of file Entity.m.
| - (OOMatrix) drawRotationMatrix |
Reimplemented in PlayerEntity.
Definition at line 55 of file Entity.m.
Referenced by OOLaserShotEntity::dealloc.
Here is the caller graph for this function:
|
implementation |
Reimplemented in OOExhaustPlumeEntity, OOFlasherEntity, OOVisualEffectEntity, ShipEntity, and OOLightParticleEntity.
Provided by category Entity(SubEntityRelationship).
Definition at line 14062 of file ShipEntity.m.
| - (OOMatrix) drawTransformationMatrix |
Reimplemented in PlayerEntity.
| - (void) dumpSelfState |
Reimplemented in PlayerEntity, ShipEntity, StationEntity, and WormholeEntity.
Definition at line 55 of file Entity.m.
| - (void) dumpState |
Definition at line 55 of file Entity.m.
| - (GLfloat) energy |
| - (double) findCollisionRadius |
Reimplemented in OOEntityWithDrawable, OOExhaustPlumeEntity, and OOFlasherEntity.
| - (OOColor *) fogUniform |
| - (GLfloat) frustumRadius |
Reimplemented in OOVisualEffectEntity, and ShipEntity.
| - (void) getJSClass: | (JSClass **) | outClass | |
| andPrototype: | (JSObject **) | outPrototype | |
Reimplemented in ShipEntity, DockEntity, OOPlanetEntity, StationEntity, OOSunEntity, OOExhaustPlumeEntity, OOFlasherEntity, OOVisualEffectEntity, OOWaypointEntity, and WormholeEntity.
Provided by category Entity(OOJavaScriptExtensions).
Definition at line 1 of file EntityOOJavaScriptExtensions.m.
|
implementation |
Reimplemented in DustEntity, OOParticleSystem, OOSunEntity, OOVisualEffectEntity, PlayerEntity, ShipEntity, and WormholeEntity.
Definition at line 55 of file Entity.m.
Referenced by OOLaserShotEntity::dealloc, and OOPlanetEntity::initFromDictionary:withAtmosphere:andSeed:forSystem:.
Here is the caller graph for this function:
|
implementation |
Provided by category Entity(OODebugInspector).
Referenced by ConsoleInspectEntity().
Here is the caller graph for this function:| - (BOOL) isBreakPattern |
Reimplemented in OOBreakPatternEntity, and OOVisualEffectEntity.
Provided by category Entity(OOBreakPatternEntity).
Definition at line 1 of file OOBreakPatternEntity.m.
| - (BOOL) isCascadeWeapon |
Reimplemented in OOQuiriumCascadeEntity.
Provided by category Entity(OOQuiriumCascadeExtensions).
Definition at line 1 of file OOQuiriumCascadeEntity.m.
| - (BOOL) isDock |
| - (BOOL) isECMBlast |
Reimplemented in OOECMBlastEntity.
Provided by category Entity(OOECMBlastEntity).
Definition at line 1 of file OOECMBlastEntity.m.
| - (BOOL) isEffect |
Reimplemented in OOLaserShotEntity, OOLightParticleEntity, OOParticleSystem, OOQuiriumCascadeEntity, OORingEffectEntity, OOVisualEffectEntity, and OOWaypointEntity.
Definition at line 55 of file Entity.m.
| - (BOOL) isExhaust |
Reimplemented in OOExhaustPlumeEntity.
Provided by category Entity(OOExhaustPlume).
Definition at line 380 of file OOExhaustPlumeEntity.m.
| - (BOOL) isFlasher |
Reimplemented in OOFlasherEntity.
Provided by category Entity(OOFlasherEntityExtensions).
Definition at line 1 of file OOFlasherEntity.m.
| - (BOOL) isImmuneToBreakPatternHide |
| - (BOOL) isInSpace |
Definition at line 55 of file Entity.m.
| - (BOOL) isPlanet |
| - (BOOL) isPlayer |
| - (BOOL) isPlayerLikeShip |
Reimplemented in PlayerEntity, and ProxyPlayerEntity.
Provided by category Entity(ProxyPlayer).
Definition at line 1 of file ProxyPlayerEntity.m.
| - (BOOL) isShip |
| - (BOOL) isShipWithSubEntityShip: | (Entity *) | other |
Reimplemented in OOVisualEffectEntity, and ShipEntity.
Provided by category Entity(SubEntityRelationship).
Definition at line 14062 of file ShipEntity.m.
| - (BOOL) isSky |
| - (BOOL) isStation |
| - (BOOL) isStellarObject |
| - (BOOL) isSubEntity |
| - (BOOL) isSun |
Reimplemented in OOSunEntity.
Definition at line 55 of file Entity.m.
Referenced by IsSunPredicate().
Here is the caller graph for this function:| - (BOOL) isSunlit |
| - (BOOL) isVisible |
Reimplemented in OOPlanetEntity, OOSunEntity, ShipEntity, and SkyEntity.
Definition at line 55 of file Entity.m.
| - (BOOL) isVisibleToScripts |
Reimplemented in ShipEntity, OOExhaustPlumeEntity, OOFlasherEntity, OOPlanetEntity, OOSunEntity, OOVisualEffectEntity, OOWaypointEntity, and WormholeEntity.
Provided by category Entity(OOJavaScriptExtensions).
Definition at line 1 of file EntityOOJavaScriptExtensions.m.
Referenced by JSEntityIsJavaScriptVisiblePredicate().
Here is the caller graph for this function:| - (BOOL) isVisualEffect |
Reimplemented in OOVisualEffectEntity.
| - (BOOL) isWaypoint |
| - (BOOL) isWormhole |
| - (NSUInteger) lastDrawCounter |
| - (GLfloat) mass |
| - (GLfloat) maxEnergy |
| - (void) moveForward: | (double) | amount |
Reimplemented in PlayerEntity.
Definition at line 55 of file Entity.m.
| - (Quaternion) normalOrientation |
Reimplemented in PlayerEntity.
Definition at line 55 of file Entity.m.
Referenced by OOLaserShotEntity::dealloc.
Here is the caller graph for this function:| - (NSString *) oo_jsClassName |
Reimplemented in ShipEntity, DockEntity, OOExhaustPlumeEntity, OOFlasherEntity, OOPlanetEntity, PlayerEntity, StationEntity, OOSunEntity, OOVisualEffectEntity, OOWaypointEntity, and WormholeEntity.
Provided by category Entity(OOJavaScriptExtensions).
Definition at line 1 of file EntityOOJavaScriptExtensions.m.
|
implementation |
Provided by category Entity(OOJavaScriptExtensions).
Definition at line 1 of file EntityOOJavaScriptExtensions.m.
Referenced by JSFunctionPredicate(), and MissionRunScreen().
Here is the caller graph for this function:| - (Quaternion) orientation |
| - (void) orientationChanged |
Reimplemented in OOVisualEffectEntity, PlayerEntity, and ShipEntity.
Definition at line 55 of file Entity.m.
| - (id) owner |
Definition at line 55 of file Entity.m.
Referenced by EntityGetProperty(), OOExhaustPlumeEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, OOFlasherEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, and VisualEffectRemove().
Here is the caller graph for this function:| - (ShipEntity *) parentEntity |
| - (HPVector) position |
|
implementation |
Provided by category Entity(ShaderBindings).
Definition at line 1 of file EntityShaderBindings.m.
|
implementation |
Provided by category Entity(ShaderBindings).
Definition at line 1 of file EntityShaderBindings.m.
|
implementation |
| - (void) removeFromLinkedLists |
Definition at line 55 of file Entity.m.
| - (ShipEntity *) rootShipEntity |
Definition at line 55 of file Entity.m.
Referenced by OOLaserShotEntity::dealloc.
Here is the caller graph for this function:| - (OOScanClass) scanClass |
Reimplemented in ShipEntity.
| - (NSUInteger) sessionID |
Reimplemented in PlayerEntity.
| - (void) setAtmosphereFogging: | (OOColor *) | fogging |
Definition at line 55 of file Entity.m.
| - (void) setCollisionRadius: | (GLfloat) | amount |
| - (void) setCollisionRegion: | (CollisionRegion*) | region |
Definition at line 55 of file Entity.m.
| - (void) setDistanceTravelled: | (GLfloat) | value |
| - (void) setEnergy: | (GLfloat) | amount |
Definition at line 55 of file Entity.m.
Referenced by EntitySetProperty().
Here is the caller graph for this function:| - (void) setLastDrawCounter: | (NSUInteger) | drawCounter |
| - (void) setMaxEnergy: | (GLfloat) | amount |
Definition at line 55 of file Entity.m.
Referenced by EntitySetProperty().
Here is the caller graph for this function:| - (void) setNormalOrientation: | (Quaternion) | quat |
Reimplemented in PlayerEntity.
Definition at line 55 of file Entity.m.
Referenced by EntitySetProperty(), and OOWaypointEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:.
Here is the caller graph for this function:| - (void) setOrientation: | (Quaternion) | quat |
Reimplemented in OOWaypointEntity, and OOPlanetEntity.
Definition at line 55 of file Entity.m.
Referenced by OOLaserShotEntity::dealloc.
Here is the caller graph for this function:| - (void) setOwner: | (Entity *) | ent |
Reimplemented in ShipEntity.
Definition at line 55 of file Entity.m.
Referenced by OOLaserShotEntity::dealloc.
Here is the caller graph for this function:| - (void) setPosition: | (HPVector) | posn |
Reimplemented in OOSunEntity.
Definition at line 55 of file Entity.m.
Referenced by OOLaserShotEntity::dealloc, and EntitySetProperty().
Here is the caller graph for this function:| - (void) setPositionX: | (OOHPScalar) | x | |
| y: | (OOHPScalar) | y | |
| z: | (OOHPScalar) | z | |
| - (void) setScanClass: | (OOScanClass) | sClass |
Definition at line 55 of file Entity.m.
Referenced by EntitySetProperty().
Here is the caller graph for this function:| - (void) setStatus: | (OOEntityStatus) | stat |
Reimplemented in ShipEntity.
Definition at line 55 of file Entity.m.
Referenced by WormholeEntity::arrivalTime, OOLaserShotEntity::dealloc, and OOPlanetEntity::initFromDictionary:withAtmosphere:andSeed:forSystem:.
Here is the caller graph for this function:| - (void) setThrowSparks: | (BOOL) | value |
| - (void) setUniversalID: | (OOUniversalID) | uid |
| - (void) setVelocity: | (Vector) | vel |
| - (GLfloat) spawnTime |
| - (double) speed |
| - (OOEntityStatus) status |
Definition at line 55 of file Entity.m.
Referenced by EntityGetProperty(), and PlayerShipBeginGalacticHyperspaceCountdown().
Here is the caller graph for this function:
|
implementation |
Reimplemented in ShipEntity.
Definition at line 55 of file Entity.m.
|
implementation |
|
implementation |
Provided by category Entity(ShaderBindings).
Definition at line 1 of file EntityShaderBindings.m.
|
implementation |
Provided by category Entity(ShaderBindings).
Definition at line 1 of file EntityShaderBindings.m.
|
implementation |
Provided by category Entity(ShaderBindings).
Definition at line 1 of file EntityShaderBindings.m.
|
implementation |
Provided by category Entity(ShaderBindings).
Definition at line 1 of file EntityShaderBindings.m.
|
implementation |
Provided by category Entity(ShaderBindings).
Definition at line 1 of file EntityShaderBindings.m.
| - (void) takeEnergyDamage: | (double) | amount | |
| from: | (Entity *) | ent | |
| becauseOf: | (Entity *) | other | |
| weaponIdentifier: | (NSString *) | weaponIdentifier | |
Reimplemented in DockEntity, PlayerEntity, ShipEntity, and StationEntity.
| - (BOOL) throwingSparks |
| - (void) throwSparks |
Reimplemented in ShipEntity.
Definition at line 55 of file Entity.m.
| - (GLfloat) timeElapsedSinceSpawn |
| - (OOMatrix) transformationMatrix |
| - (OOUniversalID) universalID |
| - (GLfloat) universalTime |
| - (void) update: | (OOTimeDelta) | delta_t |
Reimplemented in OOBigFragmentBurstEntity, OOPlasmaBurstEntity, OOPlasmaShotEntity, DockEntity, DustEntity, OOBreakPatternEntity, OOECMBlastEntity, OOExhaustPlumeEntity, OOExplosionCloudEntity, OOFlashEffectEntity, OOFlasherEntity, OOLaserShotEntity, OOParticleSystem, OOSmallFragmentBurstEntity, OOPlanetEntity, OOQuiriumCascadeEntity, OORingEffectEntity, OOSparkEntity, OOSunEntity, OOVisualEffectEntity, PlayerEntity, ShipEntity, SkyEntity, StationEntity, and WormholeEntity.
Definition at line 55 of file Entity.m.
| - (void) updateCameraRelativePosition |
Reimplemented in DustEntity, and OOSunEntity.
Definition at line 55 of file Entity.m.
| - (void) updateLinkedLists |
Definition at line 55 of file Entity.m.
| - (BOOL) validForAddToUniverse |
Reimplemented in PlayerEntity, and ShipEntity.
Definition at line 55 of file Entity.m.
| - (Vector) vectorTo: | (Entity *) | entity |
| - (Vector) velocity |
Reimplemented in ShipEntity.
| - (void) warnAboutHostiles |
Reimplemented in PlayerEntity.
Definition at line 55 of file Entity.m.
| - (void) wasAddedToUniverse |
| - (void) wasRemovedFromUniverse |
| - (double) zeroDistance |
|
private |
|
private |
|
protected |
Definition at line 145 of file Entity.h.
Referenced by OOLaserShotEntity::dealloc, and ShipGetProperty().
| - (GLfloat) collision_radius |
Definition at line 111 of file Entity.h.
Referenced by Universe::addCommsMessage:forCount:, CollisionRegion::entityByEntityOcclusionToValue, HeadUpDisplay::hudDrawReticleOnTarget, and CollisionRegion::shadowAtPointOcclusionToValue.
| - (CollisionRegion *) collisionRegion |
| - (unsigned) isExplicitlyNotMainStation |
Definition at line 103 of file Entity.h.
Referenced by Universe::IsCandidateMainStationPredicate.
| - (BOOL) isShip |
Definition at line 91 of file Entity.h.
Referenced by OOLaserShotEntity::dealloc, and IsShipPredicate().
| - (BOOL) isStation |
Definition at line 92 of file Entity.h.
Referenced by Universe::breakPatternHide, Universe::IsCandidateMainStationPredicate, and IsStationPredicate().
| - (BOOL) isSubEntity |
Definition at line 95 of file Entity.h.
Referenced by IsShipPredicate(), and IsVisualEffectPredicate().
| - (BOOL) isVisualEffect |
Definition at line 104 of file Entity.h.
Referenced by IsVisualEffectPredicate().
|
protected |
Definition at line 143 of file Entity.h.
Referenced by OOShipLibraryShields().
| - (Quaternion) orientation |
Definition at line 114 of file Entity.h.
Referenced by HeadUpDisplay::hudRotateViewpointForVirtualDepth, JSObjectGetQuaternion(), and WaypointGetProperty().
| - (HPVector) position |
Definition at line 112 of file Entity.h.
Referenced by Universe::addCommsMessage:forCount:, OOLaserShotEntity::dealloc, CollisionRegion::entityByEntityOcclusionToValue, JSObjectGetVector(), and CollisionRegion::shadowAtPointOcclusionToValue.
| - (OOScanClass) scanClass |
Definition at line 106 of file Entity.h.
Referenced by HasScanClassPredicate().
| - (OOUniversalID) shadingEntityID |
| - (OOUniversalID) universalID |
|
protected |
Definition at line 140 of file Entity.h.
Referenced by OOLaserShotEntity::dealloc.
| - (Entity *) x_next |
Definition at line 120 of file Entity.h.
Referenced by Universe::addEntity:.
| - (Entity*) x_previous |
Definition at line 120 of file Entity.h.
Referenced by Universe::addEntity:.
| - (Entity *) y_next |
Definition at line 121 of file Entity.h.
Referenced by Universe::addEntity:.
| - (Entity*) y_previous |
Definition at line 121 of file Entity.h.
Referenced by Universe::addEntity:.
| - (Entity *) z_next |
Definition at line 122 of file Entity.h.
Referenced by Universe::addEntity:.
| - (Entity*) z_previous |
Definition at line 122 of file Entity.h.
Referenced by Universe::addEntity:.
| - (GLfloat) zero_distance |
Definition at line 108 of file Entity.h.
Referenced by HeadUpDisplay::hudDrawReticleOnTarget.