src/engine/eCamera.cpp File Reference

#include "rSDL.h"
#include "eSensor.h"
#include "eCamera.h"
#include "rScreen.h"
#include "eGameObject.h"
#include "uInputQueue.h"
#include "eTimer.h"
#include "tConfiguration.h"
#include "rSysdep.h"
#include "tConsole.h"
#include "ePlayer.h"
#include "eAdvWall.h"
#include "nConfig.h"
#include "eFloor.h"
#include "eGrid.h"
#include "eDebugLine.h"
#include "tMath.h"
#include "eNetGameObject.h"
#include "nObserver.h"
#include "eSoundMixer.h"
#include "rViewport.h"
#include "rGL.h"

Include dependency graph for eCamera.cpp:

Go to the source code of this file.

Classes

class  eInitForbidCamera
class  uGlanceAction
class  eCameraSensor
 Sensor class that moves the camera so the view is not blocked. More...
struct  eCameraSensor::Correction
 helper struct to get the best (smallest) position correction More...

Defines

#define SMOOTH_SPEED   1
#define SMART_INCAM_SPEED   1
#define SMART_FRONT_SPEED   4
#define maxcontrol   10
#define maxs   5

Functions

REAL robust_acos (REAL arg)
static nObserverPtr
< ePlayerNetID > & 
se_GetWatchedPlayer (eCamera *cam)
static eGameObjectse_GetWatchedObject (eCamera *cam)
static void se_SetWatchedObject (eCamera *cam, eGameObject *obj)
static bool se_ClampCamera (eCamMode mode)
static void makefinite (REAL &x, REAL y=2)
static void makefinite (eCoord &x)

Variables

static REAL se_hitCacheSpeed = 1
static REAL se_visibilityWallDistance = .5f
static REAL se_visibilitySpeed = 40
static REAL se_visibilityExtension = 1
static REAL se_visibilitySidewaysSkew = .5
static bool se_visibilityLowerWall = true
static bool se_visibilityLowerWallSmart = false
static tSettingItem< REALse_viscs ("CAMERA_VISIBILITY_RECOVERY_SPEED", se_hitCacheSpeed)
static tSettingItem< REALse_viswd ("CAMERA_VISIBILITY_WALL_DISTANCE", se_visibilityWallDistance)
static tSettingItem< REALse_viss ("CAMERA_VISIBILITY_CLIP_SPEED", se_visibilitySpeed)
static tSettingItem< REALse_vise ("CAMERA_VISIBILITY_EXTENSION", se_visibilityExtension)
static tSettingItem< REALse_vissk ("CAMERA_VISIBILITY_SIDESKEW", se_visibilitySidewaysSkew)
static tSettingItem< bool > se_vislw ("CAMERA_VISIBILITY_LOWER_WALL", se_visibilityLowerWall)
static tSettingItem< bool > se_vislws ("CAMERA_VISIBILITY_LOWER_WALL_SMART", se_visibilityLowerWallSmart)
static bool forbid_camera [CAMERA_COUNT]
static eInitForbidCamera se_initForbid
static nSettingItem< bool > a_s ("CAMERA_FORBID_SMART", forbid_camera[CAMERA_SMART])
static nSettingItem< bool > a_i ("CAMERA_FORBID_IN", forbid_camera[CAMERA_IN])
static nSettingItem< bool > a_c ("CAMERA_FORBID_CUSTOM", forbid_camera[CAMERA_CUSTOM])
static nSettingItem< bool > a_sc ("CAMERA_FORBID_SERVER_CUSTOM", forbid_camera[CAMERA_SERVER_CUSTOM])
static nSettingItem< bool > a_f ("CAMERA_FORBID_FREE", forbid_camera[CAMERA_FREE])
static nSettingItem< bool > a_fe ("CAMERA_FORBID_FOLLOW", forbid_camera[CAMERA_FOLLOW])
static nSettingItem< bool > a_ffe ("CAMERA_FORBID_MER", forbid_camera[CAMERA_MER])
static REAL lastTime = 0
static const REAL rimDistance = 0.01f
static const REAL rimDistanceHeight = 0.1f
REAL se_cameraRise = 0
REAL se_cameraZ = 10
static REAL s_startFollowX = -30
static REAL s_startFollowY = -30
static REAL s_startFollowZ = 80
static REAL s_startSmartX = 10
static REAL s_startSmartY = 30
static REAL s_startSmartZ = 2
static REAL s_startFreeX = 10
static REAL s_startFreeY = -70
static REAL s_startFreeZ = 100
static tSettingItem< REALs_foX ("CAMERA_FOLLOW_START_X", s_startFollowX)
static tSettingItem< REALs_smX ("CAMERA_SMART_START_X", s_startSmartX)
static tSettingItem< REALs_frX ("CAMERA_FREE_START_X", s_startFreeX)
static tSettingItem< REALs_foY ("CAMERA_FOLLOW_START_Y", s_startFollowY)
static tSettingItem< REALs_smY ("CAMERA_SMART_START_Y", s_startSmartY)
static tSettingItem< REALs_frY ("CAMERA_FREE_START_Y", s_startFreeY)
static tSettingItem< REALs_foZ ("CAMERA_FOLLOW_START_Z", s_startFollowZ)
static tSettingItem< REALs_smZ ("CAMERA_SMART_START_Z", s_startSmartZ)
static tSettingItem< REALs_frZ ("CAMERA_FREE_START_Z", s_startFreeZ)
static REAL s_customBack = 30
static REAL s_customRise = 20
static REAL s_customBackSpeed = 0
static REAL s_customRiseSpeed = 0
static REAL s_customPitch = -.7
static REAL s_customZoom = 0.5
static REAL s_customTurnSpeed = 40
static REAL s_customTurnSpeed180 = 2
static REAL s_serverCustomBack = 30
static REAL s_serverCustomRise = 20
static REAL s_serverCustomBackSpeed = 0
static REAL s_serverCustomRiseSpeed = 0
static REAL s_serverCustomPitch = -.7
static REAL s_serverCustomTurnSpeed = -1
static REAL s_serverCustomTurnSpeed180 = 2
static tSettingItem< REALs_iBack ("CAMERA_CUSTOM_BACK", s_customBack)
static tSettingItem< REALs_iRise ("CAMERA_CUSTOM_RISE", s_customRise)
static tSettingItem< REALs_iBackSpeed ("CAMERA_CUSTOM_BACK_FROMSPEED", s_customBackSpeed)
static tSettingItem< REALs_iRiseSpeed ("CAMERA_CUSTOM_RISE_FROMSPEED", s_customRiseSpeed)
static tSettingItem< REALs_iPitch ("CAMERA_CUSTOM_PITCH", s_customPitch)
static tSettingItem< REALs_iZoom ("CAMERA_CUSTOM_ZOOM", s_customZoom)
static tSettingItem< REALs_iCustomTurnSpeed ("CAMERA_CUSTOM_TURN_SPEED", s_customTurnSpeed)
static tSettingItem< REALs_iCustomTurnSpeed180 ("CAMERA_CUSTOM_TURN_SPEED_180", s_customTurnSpeed180)
static nSettingItem< REALs_iSBack ("CAMERA_SERVER_CUSTOM_BACK", s_serverCustomBack)
static nSettingItem< REALs_iSRise ("CAMERA_SERVER_CUSTOM_RISE", s_serverCustomRise)
static nSettingItem< REALs_iSBackSpeed ("CAMERA_SERVER_CUSTOM_BACK_FROMSPEED", s_serverCustomBackSpeed)
static nSettingItem< REALs_iSRiseSpeed ("CAMERA_SERVER_CUSTOM_RISE_FROMSPEED", s_serverCustomRiseSpeed)
static nSettingItem< REALs_iSPitch ("CAMERA_SERVER_CUSTOM_PITCH", s_serverCustomPitch)
static nSettingItem< REALs_iSCustomTurnSpeed ("CAMERA_SERVER_CUSTOM_TURN_SPEED", s_serverCustomTurnSpeed)
static nSettingItem< REALs_iSCustomTurnSpeed180 ("CAMERA_SERVER_CUSTOM_TURN_SPEED_180", s_serverCustomTurnSpeed180)
static REAL mercamxydist = 20
static REAL mercamz = 16
static tSettingItem< REALs_mercamxydist ("CAMERA_MER_XYDIST", mercamxydist)
static tSettingItem< REALs_mercamz ("CAMERA_MER_Z", mercamz)
static int glanceMode = 2
static REAL glanceAngularVelocity = 4*M_PI
 angular velocity if target direction perpendicular to current one
static REAL glanceAngularVelocityBonus = 12.
 factor to glanceAngularVelocity for glances larger than M_PI_2
static REAL smartcamGlancingBack = 20
static REAL smartcamGlancingHeight = 10
static tSettingItem< int > s_glanceMode ("CAMERA_GLANCE_MODE", glanceMode)
static tSettingItem< REALs_glanceRotSpeed ("CAMERA_GLANCE_ANGULAR_VELOCITY", glanceAngularVelocity)
static tSettingItem< REALs_glanceRotSpeedBonus ("CAMERA_GLANCE_ANGULAR_VELOCITY_BONUS", glanceAngularVelocityBonus)
static tSettingItem< REALs_smartcamGlanceBack ("CAMERA_SMART_GLANCING_BACK", smartcamGlancingBack)
static tSettingItem< REALs_smartcamGlanceHeight ("CAMERA_SMART_GLANCING_HEIGHT", smartcamGlancingHeight)
static REAL s_inTurnSpeed = 40
static tSettingItem< REALs_iInTurnSpeed ("CAMERA_IN_TURN_SPEED", s_inTurnSpeed)
static nObserverPtr< ePlayerNetIDse_watchedPlayer [MAX_PLAYERS]
REAL upper_height
REAL lower_height
static REAL se_cameraSmartDistanceScale = .2
static tSettingItem< REALse_confCameraSmartDistanceScale ("CAMERA_SMART_DISTANCESCALE", se_cameraSmartDistanceScale)
static REAL se_cameraSmartMinDistanceScale = 5.0
static tSettingItem< REALse_confCameraSmartMinDistanceScale ("CAMERA_SMART_MIN_DISTANCESCALE", se_cameraSmartMinDistanceScale)
static REAL se_cameraSmartMinDistance = 10.0
static tSettingItem< REALse_confCameraSmartMinDistance ("CAMERA_SMART_MIN_DISTANCE", se_cameraSmartMinDistance)
static REAL se_cameraSmartCycleSpeed = 20.0
static tSettingItem< REALse_confCameraSmartCycleSpeed ("CAMERA_SMART_CYCLESPEED", se_cameraSmartCycleSpeed)
static REAL se_cameraSmartHeight = 2.0
static tSettingItem< REALse_confCameraSmartHeight ("CAMERA_SMART_HEIGHT", se_cameraSmartHeight)
static REAL se_cameraSmartDistance = 4.0
static tSettingItem< REALse_confCameraSmartDistance ("CAMERA_SMART_DISTANCE", se_cameraSmartDistance)
static REAL se_cameraSmartHeightExtra = .5f
static tSettingItem< REALse_confCameraSmartHeightExtra ("CAMERA_SMART_HEIGHT_EXTRA", se_cameraSmartHeightExtra)
static REAL se_cameraSmartHeightTurning = .5
static tSettingItem< REALse_confCameraSmartHeightTurning ("CAMERA_SMART_HEIGHT_TURNING", se_cameraSmartHeightTurning)
static REAL se_cameraSmartHeightGrinding = 0
static tSettingItem< REALse_confCameraSmartHeightGrinding ("CAMERA_SMART_HEIGHT_GRINDING", se_cameraSmartHeightGrinding)
static REAL se_cameraSmartHeightObstacle = 1.0
static tSettingItem< REALse_confCameraSmartHeightObstacle ("CAMERA_SMART_HEIGHT_OBSTACLE", se_cameraSmartHeightObstacle)
static REAL se_cameraSmartAvoidFront = 10.0
static tSettingItem< REALse_confCameraSmartAvoidFront ("CAMERA_SMART_AVOID_FRONT", se_cameraSmartAvoidFront)
static REAL se_cameraSmartAvoidFront2 = 0.1
static tSettingItem< REALse_confCameraSmartAvoidFront2 ("CAMERA_SMART_AVOID_FRONT2", se_cameraSmartAvoidFront2)
static REAL se_cameraSmartTurn = 5.0
static tSettingItem< REALse_confCameraSmartTurn ("CAMERA_SMART_TURN_GRINDING", se_cameraSmartTurn)
static REAL se_cameraSmartCenterPosSmooth = 6.0
static tSettingItem< REALse_confCameraSmartCenterPosSmooth ("CAMERA_SMART_CENTER_POS_SMOOTH", se_cameraSmartCenterPosSmooth)
static REAL se_cameraSmartCenterDirSmooth = 3.0
static tSettingItem< REALse_confCameraSmartCenterDirSmooth ("CAMERA_SMART_CENTER_DIR_SMOOTH", se_cameraSmartCenterDirSmooth)
static REAL se_cameraSmartCenterLookahead = .5
static tSettingItem< REALse_confCameraSmartCenterLookahead ("CAMERA_SMART_CENTER_LOOKAHEAD", se_cameraSmartCenterLookahead)
static REAL se_cameraSmartCenterMaxLookahead = 5
static tSettingItem< REALse_confCameraSmartCenterMaxLookahead ("CAMERA_SMART_CENTER_MAX_LOOKAHEAD", se_cameraSmartCenterMaxLookahead)
static float se_cameraEyeDistance = 0
static tConfItem< float > secced ("CAMERA_EYE_DISTANCE", se_cameraEyeDistance)
static int se_cameraEye1Color = 1
static tConfItem< int > sece1ca ("CAMERA_EYE_1_COLOR", se_cameraEye1Color)
static tConfItem< int > sece1cb ("CAMERA_EYE_1_COLOUR", se_cameraEye1Color)
static int se_cameraEye2Color = 6
static tConfItem< int > sece2ca ("CAMERA_EYE_2_COLOR", se_cameraEye2Color)
static tConfItem< int > sece2cb ("CAMERA_EYE_2_COLOUR", se_cameraEye2Color)
static float se_cameraInMaxFocusDistance = .5
static tConfItem< float > secimfd ("CAMERA_IN_MAX_FOCUS_DISTANCE", se_cameraInMaxFocusDistance)
bool displaying = false


Define Documentation

#define maxcontrol   10

Referenced by eCamera::Timestep().

#define maxs   5

Referenced by eCamera::Timestep().

#define SMART_FRONT_SPEED   4

Referenced by eCamera::Timestep().

#define SMART_INCAM_SPEED   1

Referenced by eCamera::Timestep().

#define SMOOTH_SPEED   1

Referenced by eCamera::Timestep().


Function Documentation

static void makefinite ( eCoord &  x  )  [inline, static]

Definition at line 1265 of file eCamera.cpp.

References makefinite().

01265 {makefinite(x.x);makefinite(x.y);}

Here is the call graph for this function:

static void makefinite ( REAL x,
REAL  y = 2 
) [inline, static]

Definition at line 1264 of file eCamera.cpp.

Referenced by makefinite(), and eCamera::Render().

01264 {if (!finite(x)) x=y;}

Here is the caller graph for this function:

REAL robust_acos ( REAL  arg  )  [inline]

acos from <math.h> returns undefined (-1.IND) for arguments outside [-1,1]. this wrapper defines meaningful return values for these cases, permitting safe use even if numerical inaccuracies push an argument slightly outside the theoretically possible range

Definition at line 293 of file eCamera.cpp.

References acos(), and M_PI.

Referenced by eCamera::nextDirIfGlancing().

00293                                   {
00294     if (arg>=1)
00295         return 0;
00296     else if (arg<=-1)
00297         return M_PI;
00298     else
00299         return acos(arg);
00300 }

Here is the call graph for this function:

Here is the caller graph for this function:

static bool se_ClampCamera ( eCamMode  mode  )  [static]

Definition at line 701 of file eCamera.cpp.

References CAMERA_SMART, se_GameTime(), se_visibilityLowerWall, and se_visibilityLowerWallSmart.

Referenced by eCamera::Bound(), eCamera::Render(), and eCamera::Timestep().

00702 {
00703     return !(mode == CAMERA_SMART && se_GameTime() > -.5 ? se_visibilityLowerWallSmart : se_visibilityLowerWall);
00704 }

Here is the call graph for this function:

Here is the caller graph for this function:

static eGameObject* se_GetWatchedObject ( eCamera cam  )  [static]

Definition at line 361 of file eCamera.cpp.

References NULL, ePlayerNetID::Object(), and se_GetWatchedPlayer().

Referenced by eCamera::Timestep().

00362 {
00363     ePlayerNetID const * player = se_GetWatchedPlayer( cam );
00364     if ( player )
00365         return player->Object();
00366 
00367     return NULL;
00368 }

Here is the call graph for this function:

Here is the caller graph for this function:

static nObserverPtr< ePlayerNetID >& se_GetWatchedPlayer ( eCamera cam  )  [static]

Definition at line 349 of file eCamera.cpp.

References ePlayer::ID(), and eCamera::LocalPlayer().

Referenced by se_GetWatchedObject(), and se_SetWatchedObject().

00350 {
00351     static nObserverPtr< ePlayerNetID > dummy;
00352 
00353     ePlayer const * localPlayer = cam->LocalPlayer();
00354     if ( !localPlayer )
00355         return dummy;
00356 
00357     return se_watchedPlayer[ localPlayer->ID() ];
00358 }

Here is the call graph for this function:

Here is the caller graph for this function:

static void se_SetWatchedObject ( eCamera cam,
eGameObject obj 
) [static]

Definition at line 370 of file eCamera.cpp.

References GrowingArrayBase::Len(), ePlayerNetID::Object(), se_GetWatchedPlayer(), and se_PlayerNetIDs.

Referenced by eCamera::Act().

00371 {
00372     nObserverPtr< ePlayerNetID > & player = se_GetWatchedPlayer( cam );
00373 
00374     // switch the favorite player to watch if we switch away from him deliberately
00375     if ( !player || ( player->Object() && player->Object()->Alive() ) )
00376     {
00377         // determine the player that controls the object, a bit awkward...
00378         for ( int i = se_PlayerNetIDs.Len()-1; i>=0; --i )
00379         {
00380             ePlayerNetID * p = se_PlayerNetIDs(i);
00381             if ( p->Object() == obj )
00382                 player = p;
00383         }
00384     }
00385 }

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

nSettingItem<bool> a_c("CAMERA_FORBID_CUSTOM", forbid_camera[CAMERA_CUSTOM]) [static]

nSettingItem<bool> a_f("CAMERA_FORBID_FREE", forbid_camera[CAMERA_FREE]) [static]

nSettingItem<bool> a_fe("CAMERA_FORBID_FOLLOW", forbid_camera[CAMERA_FOLLOW]) [static]

nSettingItem<bool> a_ffe("CAMERA_FORBID_MER", forbid_camera[CAMERA_MER]) [static]

nSettingItem<bool> a_i("CAMERA_FORBID_IN", forbid_camera[CAMERA_IN]) [static]

nSettingItem<bool> a_s("CAMERA_FORBID_SMART", forbid_camera[CAMERA_SMART]) [static]

nSettingItem<bool> a_sc("CAMERA_FORBID_SERVER_CUSTOM", forbid_camera[CAMERA_SERVER_CUSTOM]) [static]

bool displaying = false

Definition at line 1358 of file eCamera.cpp.

bool forbid_camera[CAMERA_COUNT] [static]

Definition at line 84 of file eCamera.cpp.

Referenced by eInitForbidCamera::eInitForbidCamera(), eCamera::MyInit(), and eCamera::SwitchView().

REAL glanceAngularVelocity = 4*M_PI [static]

angular velocity if target direction perpendicular to current one

Definition at line 267 of file eCamera.cpp.

REAL glanceAngularVelocityBonus = 12. [static]

factor to glanceAngularVelocity for glances larger than M_PI_2

Definition at line 268 of file eCamera.cpp.

int glanceMode = 2 [static]

Definition at line 266 of file eCamera.cpp.

REAL lastTime = 0 [static]

Definition at line 142 of file eCamera.cpp.

Referenced by cCockpit::cb_Framerate(), gGame::GameLoop(), eCamera::InterestingToWatch(), nQueryMessageStats::PrintWarning(), ePlayerNetID::RemoveChatbots(), eCamera::s_Timestep(), sn_SendPlanned1(), sr_MotionBlur(), eCamera::SwitchCenter(), eCamera::Timestep(), and ePlayerNetID::WaitToLeaveChat().

REAL lower_height

Definition at line 66 of file eDisplay.cpp.

Referenced by eGrid::display_simple(), gWallRim_helper(), and paint_sr_lowerSky().

REAL mercamxydist = 20 [static]

Definition at line 259 of file eCamera.cpp.

REAL mercamz = 16 [static]

Definition at line 260 of file eCamera.cpp.

const REAL rimDistance = 0.01f [static]

Definition at line 143 of file eCamera.cpp.

Referenced by eCamera::Bound().

const REAL rimDistanceHeight = 0.1f [static]

Definition at line 144 of file eCamera.cpp.

Referenced by eCamera::Bound().

REAL s_customBack = 30 [static]

Definition at line 238 of file eCamera.cpp.

REAL s_customBackSpeed = 0 [static]

Definition at line 238 of file eCamera.cpp.

Referenced by eCamera::Timestep().

REAL s_customPitch = -.7 [static]

Definition at line 238 of file eCamera.cpp.

Referenced by eCamera::Timestep().

REAL s_customRise = 20 [static]

Definition at line 238 of file eCamera.cpp.

Referenced by eCamera::Timestep().

REAL s_customRiseSpeed = 0 [static]

Definition at line 238 of file eCamera.cpp.

Referenced by eCamera::Timestep().

REAL s_customTurnSpeed = 40 [static]

Definition at line 238 of file eCamera.cpp.

Referenced by eCamera::Timestep().

REAL s_customTurnSpeed180 = 2 [static]

Definition at line 238 of file eCamera.cpp.

Referenced by eCamera::Timestep().

REAL s_customZoom = 0.5 [static]

Definition at line 238 of file eCamera.cpp.

Referenced by eCamera::Timestep().

tSettingItem<REAL> s_foX("CAMERA_FOLLOW_START_X", s_startFollowX) [static]

tSettingItem<REAL> s_foY("CAMERA_FOLLOW_START_Y", s_startFollowY) [static]

tSettingItem<REAL> s_foZ("CAMERA_FOLLOW_START_Z", s_startFollowZ) [static]

tSettingItem<REAL> s_frX("CAMERA_FREE_START_X", s_startFreeX) [static]

tSettingItem<REAL> s_frY("CAMERA_FREE_START_Y", s_startFreeY) [static]

tSettingItem<REAL> s_frZ("CAMERA_FREE_START_Z", s_startFreeZ) [static]

tSettingItem<int> s_glanceMode("CAMERA_GLANCE_MODE", glanceMode) [static]

tSettingItem<REAL> s_glanceRotSpeed("CAMERA_GLANCE_ANGULAR_VELOCITY", glanceAngularVelocity) [static]

tSettingItem<REAL> s_glanceRotSpeedBonus("CAMERA_GLANCE_ANGULAR_VELOCITY_BONUS", glanceAngularVelocityBonus) [static]

tSettingItem<REAL> s_iBack("CAMERA_CUSTOM_BACK", s_customBack) [static]

tSettingItem<REAL> s_iBackSpeed("CAMERA_CUSTOM_BACK_FROMSPEED", s_customBackSpeed) [static]

tSettingItem<REAL> s_iCustomTurnSpeed("CAMERA_CUSTOM_TURN_SPEED", s_customTurnSpeed) [static]

tSettingItem<REAL> s_iCustomTurnSpeed180("CAMERA_CUSTOM_TURN_SPEED_180", s_customTurnSpeed180) [static]

tSettingItem<REAL> s_iInTurnSpeed("CAMERA_IN_TURN_SPEED", s_inTurnSpeed) [static]

REAL s_inTurnSpeed = 40 [static]

Definition at line 279 of file eCamera.cpp.

tSettingItem<REAL> s_iPitch("CAMERA_CUSTOM_PITCH", s_customPitch) [static]

tSettingItem<REAL> s_iRise("CAMERA_CUSTOM_RISE", s_customRise) [static]

tSettingItem<REAL> s_iRiseSpeed("CAMERA_CUSTOM_RISE_FROMSPEED", s_customRiseSpeed) [static]

nSettingItem<REAL> s_iSBack("CAMERA_SERVER_CUSTOM_BACK", s_serverCustomBack) [static]

nSettingItem<REAL> s_iSBackSpeed("CAMERA_SERVER_CUSTOM_BACK_FROMSPEED", s_serverCustomBackSpeed) [static]

nSettingItem<REAL> s_iSCustomTurnSpeed("CAMERA_SERVER_CUSTOM_TURN_SPEED", s_serverCustomTurnSpeed) [static]

nSettingItem<REAL> s_iSCustomTurnSpeed180("CAMERA_SERVER_CUSTOM_TURN_SPEED_180", s_serverCustomTurnSpeed180) [static]

nSettingItem<REAL> s_iSPitch("CAMERA_SERVER_CUSTOM_PITCH", s_serverCustomPitch) [static]

nSettingItem<REAL> s_iSRise("CAMERA_SERVER_CUSTOM_RISE", s_serverCustomRise) [static]

nSettingItem<REAL> s_iSRiseSpeed("CAMERA_SERVER_CUSTOM_RISE_FROMSPEED", s_serverCustomRiseSpeed) [static]

tSettingItem<REAL> s_iZoom("CAMERA_CUSTOM_ZOOM", s_customZoom) [static]

tSettingItem<REAL> s_mercamxydist("CAMERA_MER_XYDIST", mercamxydist) [static]

tSettingItem<REAL> s_mercamz("CAMERA_MER_Z", mercamz) [static]

REAL s_serverCustomBack = 30 [static]

Definition at line 239 of file eCamera.cpp.

REAL s_serverCustomBackSpeed = 0 [static]

Definition at line 239 of file eCamera.cpp.

Referenced by eCamera::Timestep().

REAL s_serverCustomPitch = -.7 [static]

Definition at line 239 of file eCamera.cpp.

Referenced by eCamera::Timestep().

REAL s_serverCustomRise = 20 [static]

Definition at line 239 of file eCamera.cpp.

Referenced by eCamera::Timestep().

REAL s_serverCustomRiseSpeed = 0 [static]

Definition at line 239 of file eCamera.cpp.

Referenced by eCamera::Timestep().

REAL s_serverCustomTurnSpeed = -1 [static]

Definition at line 239 of file eCamera.cpp.

Referenced by eCamera::Timestep().

REAL s_serverCustomTurnSpeed180 = 2 [static]

Definition at line 239 of file eCamera.cpp.

Referenced by eCamera::Timestep().

tSettingItem<REAL> s_smartcamGlanceBack("CAMERA_SMART_GLANCING_BACK", smartcamGlancingBack) [static]

tSettingItem<REAL> s_smartcamGlanceHeight("CAMERA_SMART_GLANCING_HEIGHT", smartcamGlancingHeight) [static]

tSettingItem<REAL> s_smX("CAMERA_SMART_START_X", s_startSmartX) [static]

tSettingItem<REAL> s_smY("CAMERA_SMART_START_Y", s_startSmartY) [static]

tSettingItem<REAL> s_smZ("CAMERA_SMART_START_Z", s_startSmartZ) [static]

REAL s_startFollowX = -30 [static]

Definition at line 221 of file eCamera.cpp.

REAL s_startFollowY = -30 [static]

Definition at line 221 of file eCamera.cpp.

Referenced by eCamera::MyInit().

REAL s_startFollowZ = 80 [static]

Definition at line 221 of file eCamera.cpp.

Referenced by eCamera::MyInit().

REAL s_startFreeX = 10 [static]

Definition at line 223 of file eCamera.cpp.

REAL s_startFreeY = -70 [static]

Definition at line 223 of file eCamera.cpp.

Referenced by eCamera::MyInit().

REAL s_startFreeZ = 100 [static]

Definition at line 223 of file eCamera.cpp.

Referenced by eCamera::MyInit().

REAL s_startSmartX = 10 [static]

Definition at line 222 of file eCamera.cpp.

REAL s_startSmartY = 30 [static]

Definition at line 222 of file eCamera.cpp.

Referenced by eCamera::MyInit().

REAL s_startSmartZ = 2 [static]

Definition at line 222 of file eCamera.cpp.

Referenced by eCamera::MyInit().

int se_cameraEye1Color = 1 [static]

Definition at line 1346 of file eCamera.cpp.

int se_cameraEye2Color = 6 [static]

Definition at line 1350 of file eCamera.cpp.

float se_cameraEyeDistance = 0 [static]

Definition at line 1343 of file eCamera.cpp.

float se_cameraInMaxFocusDistance = .5 [static]

Definition at line 1354 of file eCamera.cpp.

REAL se_cameraRise = 0

Definition at line 146 of file eCamera.cpp.

Referenced by eCamera::Render().

REAL se_cameraSmartAvoidFront = 10.0 [static]

Definition at line 1308 of file eCamera.cpp.

REAL se_cameraSmartAvoidFront2 = 0.1 [static]

Definition at line 1312 of file eCamera.cpp.

REAL se_cameraSmartCenterDirSmooth = 3.0 [static]

Definition at line 1324 of file eCamera.cpp.

REAL se_cameraSmartCenterLookahead = .5 [static]

Definition at line 1328 of file eCamera.cpp.

REAL se_cameraSmartCenterMaxLookahead = 5 [static]

Definition at line 1332 of file eCamera.cpp.

REAL se_cameraSmartCenterPosSmooth = 6.0 [static]

Definition at line 1320 of file eCamera.cpp.

REAL se_cameraSmartCycleSpeed = 20.0 [static]

Definition at line 1282 of file eCamera.cpp.

REAL se_cameraSmartDistance = 4.0 [static]

Definition at line 1289 of file eCamera.cpp.

REAL se_cameraSmartDistanceScale = .2 [static]

Definition at line 1270 of file eCamera.cpp.

REAL se_cameraSmartHeight = 2.0 [static]

Definition at line 1286 of file eCamera.cpp.

REAL se_cameraSmartHeightExtra = .5f [static]

Definition at line 1292 of file eCamera.cpp.

REAL se_cameraSmartHeightGrinding = 0 [static]

Definition at line 1300 of file eCamera.cpp.

REAL se_cameraSmartHeightObstacle = 1.0 [static]

Definition at line 1304 of file eCamera.cpp.

REAL se_cameraSmartHeightTurning = .5 [static]

Definition at line 1296 of file eCamera.cpp.

REAL se_cameraSmartMinDistance = 10.0 [static]

Definition at line 1278 of file eCamera.cpp.

REAL se_cameraSmartMinDistanceScale = 5.0 [static]

Definition at line 1274 of file eCamera.cpp.

REAL se_cameraSmartTurn = 5.0 [static]

Definition at line 1316 of file eCamera.cpp.

REAL se_cameraZ = 10

Definition at line 147 of file eCamera.cpp.

Referenced by eCamera::Render().

tSettingItem< REAL > se_confCameraSmartAvoidFront("CAMERA_SMART_AVOID_FRONT", se_cameraSmartAvoidFront) [static]

tSettingItem< REAL > se_confCameraSmartAvoidFront2("CAMERA_SMART_AVOID_FRONT2", se_cameraSmartAvoidFront2) [static]

tSettingItem< REAL > se_confCameraSmartCenterDirSmooth("CAMERA_SMART_CENTER_DIR_SMOOTH", se_cameraSmartCenterDirSmooth) [static]

tSettingItem< REAL > se_confCameraSmartCenterLookahead("CAMERA_SMART_CENTER_LOOKAHEAD", se_cameraSmartCenterLookahead) [static]

tSettingItem< REAL > se_confCameraSmartCenterMaxLookahead("CAMERA_SMART_CENTER_MAX_LOOKAHEAD", se_cameraSmartCenterMaxLookahead) [static]

tSettingItem< REAL > se_confCameraSmartCenterPosSmooth("CAMERA_SMART_CENTER_POS_SMOOTH", se_cameraSmartCenterPosSmooth) [static]

tSettingItem< REAL > se_confCameraSmartCycleSpeed("CAMERA_SMART_CYCLESPEED", se_cameraSmartCycleSpeed) [static]

tSettingItem< REAL > se_confCameraSmartDistance("CAMERA_SMART_DISTANCE", se_cameraSmartDistance) [static]

tSettingItem< REAL > se_confCameraSmartDistanceScale("CAMERA_SMART_DISTANCESCALE", se_cameraSmartDistanceScale) [static]

tSettingItem< REAL > se_confCameraSmartHeight("CAMERA_SMART_HEIGHT", se_cameraSmartHeight) [static]

tSettingItem< REAL > se_confCameraSmartHeightExtra("CAMERA_SMART_HEIGHT_EXTRA", se_cameraSmartHeightExtra) [static]

tSettingItem< REAL > se_confCameraSmartHeightGrinding("CAMERA_SMART_HEIGHT_GRINDING", se_cameraSmartHeightGrinding) [static]

tSettingItem< REAL > se_confCameraSmartHeightObstacle("CAMERA_SMART_HEIGHT_OBSTACLE", se_cameraSmartHeightObstacle) [static]

tSettingItem< REAL > se_confCameraSmartHeightTurning("CAMERA_SMART_HEIGHT_TURNING", se_cameraSmartHeightTurning) [static]

tSettingItem< REAL > se_confCameraSmartMinDistance("CAMERA_SMART_MIN_DISTANCE", se_cameraSmartMinDistance) [static]

tSettingItem< REAL > se_confCameraSmartMinDistanceScale("CAMERA_SMART_MIN_DISTANCESCALE", se_cameraSmartMinDistanceScale) [static]

tSettingItem< REAL > se_confCameraSmartTurn("CAMERA_SMART_TURN_GRINDING", se_cameraSmartTurn) [static]

REAL se_hitCacheSpeed = 1 [static]

Definition at line 62 of file eCamera.cpp.

Referenced by eCamera::Timestep().

eInitForbidCamera se_initForbid [static]

Definition at line 101 of file eCamera.cpp.

tSettingItem<REAL> se_viscs("CAMERA_VISIBILITY_RECOVERY_SPEED", se_hitCacheSpeed) [static]

tSettingItem<REAL> se_vise("CAMERA_VISIBILITY_EXTENSION", se_visibilityExtension) [static]

REAL se_visibilityExtension = 1 [static]

Definition at line 67 of file eCamera.cpp.

Referenced by eCamera::Bound().

bool se_visibilityLowerWall = true [static]

Definition at line 69 of file eCamera.cpp.

Referenced by se_ClampCamera().

bool se_visibilityLowerWallSmart = false [static]

Definition at line 70 of file eCamera.cpp.

Referenced by se_ClampCamera().

REAL se_visibilitySidewaysSkew = .5 [static]

Definition at line 68 of file eCamera.cpp.

REAL se_visibilitySpeed = 40 [static]

Definition at line 66 of file eCamera.cpp.

Referenced by eCamera::Bound().

REAL se_visibilityWallDistance = .5f [static]

Definition at line 64 of file eCamera.cpp.

Referenced by eCamera::Bound().

tSettingItem<bool> se_vislw("CAMERA_VISIBILITY_LOWER_WALL", se_visibilityLowerWall) [static]

tSettingItem<bool> se_vislws("CAMERA_VISIBILITY_LOWER_WALL_SMART", se_visibilityLowerWallSmart) [static]

tSettingItem<REAL> se_viss("CAMERA_VISIBILITY_CLIP_SPEED", se_visibilitySpeed) [static]

tSettingItem<REAL> se_vissk("CAMERA_VISIBILITY_SIDESKEW", se_visibilitySidewaysSkew) [static]

tSettingItem<REAL> se_viswd("CAMERA_VISIBILITY_WALL_DISTANCE", se_visibilityWallDistance) [static]

nObserverPtr< ePlayerNetID > se_watchedPlayer[MAX_PLAYERS] [static]

Definition at line 346 of file eCamera.cpp.

tConfItem<float> secced("CAMERA_EYE_DISTANCE", se_cameraEyeDistance) [static]

tConfItem<int> sece1ca("CAMERA_EYE_1_COLOR", se_cameraEye1Color) [static]

tConfItem<int> sece1cb("CAMERA_EYE_1_COLOUR", se_cameraEye1Color) [static]

tConfItem<int> sece2ca("CAMERA_EYE_2_COLOR", se_cameraEye2Color) [static]

tConfItem<int> sece2cb("CAMERA_EYE_2_COLOUR", se_cameraEye2Color) [static]

tConfItem<float> secimfd("CAMERA_IN_MAX_FOCUS_DISTANCE", se_cameraInMaxFocusDistance) [static]

REAL smartcamGlancingBack = 20 [static]

Definition at line 269 of file eCamera.cpp.

REAL smartcamGlancingHeight = 10 [static]

Definition at line 270 of file eCamera.cpp.

REAL upper_height

Definition at line 65 of file eDisplay.cpp.

Referenced by eGrid::display_simple(), and gWallRim_helper().


Generated on Sat Mar 15 22:56:46 2008 for Armagetron Advanced by  doxygen 1.5.4