![]() |
Oolite 1.91.0.7650-250121-affa790
|
#include <OOLaserShotEntity.h>
Class Methods | |
(instancetype) | + laserFromShip:direction:offset: |
(void) | + setUpTexture |
(OOTexture *) | + innerTexture |
(OOTexture *) | + outerTexture |
(void) | + resetGraphicsState [implementation] |
Private Attributes | |
GLfloat | _color [4] |
OOTimeDelta | _lifetime |
GLfloat | _range |
Vector | _offset |
Quaternion | _relOrientation |
Definition at line 36 of file OOLaserShotEntity.h.
|
implementation |
Reimplemented from Entity.
Definition at line 263 of file OOLaserShotEntity.m.
References canCollide.
Referenced by canCollide.
|
implementation |
Reimplemented from Entity.
Definition at line 128 of file OOLaserShotEntity.m.
References Entity::dealloc, dealloc, and setColor:.
Referenced by dealloc.
|
implementation |
Reimplemented from Entity.
Definition at line 136 of file OOLaserShotEntity.m.
References Entity::descriptionComponents, descriptionComponents, and Entity::orientation.
Referenced by descriptionComponents.
|
implementation |
Reimplemented from Entity.
Definition at line 196 of file OOLaserShotEntity.m.
References _color, _range, OOTexture::apply, kLaserBrightness, kLaserCoreWidth, kLaserFlareWidth, kLaserHalfWidth, kLaserVertices, OO_ENTER_OPENGL, OOCheckOpenGLErrors(), OOGL, OOGLPopModelView(), OOGLPushModelView(), OOGLScaleModelView(), OOSetOpenGLState, OOVerifyOpenGLState, OPENGL_STATE_ADDITIVE_BLENDING, texture1, texture2, and UNIVERSE.
|
implementation |
Definition at line 59 of file OOLaserShotEntity.m.
References _color, _lifetime, _offset, _relOrientation, Entity::absolutePositionForSubentityOffset:, Entity::boundingBox, Entity::drawRotationMatrix, Entity::init, Entity::isShip, kIdentityQuaternion, kLaserAlpha, kLaserBlue, kLaserDuration, kLaserGreen, kLaserRed, M_PI, nil, Entity::normalOrientation, Entity::position, quaternion_rotate_about_axis(), Entity::rootShipEntity, Entity::setOrientation:, Entity::setOwner:, Entity::setPosition:, setRange:, Entity::setStatus:, vector_forward_from_quaternion(), vector_up_from_quaternion(), Entity::velocity, WEAPON_FACING_AFT, WEAPON_FACING_FORWARD, WEAPON_FACING_NONE, WEAPON_FACING_PORT, WEAPON_FACING_STARBOARD, and ShipEntity::weaponRange.
+ (OOTexture *) innerTexture |
Definition at line 300 of file OOLaserShotEntity.m.
References innerTexture, nil, setUpTexture, and sShotTexture2.
Referenced by innerTexture, and texture2.
|
implementation |
Reimplemented from Entity.
Definition at line 257 of file OOLaserShotEntity.m.
References isEffect.
Referenced by isEffect.
+ (instancetype) laserFromShip: | (ShipEntity *) | ship | |
direction: | (OOWeaponFacing) | direction | |
offset: | (Vector) | offset |
Definition at line 122 of file OOLaserShotEntity.m.
Referenced by ShipEntity::fireDirectLaserShotAt:, ShipEntity::fireLaserShotInDirection:weaponIdentifier:, and ShipEntity::fireSubentityLaserShot:.
+ (OOTexture *) outerTexture |
Definition at line 307 of file OOLaserShotEntity.m.
References nil, outerTexture, setUpTexture, and sShotTexture.
Referenced by outerTexture, and texture1.
|
implementation |
Definition at line 314 of file OOLaserShotEntity.m.
References nil, OOTexture::release, resetGraphicsState, sShotTexture, and sShotTexture2.
Referenced by resetGraphicsState.
- (void) setColor: | (OOColor *) | color |
Definition at line 142 of file OOLaserShotEntity.m.
References _color, OOColor::blueComponent, OOColor::greenComponent, kLaserBrightness, and OOColor::redComponent.
Referenced by dealloc.
- (void) setRange: | (GLfloat) | range |
Definition at line 151 of file OOLaserShotEntity.m.
References _range, and Entity::setCollisionRadius:.
Referenced by initLaserFromShip:direction:offset:.
+ (void) setUpTexture |
Definition at line 280 of file OOLaserShotEntity.m.
References nil, OOGraphicsResetManager::registerClient:, setUpTexture, OOGraphicsResetManager::sharedManager, sShotTexture, sShotTexture2, and OOTexture::textureWithName:inFolder:options:anisotropy:lodBias:.
Referenced by innerTexture, outerTexture, and setUpTexture.
- (OOTexture *) texture1 |
Definition at line 268 of file OOLaserShotEntity.m.
References outerTexture, and texture1.
Referenced by drawImmediate:translucent:, and texture1.
- (OOTexture *) texture2 |
Definition at line 274 of file OOLaserShotEntity.m.
References innerTexture, and texture2.
Referenced by drawImmediate:translucent:, and texture2.
|
implementation |
Reimplemented from Entity.
Definition at line 158 of file OOLaserShotEntity.m.
References _lifetime, Entity::drawRotationMatrix, Entity::isPlayer, Entity::normalOrientation, Entity::owner, Entity::position, Entity::setOrientation:, Entity::setPosition:, and Entity::update:.
Referenced by PlayerEntity::doBookkeeping:.
|
private |
Definition at line 39 of file OOLaserShotEntity.h.
Referenced by drawImmediate:translucent:, initLaserFromShip:direction:offset:, and setColor:.
|
private |
Definition at line 40 of file OOLaserShotEntity.h.
Referenced by initLaserFromShip:direction:offset:, and update:.
|
private |
Definition at line 42 of file OOLaserShotEntity.h.
Referenced by initLaserFromShip:direction:offset:.
|
private |
Definition at line 41 of file OOLaserShotEntity.h.
Referenced by drawImmediate:translucent:, and setRange:.
|
private |
Definition at line 43 of file OOLaserShotEntity.h.
Referenced by initLaserFromShip:direction:offset:.