![]() |
Oolite 1.91.0.7668-250429-8542c40
|
#include <WormholeEntity.h>
Class Methods | |
(static void) | + DrawWormholeCorona [implementation] |
Private Attributes | |
double | expiry_time |
double | travel_time |
double | arrival_time |
double | estimated_arrival_time |
double | scan_time |
OOSystemID | origin |
OOSystemID | destination |
NSPoint | originCoords |
NSPoint | destinationCoords |
NSMutableArray * | shipsInTransit |
double | witch_mass |
double | shrink_factor |
double | exit_speed |
WORMHOLE_SCANINFO | scan_info |
BOOL | hasExitPosition |
BOOL | _misjump |
GLfloat | _misjumpRange |
BOOL | containsPlayer |
Definition at line 47 of file WormholeEntity.h.
- (double) arrivalTime |
Definition at line 546 of file WormholeEntity.m.
References arrival_time, and arrivalTime.
Referenced by arrivalTime, destination, and PlayerEntity::leaveWitchspace.
|
implementation |
Reimplemented from Entity.
Definition at line 641 of file WormholeEntity.m.
References canCollide, origin, originCoords, PLAYER, UNIVERSE, witch_mass, and x.
Referenced by canCollide.
|
implementation |
Reimplemented from Entity.
Definition at line 659 of file WormholeEntity.m.
References Entity::isEffect.
|
implementation |
Reimplemented from Entity.
Definition at line 596 of file WormholeEntity.m.
References Entity::dealloc, and dealloc.
Referenced by dealloc.
|
implementation |
Reimplemented from Entity.
Definition at line 604 of file WormholeEntity.m.
References descriptionComponents.
Referenced by descriptionComponents.
- (OOSystemID) destination |
References arrivalTime, destination, destinationCoordinates, estimatedArrivalTime, exitSpeed, expiryTime, isScanned, misjumpRange, originCoordinates, scanInfo, scanTime, setMisjump, travelTime, and withMisjump.
- (NSPoint) destinationCoordinates |
Definition at line 524 of file WormholeEntity.m.
References destinationCoordinates, and destinationCoords.
Referenced by Universe::carryPlayerOn:inWormhole:, destination, and destinationCoordinates.
- (void) disgorgeShips |
Definition at line 347 of file WormholeEntity.m.
References _misjump, arrival_time, ShipEntity::bounty, containsPlayer, disgorgeShips, ShipEntity::doScriptEvent:, ShipEntity::doScriptEvent:andReactToAIMessage:, exitSpeed, hasExitPosition, kBasisZVector, ShipEntity::maxFlightSpeed, nil, PLAYER, Entity::position, quaternion_set_random(), randf(), ranrot_rand, SCANNER_MAX_RANGE, ShipEntity::setBeaconCode:, ShipEntity::setBounty:withReason:, setExitSpeed:, Entity::setOrientation:, ShipEntity::setPitch:, Entity::setPosition:, ShipEntity::setRoll:, ShipEntity::setSpeed:, Entity::setVelocity:, shipsInTransit, Entity::status, UNIVERSE, ShipEntity::update:, vector_forward_from_quaternion(), vector_right_from_quaternion(), vector_up_from_quaternion(), and ShipEntity::witchspaceLeavingEffects.
Referenced by Universe::carryPlayerOn:inWormhole:, disgorgeShips, Universe(OOPrivate)::populateSpaceFromActiveWormholes, and PlayerEntity(OOPrivate)::updateWormholes.
|
implementation |
Reimplemented from Entity.
Definition at line 696 of file WormholeEntity.m.
References Entity::cam_zero_distance, Entity::collision_radius, DrawWormholeCorona(), GLDrawBallBillboard(), Entity::no_draw_distance, OO_WORMHOLE_COLOR_FVEC4, OOCheckOpenGLErrors(), OOGL, OOGLBEGIN, OOGLEND, OOSetOpenGLState, OOVerifyOpenGLState, OPENGL_STATE_TRANSLUCENT_PASS, Entity::scanClass, UNIVERSE, and witch_mass.
|
implementation |
Definition at line 741 of file WormholeEntity.m.
References M_PI, OO_WORMHOLE_COLOR_BOOST, OOGLBEGIN, OOGLEND, and randf().
|
implementation |
Reimplemented from Entity.
Definition at line 848 of file WormholeEntity.m.
References arrival_time, ClockToString(), count, destination, Entity::dumpSelfState, dumpSelfState, estimated_arrival_time, expiry_time, Entity::mass, OOLog, origin, scan_time, scanInfoString, shipsInTransit, UNIVERSE, and witch_mass.
Referenced by dumpSelfState.
- (double) estimatedArrivalTime |
Definition at line 551 of file WormholeEntity.m.
References estimated_arrival_time, and estimatedArrivalTime.
Referenced by destination, estimatedArrivalTime, HeadUpDisplay::hudDrawReticleOnTarget, and PlayerEntity(OOPrivate)::updateTargeting.
- (double) exitSpeed |
Definition at line 529 of file WormholeEntity.m.
References exit_speed, and exitSpeed.
Referenced by destination, disgorgeShips, exitSpeed, and PlayerEntity::leaveWitchspace.
- (double) expiryTime |
Definition at line 541 of file WormholeEntity.m.
References expiry_time, and expiryTime.
Referenced by destination, expiryTime, and HeadUpDisplay::hudDrawReticleOnTarget.
- (NSDictionary *) getDict |
Definition at line 801 of file WormholeEntity.m.
Referenced by PlayerEntity::commanderDataDictionary, getDict, and shipsInTransit.
- (void) getJSClass: | (JSClass **) | outClass | |
andPrototype: | (JSObject **) | outPrototype |
Reimplemented from Entity.
Provided by category WormholeEntity(OOJavaScriptExtensions).
Definition at line 121 of file OOJSWormhole.m.
- (NSString *) identFromShip: | (ShipEntity*) | ship |
Definition at line 614 of file WormholeEntity.m.
References DESC, kOOLogInconsistentState, nil, OOLogERR, scanInfo, and WH_SCANINFO_DESTINATION.
|
implementation |
Reimplemented from Entity.
Provided by category WormholeEntity(Private).
Definition at line 59 of file WormholeEntity.m.
Referenced by initWithDict:, and initWormholeTo:fromShip:.
- (WormholeEntity *) initWithDict: | (NSDictionary*) | dict |
Definition at line 87 of file WormholeEntity.m.
References _misjump, arrival_time, destination, destinationCoords, estimated_arrival_time, expiry_time, init, nil, OOLog, origin, originCoords, Entity::position, scan_info, ShipEntity::shipRestoredFromDictionary:useFallback:context:, and WH_SCANINFO_SCANNED.
- (WormholeEntity *) initWormholeTo: | (OOSystemID) | s | |
fromShip: | (ShipEntity *) | ship |
Definition at line 156 of file WormholeEntity.m.
References _misjump, arrival_time, Entity::collision_radius, destination, destinationCoords, distanceBetweenPlanetPositions(), estimated_arrival_time, expiry_time, init, Entity::isPlayer, M_PI, Entity::mass, nil, origin, originCoords, PLAYER, Entity::position, shrink_factor, travel_time, witch_mass, WORMHOLE_SHRINK_RATE, and Entity::zero_distance.
- (BOOL) isScanned |
Definition at line 566 of file WormholeEntity.m.
References isScanned, scan_info, and WH_SCANINFO_NONE.
Referenced by destination, and isScanned.
- (BOOL) isVisibleToScripts |
Reimplemented from Entity.
Provided by category WormholeEntity(OOJavaScriptExtensions).
Definition at line 133 of file OOJSWormhole.m.
- (GLfloat) misjumpRange |
Definition at line 252 of file WormholeEntity.m.
References _misjumpRange, and misjumpRange.
Referenced by destination, and misjumpRange.
- (NSString *) oo_jsClassName |
Reimplemented from Entity.
Provided by category WormholeEntity(OOJavaScriptExtensions).
Definition at line 128 of file OOJSWormhole.m.
- (OOSystemID) origin |
References origin.
- (NSPoint) originCoordinates |
Definition at line 519 of file WormholeEntity.m.
References originCoordinates, and originCoords.
Referenced by destination, and originCoordinates.
- (WORMHOLE_SCANINFO) scanInfo |
Definition at line 581 of file WormholeEntity.m.
References scan_info, and scanInfo.
Referenced by destination, identFromShip:, and scanInfo.
|
implementation |
Definition at line 834 of file WormholeEntity.m.
References scan_info, scanInfoString, WH_SCANINFO_ARRIVAL_TIME, WH_SCANINFO_COLLAPSE_TIME, WH_SCANINFO_DESTINATION, WH_SCANINFO_NONE, WH_SCANINFO_SCANNED, and WH_SCANINFO_SHIP.
Referenced by dumpSelfState, and scanInfoString.
- (double) scanTime |
Definition at line 561 of file WormholeEntity.m.
References scan_time, and scanTime.
Referenced by destination, and scanTime.
- (void) setContainsPlayer: | (BOOL) | val |
Definition at line 497 of file WormholeEntity.m.
References containsPlayer.
Referenced by PlayerEntity::leaveWitchspace.
- (void) setExitPosition: | (HPVector) | pos |
Definition at line 503 of file WormholeEntity.m.
References hasExitPosition, and Entity::setPosition:.
Referenced by PlayerEntity::leaveWitchspace.
- (void) setExitSpeed: | (double) | speed |
Definition at line 535 of file WormholeEntity.m.
References exit_speed, and Entity::speed.
Referenced by disgorgeShips, and PlayerEntity::leaveWitchspace.
- (void) setMisjump |
Definition at line 204 of file WormholeEntity.m.
References _misjump, arrival_time, destinationCoords, distanceBetweenPlanetPositions(), originCoords, setMisjump, and travel_time.
Referenced by destination, and setMisjump.
- (void) setMisjumpWithRange: | (GLfloat) | range |
Definition at line 221 of file WormholeEntity.m.
References _misjump, _misjumpRange, arrival_time, destinationCoords, distanceBetweenPlanetPositions(), originCoords, and travel_time.
Referenced by PlayerEntity::enterWitchspace, PlayerEntity::enterWormhole:, and ShipEntity::enterWormhole:replacing:.
- (void) setScanInfo: | (WORMHOLE_SCANINFO) | scanInfo |
Definition at line 586 of file WormholeEntity.m.
References scan_info.
Referenced by PlayerEntity(OOPrivate)::updateTargeting.
- (void) setScannedAt: | (double) | time |
Definition at line 571 of file WormholeEntity.m.
References scan_info, scan_time, WH_SCANINFO_NONE, and WH_SCANINFO_SCANNED.
Referenced by PlayerEntity::addScannedWormhole:, and PlayerEntity(OOPrivate)::updateTargeting.
- (NSArray *) shipsInTransit |
- (BOOL) suckInShip: | (ShipEntity *) | ship |
Definition at line 258 of file WormholeEntity.m.
References ShipEntity::afterburnerFactor, arrival_time, ShipEntity::beaconCode, AI::clearStack, Entity::collision_radius, Entity::collisionRadius, ShipEntity::doScriptEvent:, expiry_time, ShipEntity::fuel, ShipEntity::getAI, ShipEntity::group, ShipEntity::hasFuelInjection, Entity::isStation, OOShipGroup::leader, M_PI, Entity::mass, ShipEntity::maxFlightSpeed, AI::message:, MIN_FUEL, origin, originCoords, PLAYER, Entity::position, ShipEntity::setStatus:, shrink_factor, Entity::status, UNIVERSE, witch_mass, WORMHOLE_SHRINK_RATE, and x.
Referenced by ShipEntity::enterWormhole:replacing:.
- (double) travelTime |
Definition at line 556 of file WormholeEntity.m.
References travel_time, and travelTime.
Referenced by Universe::carryPlayerOn:inWormhole:, destination, and travelTime.
|
implementation |
Reimplemented from Entity.
Definition at line 665 of file WormholeEntity.m.
References PlayerEntity::clockTimeAdjusted, Entity::collision_radius, expiry_time, M_PI, nil, Entity::no_draw_distance, NO_DRAW_DISTANCE_FACTOR, OOMatrixForBillboard(), PLAYER, Entity::position, Entity::rotMatrix, Entity::scanClass, shrink_factor, Entity::update:, witch_mass, and WORMHOLE_SHRINK_RATE.
- (BOOL) withMisjump |
Definition at line 246 of file WormholeEntity.m.
References _misjump, and withMisjump.
Referenced by destination, PlayerEntity::enterWormhole:, and withMisjump.
|
private |
Definition at line 71 of file WormholeEntity.h.
Referenced by disgorgeShips, initWithDict:, initWormholeTo:fromShip:, setMisjump, setMisjumpWithRange:, and withMisjump.
|
private |
Definition at line 72 of file WormholeEntity.h.
Referenced by misjumpRange, and setMisjumpWithRange:.
|
private |
Definition at line 52 of file WormholeEntity.h.
Referenced by arrivalTime, disgorgeShips, dumpSelfState, initWithDict:, initWormholeTo:fromShip:, setMisjump, setMisjumpWithRange:, and suckInShip:.
|
private |
Definition at line 73 of file WormholeEntity.h.
Referenced by disgorgeShips, and setContainsPlayer:.
|
private |
Definition at line 514 of file WormholeEntity.m.
Referenced by Universe::carryPlayerOn:inWormhole:, destination, dumpSelfState, PlayerEntity::enterWormhole:, initWithDict:, initWormholeTo:fromShip:, and PlayerEntity(OOPrivate)::updateTargeting.
|
private |
Definition at line 60 of file WormholeEntity.h.
Referenced by destinationCoordinates, initWithDict:, initWormholeTo:fromShip:, setMisjump, and setMisjumpWithRange:.
|
private |
Definition at line 53 of file WormholeEntity.h.
Referenced by dumpSelfState, estimatedArrivalTime, initWithDict:, and initWormholeTo:fromShip:.
|
private |
Definition at line 67 of file WormholeEntity.h.
Referenced by exitSpeed, and setExitSpeed:.
|
private |
Definition at line 50 of file WormholeEntity.h.
Referenced by dumpSelfState, expiryTime, initWithDict:, initWormholeTo:fromShip:, suckInShip:, and update:.
|
private |
Definition at line 70 of file WormholeEntity.h.
Referenced by disgorgeShips, and setExitPosition:.
|
private |
Definition at line 509 of file WormholeEntity.m.
Referenced by canCollide, Universe::carryPlayerOn:inWormhole:, dumpSelfState, initWithDict:, initWormholeTo:fromShip:, origin, and suckInShip:.
|
private |
Definition at line 59 of file WormholeEntity.h.
Referenced by canCollide, initWithDict:, initWormholeTo:fromShip:, originCoordinates, setMisjump, setMisjumpWithRange:, and suckInShip:.
|
private |
Definition at line 69 of file WormholeEntity.h.
Referenced by initWithDict:, isScanned, scanInfo, scanInfoString, setScanInfo:, and setScannedAt:.
|
private |
Definition at line 54 of file WormholeEntity.h.
Referenced by dumpSelfState, scanTime, and setScannedAt:.
|
private |
Definition at line 591 of file WormholeEntity.m.
Referenced by disgorgeShips, dumpSelfState, and shipsInTransit.
|
private |
Definition at line 65 of file WormholeEntity.h.
Referenced by initWormholeTo:fromShip:, suckInShip:, and update:.
|
private |
Definition at line 51 of file WormholeEntity.h.
Referenced by initWormholeTo:fromShip:, setMisjump, setMisjumpWithRange:, and travelTime.
|
private |
Definition at line 64 of file WormholeEntity.h.
Referenced by canCollide, drawImmediate:translucent:, dumpSelfState, initWormholeTo:fromShip:, suckInShip:, and update:.