|
Oolite
|
import "ShipEntity.h"import "ShipEntityAI.h"import "ShipEntityScriptMethods.h"import "OOMaths.h"import "OOOpenGLExtensionManager.h"import "OOShaderMaterial.h"import "Universe.h"import "AI.h"import "GameController.h"import "MyOpenGLView.h"import "NSScannerOOExtensions.h"import "OOCharacter.h"import "OOCollectionExtractors.h"import "OOConstToJSString.h"import "OOConstToString.h"import "OOExcludeObjectEnumerator.h"import "OOFilteringEnumerator.h"import "OORoleSet.h"import "OOShipGroup.h"import "OOStringExpander.h"import "OOStringParsing.h"import "OOSystemDescriptionManager.h"import "OOWeakSet.h"import "ResourceManager.h"import "OOMesh.h"import "OOPlanetDrawable.h"import "OOColor.h"import "OOPolygonSprite.h"import "Octree.h"import "DockEntity.h"import "OOECMBlastEntity.h"import "OOExhaustPlumeEntity.h"import "OOExplosionCloudEntity.h"import "OOFlashEffectEntity.h"import "OOFlasherEntity.h"import "OOLaserShotEntity.h"import "OOParticleSystem.h"import "OOPlanetEntity.h"import "OOPlasmaShotEntity.h"import "OOQuiriumCascadeEntity.h"import "OORingEffectEntity.h"import "OOSparkEntity.h"import "OOSunEntity.h"import "PlanetEntity.h"import "PlayerEntity.h"import "ProxyPlayerEntity.h"import "StationEntity.h"import "WormholeEntity.h"import "GuiDisplayGen.h"import "HeadUpDisplay.h"import "OOEntityFilterPredicate.h"import "OOEquipmentType.h"import "OOShipRegistry.h"import "PlayerEntityLegacyScriptEngine.h"import "PlayerEntitySound.h"import "OODebugFlags.h"import "OODebugGLDrawing.h"import "OODebugStandards.h"import "OOJSEngineTimeManagement.h"import "OOJSScript.h"import "OOJSVector.h"Go to the source code of this file.
Classes | |
| category | ShipEntity(Private) |
Macros | |
| #define | USEMASC 1 |
| #define | kMassCharge 0.65 |
| #define | kBaseCharge (1.0 - kMassCharge) |
| #define | kBoulderRole (@"boulder") |
| #define | MAKE_VECTOR_ARRAY(v) |
Functions | |
| static GLfloat | calcFuelChargeRate (GLfloat myMass) |
| static ShipEntity * | doOctreesCollide (ShipEntity *prime, ShipEntity *other) |
| NSDictionary * | OODefaultShipShaderMacros (void) |
| BOOL | OOUniformBindingPermitted (NSString *propertyName, id bindingTarget) |
| GLfloat | getWeaponRangeFromType (OOWeaponType weapon_type) |
| BOOL | isWeaponNone (OOWeaponType weapon) |
Variables | |
| static NSString *const | kOOLogSyntaxAddShips = @"script.debug.syntax.addShips" |
| static GLfloat | cargo_color [4] = { 0.9, 0.9, 0.9, 1.0 } |
| static GLfloat | hostile_color [4] = { 1.0, 0.25, 0.0, 1.0 } |
| static GLfloat | neutral_color [4] = { 1.0, 1.0, 0.0, 1.0 } |
| static GLfloat | friendly_color [4] = { 0.0, 1.0, 0.0, 1.0 } |
| static GLfloat | missile_color [4] = { 0.0, 1.0, 1.0, 1.0 } |
| static GLfloat | police_color1 [4] = { 0.5, 0.0, 1.0, 1.0 } |
| static GLfloat | police_color2 [4] = { 1.0, 0.0, 0.5, 1.0 } |
| static GLfloat | jammed_color [4] = { 0.0, 0.0, 0.0, 0.0 } |
| static GLfloat | mascem_color1 [4] = { 0.3, 0.3, 0.3, 1.0 } |
| static GLfloat | mascem_color2 [4] = { 0.4, 0.1, 0.4, 1.0 } |
| static GLfloat | scripted_color [4] = { 0.0, 0.0, 0.0, 0.0 } |
| #define kBaseCharge (1.0 - kMassCharge) |
Referenced by calcFuelChargeRate().
| #define kBoulderRole (@"boulder") |
Definition at line 1502 of file ShipEntity.m.
| #define kMassCharge 0.65 |
Referenced by calcFuelChargeRate().
| #define MAKE_VECTOR_ARRAY | ( | v | ) |
Definition at line 1795 of file ShipEntity.m.
| #define USEMASC 1 |
Definition at line 96 of file ShipEntity.m.
|
static |
Definition at line 104 of file ShipEntity.m.
References kBaseCharge, and kMassCharge.
Referenced by ShipEntity::fuelChargeRate.
|
static |
Referenced by ShipEntity::checkCloseCollisionWith:, and ShipEntity::doOctreesCollide.
| GLfloat getWeaponRangeFromType | ( | OOWeaponType | weapon_type | ) |
Definition at line 13056 of file ShipEntity.m.
References OOEquipmentType::weaponRange.
Referenced by ShipEntity::behaviour_attack_broadside_target:leftside:, ShipEntity::behaviour_attack_target:, and ShipEntity::setWeaponDataFromType:.
| BOOL isWeaponNone | ( | OOWeaponType | weapon | ) |
Definition at line 13061 of file ShipEntity.m.
References OOEquipmentType::identifier, and nil.
Referenced by ShipEntity::behaviour_attack_broadside:, ShipEntity::behaviour_attack_broadside_target:leftside:, ShipEntity::behaviour_attack_fly_to_target:, ShipEntity::behaviour_attack_target:, ShipEntity::behaviour_close_to_broadside_range:, PlayerEntity::equipmentList, PlayerEntity::fireMainWeapon, ShipEntity::fireMainWeapon:, ShipEntity::fireSubentityLaserShot:, ShipEntity::fireWeapon:direction:range:, ShipEntity::hasOneEquipmentItem:includeWeapons:whileLoading:, ShipEntity::laserHeatLevelForward, PlayerEntity::setGuiToEquipShipScreen:selectingFacingFor:, Universe::shipsForSaleForSystem:withTL:atTime:, ShipThreatAssessment(), ShipThreatAssessment(), StationAddShipToShipyard(), StationAddShipToShipyard(), and ShipEntity::weaponTypeIDForFacing:strict:.
| NSDictionary * OODefaultShipShaderMacros | ( | void | ) |
Definition at line 13009 of file ShipEntity.m.
References ResourceManager::materialDefaults, and nil.
| BOOL OOUniformBindingPermitted | ( | NSString * | propertyName, |
| id | bindingTarget ) |
Definition at line 13021 of file ShipEntity.m.
References nil, and ResourceManager::whitelistDictionary.
|
static |
Definition at line 5589 of file ShipEntity.m.
|
static |
Definition at line 5592 of file ShipEntity.m.
|
static |
Definition at line 5590 of file ShipEntity.m.
|
static |
Definition at line 5596 of file ShipEntity.m.
|
static |
Definition at line 98 of file ShipEntity.m.
|
static |
Definition at line 5597 of file ShipEntity.m.
|
static |
Definition at line 5598 of file ShipEntity.m.
|
static |
Definition at line 5593 of file ShipEntity.m.
|
static |
Definition at line 5591 of file ShipEntity.m.
|
static |
Definition at line 5594 of file ShipEntity.m.
|
static |
Definition at line 5595 of file ShipEntity.m.
|
static |
Definition at line 5599 of file ShipEntity.m.