Oolite 1.91.0.7645-241119-222d325
|
#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 |
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.
- (HPVector) absolutePositionForSubentityOffset: | (HPVector) | offset |
Definition at line 55 of file Entity.m.
Referenced by OOLaserShotEntity::dealloc.
- (void) addToLinkedLists |
Definition at line 55 of file Entity.m.
Referenced by Universe::addEntity:.
- (NSSet *) allTextures |
Reimplemented in OOEntityWithDrawable, OOLightParticleEntity, OOParticleSystem, and PlanetEntity.
- (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, PlanetEntity, PlayerEntity, ShipEntity, SkyEntity, and WormholeEntity.
Definition at line 55 of file Entity.m.
- (BOOL) checkCloseCollisionWith: | (Entity *) | other |
Reimplemented in OOParticleSystem, OOPlasmaShotEntity, OOQuiriumCascadeEntity, OOSunEntity, PlanetEntity, 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.
- (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, OOSunEntity, OOVisualEffectEntity, OOWaypointEntity, PlanetEntity, PlayerEntity, ShipEntity, SkyEntity, StationEntity, and WormholeEntity.
Definition at line 55 of file Entity.m.
Referenced by OOEntityWithDrawable::allTextures.
|
implementation |
Reimplemented in ShipEntity.
Provided by category Entity(OOEntityDebugInspectorModule).
Definition at line 1 of file OOEntityDebugInspectorModule.m.
- (void) deleteJSSelf |
Provided by category Entity(OOJavaScriptExtensions).
Definition at line 1 of file EntityOOJavaScriptExtensions.m.
|
implementation |
Reimplemented in OOLaserShotEntity, OOParticleSystem, OOQuiriumCascadeEntity, OORingEffectEntity, OOSunEntity, PlanetEntity, 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, OOQuiriumCascadeEntity, OORingEffectEntity, OOSunEntity, OOVisualEffectEntity, OOWaypointEntity, PlanetEntity, 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.
|
implementation |
Reimplemented in OOExhaustPlumeEntity, OOFlasherEntity, OOLightParticleEntity, OOVisualEffectEntity, and ShipEntity.
Provided by category Entity(SubEntityRelationship).
Definition at line 14073 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 DockEntity, OOExhaustPlumeEntity, OOFlasherEntity, OOSunEntity, OOVisualEffectEntity, OOWaypointEntity, ShipEntity, StationEntity, and WormholeEntity.
Provided by category Entity(OOJavaScriptExtensions).
Definition at line 1 of file EntityOOJavaScriptExtensions.m.
|
implementation |
Reimplemented in DustEntity, OOParticleSystem, OOSunEntity, OOVisualEffectEntity, PlanetEntity, PlayerEntity, ShipEntity, and WormholeEntity.
Definition at line 55 of file Entity.m.
Referenced by OOLaserShotEntity::dealloc.
|
implementation |
Provided by category Entity(OOEntityInspectorExtensions).
Definition at line 1 of file OOEntityInspectorExtensions.m.
|
implementation |
Reimplemented in PlayerEntity, and ShipEntity.
Provided by category Entity(OOEntityInspectorExtensions).
Definition at line 1 of file OOEntityInspectorExtensions.m.
|
implementation |
Provided by category Entity(OODebugInspector).
Referenced by ConsoleInspectEntity().
- (NSString *) inspEnergyLine |
Provided by category Entity(OOEntityInspectorExtensions).
Definition at line 1 of file OOEntityInspectorExtensions.m.
- (NSString *) inspOrientationLine |
Provided by category Entity(OOEntityInspectorExtensions).
Definition at line 1 of file OOEntityInspectorExtensions.m.
- (NSString *) inspOwnerLine |
Provided by category Entity(OOEntityInspectorExtensions).
Definition at line 1 of file OOEntityInspectorExtensions.m.
- (NSString *) inspPositionLine |
Provided by category Entity(OOEntityInspectorExtensions).
Definition at line 1 of file OOEntityInspectorExtensions.m.
- (NSString *) inspRetainCountLine |
Provided by category Entity(OOEntityInspectorExtensions).
Definition at line 1 of file OOEntityInspectorExtensions.m.
- (NSString *) inspScanClassLine |
Provided by category Entity(OOEntityInspectorExtensions).
Definition at line 1 of file OOEntityInspectorExtensions.m.
- (NSString *) inspStatusLine |
Provided by category Entity(OOEntityInspectorExtensions).
Definition at line 1 of file OOEntityInspectorExtensions.m.
- (NSString *) inspTargetLine |
Reimplemented in ShipEntity.
Provided by category Entity(OOEntityInspectorExtensions).
Definition at line 1 of file OOEntityInspectorExtensions.m.
- (NSString *) inspVelocityLine |
Provided by category Entity(OOEntityInspectorExtensions).
Definition at line 1 of file OOEntityInspectorExtensions.m.
- (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 14073 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().
- (BOOL) isSunlit |
- (BOOL) isVisible |
Reimplemented in OOSunEntity, PlanetEntity, ShipEntity, and SkyEntity.
Definition at line 55 of file Entity.m.
- (BOOL) isVisibleToScripts |
Reimplemented in OOExhaustPlumeEntity, OOFlasherEntity, OOSunEntity, OOVisualEffectEntity, OOWaypointEntity, ShipEntity, and WormholeEntity.
Provided by category Entity(OOJavaScriptExtensions).
Definition at line 1 of file EntityOOJavaScriptExtensions.m.
Referenced by JSEntityIsJavaScriptVisiblePredicate().
- (BOOL) isVisualEffect |
Reimplemented in OOVisualEffectEntity.
- (BOOL) isWaypoint |
- (BOOL) isWormhole |
- (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.
- (NSString *) oo_jsClassName |
Reimplemented in DockEntity, OOExhaustPlumeEntity, OOFlasherEntity, OOSunEntity, OOVisualEffectEntity, OOWaypointEntity, PlayerEntity, ShipEntity, StationEntity, 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().
- (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().
- (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.
- (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().
- (void) setMaxEnergy: | (GLfloat) | amount |
Definition at line 55 of file Entity.m.
Referenced by EntitySetProperty().
- (void) setNormalOrientation: | (Quaternion) | quat |
Reimplemented in PlayerEntity.
Definition at line 55 of file Entity.m.
Referenced by EntitySetProperty(), and OOWaypointEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:.
- (void) setOrientation: | (Quaternion) | quat |
Reimplemented in OOWaypointEntity, and PlanetEntity.
Definition at line 55 of file Entity.m.
Referenced by OOLaserShotEntity::dealloc.
- (void) setOwner: | (Entity *) | ent |
Reimplemented in ShipEntity.
Definition at line 55 of file Entity.m.
Referenced by OOLaserShotEntity::dealloc.
- (void) setPosition: | (HPVector) | posn |
Reimplemented in OOSunEntity, and PlanetEntity.
Definition at line 55 of file Entity.m.
Referenced by OOLaserShotEntity::dealloc, and EntitySetProperty().
- (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().
- (void) setStatus: | (OOEntityStatus) | stat |
Reimplemented in ShipEntity.
Definition at line 55 of file Entity.m.
Referenced by WormholeEntity::arrivalTime, and OOLaserShotEntity::dealloc.
- (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().
|
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 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 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.