Skyscraper 2.0
SBS::Camera Class Reference

#include <camera.h>

Inheritance diagram for SBS::Camera:
Collaboration diagram for SBS::Camera:

Public Member Functions

 Camera (Object *parent)
 
 ~Camera ()
 
void SetPosition (const Vector3 &position)
 
void SetDirection (const Vector3 &direction)
 
void SetRotation (const Vector3 &rotation)
 
Vector3 GetPosition (bool relative=false)
 
void GetDirection (Vector3 &front, Vector3 &top, bool global=false)
 
Vector3 GetRotation ()
 
void UpdateCameraFloor ()
 
bool Move (Vector3 vector, Real speed=1.0, bool flip=true)
 
bool MovePosition (Vector3 vector, Real speed=1.0)
 
void Rotate (const Vector3 &position, Real speed=1.0)
 
void RotateLocal (const Vector3 &position, Real speed=1.0)
 
void SetStartDirection (const Vector3 &direction)
 
Vector3 GetStartDirection ()
 
void SetStartRotation (const Vector3 &rotation)
 
Vector3 GetStartRotation ()
 
void SetToStartPosition (bool disable_current_floor)
 
void SetToStartDirection ()
 
void SetToStartRotation ()
 
void CheckElevator ()
 
void CheckShaft ()
 
void CheckStairwell ()
 
Real ClickedObject (Camera *camera, bool shift, bool ctrl, bool alt, bool right, Real scale, bool center_only=false, bool hit_only=false)
 
void UnclickedObject ()
 
ObjectGetMeshParent (Object *object)
 
std::string GetClickedMeshName ()
 
std::string GetClickedWallName ()
 
int GetClickedObjectNumber ()
 
int GetClickedObjectLine ()
 
std::string GetClickedObjectCommand ()
 
std::string GetClickedObjectCommandP ()
 
void Loop ()
 
void Strafe (Real speed=1.0)
 
void Step (Real speed=1.0)
 
void Float (Real speed=1.0)
 
void Jump ()
 
void Look (Real speed=1.0)
 
void Turn (Real speed=1.0)
 
void Spin (Real speed=1.0)
 
void InterpolateMovement (Real delta)
 
void SetGravity (Real gravity, bool save_value=true, bool camera_only=true)
 
Real GetGravity ()
 
void EnableGravity (bool value)
 
bool GetGravityStatus ()
 
void SetFOVAngle (Real angle)
 
Real GetFOVAngle ()
 
void SetToDefaultFOV ()
 
Real GetHeight ()
 
void SetViewMode (int mode)
 
void EnableCollisions (bool value)
 
bool CollisionsEnabled ()
 
bool IsOnGround ()
 
void Sync ()
 
void SetMaxRenderDistance (Real value)
 
Real GetMaxRenderDistance ()
 
void ShowDebugShape (bool value)
 
void MoveCharacter ()
 
void ResetCollisions ()
 
void GotoFloor (int floor, bool disable_current=true)
 
void Binoculars (bool value)
 
bool IsMeshVisible (MeshObject *mesh)
 
bool IsDynamicMeshVisible (DynamicMesh *mesh, int mesh_index)
 
void AttachModel (Model *model)
 
void DetachModel ()
 
bool PickUpModel ()
 
void DropModel ()
 
bool IsModelAttached ()
 
void ResetState ()
 
void ResetView ()
 
bool IsActive ()
 
void Refresh ()
 
bool Attach (std::vector< Ogre::Camera * > &cameras, bool init_state=true)
 
bool Detach ()
 
void OnMove (bool parent)
 
void OnRotate (bool parent)
 
CameraState GetCameraState ()
 
void SetCameraState (const CameraState &state, bool set_floor=true)
 
void RevertMovement ()
 
void FreelookMove (const Vector3 &rotation)
 
bool MouseDown ()
 
void CheckObjects ()
 
void Teleport (Real X, Real Y, Real Z)
 
void Drive (bool left, bool right, bool down, bool up, bool key_down)
 
void Crouch (bool value)
 
void SetOrientation (const Quaternion &orientation)
 
void AttachToVehicle (bool value)
 
Ogre::Camera * GetOgreCamera (int index=0)
 
- Public Member Functions inherited from SBS::Object
 Object (Object *parent)
 
virtual ~Object ()
 
void SetValues (const std::string &type, const std::string &name, bool is_permanent, bool is_movable=true)
 
bool IsPermanent ()
 
bool IsMovable ()
 
const std::string & GetType ()
 
int GetNumber ()
 
void AddChild (Object *object)
 
ObjectGetChild (int index)
 
int GetChildrenCount ()
 
void RemoveChild (Object *object)
 
SceneNodeGetSceneNode ()
 
void ShowBoundingBox (bool value)
 
virtual void Move (const Vector3 &vector, Real speed=1.0)
 
virtual void Move (Real X, Real Y, Real Z, Real speed=1.0)
 
void SetPositionRelative (const Vector3 &position)
 
virtual void SetPosition (Real X, Real Y, Real Z)
 
void SetPositionRelative (Real X, Real Y, Real Z)
 
virtual void SetPositionY (Real value)
 
virtual void Rotate (Real X, Real Y, Real Z, Real speed=1.0)
 
virtual void SetRotation (Real X, Real Y, Real Z)
 
Quaternion GetOrientation (bool relative=false)
 
void SetOrientation (const Quaternion &q, bool relative=false)
 
virtual void OnClick (Vector3 &position, bool shift, bool ctrl, bool alt, bool right)
 
virtual void OnUnclick (bool right)
 
virtual void OnHit ()
 
void NotifyMove (bool parent=false)
 
void NotifyRotate (bool parent=false)
 
void ChangeParent (Object *new_parent)
 
bool IsGlobal ()
 
void Init (bool children=true)
 
virtual void OnInit ()
 
void RegisterLoop (Object *object)
 
void UnregisterLoop (Object *object)
 
virtual void Enabled (bool value)
 
std::string GetNameBase ()
 
template<typename T >
bool IsType ()
 
template<typename T >
T * ConvertTo ()
 
- Public Member Functions inherited from SBS::ObjectBase
 ObjectBase (Object *parent)
 
virtual ~ObjectBase ()
 
ObjectGetParent ()
 
SBSGetRoot ()
 
void SetName (const std::string &name)
 
const std::string & GetName ()
 
std::string GetNameBase ()
 
virtual void Report (const std::string &message)
 
virtual bool ReportError (const std::string &message)
 

Public Attributes

int CurrentFloor
 
std::string CurrentFloorID
 
int StartFloor
 
Real StartPositionX
 
Real StartPositionZ
 
Real cfg_jumpspeed
 
Real cfg_walk_accelerate
 
Real cfg_walk_maxspeed
 
Real cfg_walk_maxspeed_mult
 
Real cfg_walk_maxspeed_multreal
 
Real cfg_walk_brake
 
Real cfg_rotate_accelerate
 
Real cfg_rotate_maxspeed
 
Real cfg_rotate_brake
 
Real cfg_body_height
 
Real cfg_body_width
 
Real cfg_legs_height
 
Real cfg_legs_width
 
Real cfg_lookspeed
 
Real cfg_turnspeed
 
Real cfg_spinspeed
 
Real cfg_floatspeed
 
Real cfg_stepspeed
 
Real cfg_strafespeed
 
Real cfg_speed
 
Real cfg_speedfast
 
Real cfg_speedslow
 
Real cfg_zoomspeed
 
Vector3 desired_velocity
 
Vector3 velocity
 
Vector3 desired_angle_velocity
 
Vector3 angle_velocity
 
Real speed
 
bool MouseLeftDown
 
bool MouseRightDown
 
bool ReportCollisions
 
std::string LastHitMesh
 
int LastHitMeshNumber
 
bool Freelook
 
Real Freelook_speed
 
Vector3 HitPosition
 
bool EnableBullet
 
Real BinocularsFOV
 
bool RestrictRotation
 
bool FirstAttach
 
bool inside_vehicle
 
Vehiclevehicle
 
int mouse_x
 
int mouse_y
 
- Public Attributes inherited from SBS::Object
std::string command
 
std::string command_processed
 
std::string context
 
int linenum
 
std::string includefile
 
bool parent_deleting
 

Private Attributes

std::vector< Ogre::Camera * > Cameras
 
Vector3 StartDirection
 
Vector3 StartRotation
 
std::string meshname
 
std::string wallname
 
int object_number
 
int object_line
 
std::string object_cmd
 
std::string object_cmd_processed
 
int FloorTemp
 
Real Gravity
 
bool GravityStatus
 
int lastfloor
 
bool lastfloorset
 
Real FOV
 
Real last_fov
 
Vector3 Rotation
 
bool Collisions
 
bool RotationStopped
 
bool MovementStopped
 
Real FarClip
 
Vector3 accum_movement
 
Vector3 prev_accum_movement
 
bool collision_reset
 
bool use_startdirection
 
Quaternion prev_orientation
 
Vector3 prev_position
 
bool BinocularsState
 
ModelAttachedModel
 
OgreBulletDynamics::CharacterController * mCharacter
 
OgreBulletCollisions::CollisionShape * mShape
 
Quaternion old_camera_orientation
 
Quaternion old_character_orientation
 
bool old_freelook_mode
 

Additional Inherited Members

- Protected Member Functions inherited from SBS::Object
void EnableLoop (bool value)
 
void LoopChildren ()
 
bool SelfDestruct ()
 
- Protected Attributes inherited from SBS::ObjectBase
SBSsbs
 

Detailed Description

Definition at line 46 of file camera.h.

Constructor & Destructor Documentation

◆ Camera()

◆ ~Camera()

SBS::Camera::~Camera ( )

Member Function Documentation

◆ Attach()

◆ AttachModel()

void SBS::Camera::AttachModel ( Model * model)

Definition at line 1233 of file camera.cpp.

References AttachedModel.

Referenced by PickUpModel().

◆ AttachToVehicle()

◆ Binoculars()

void SBS::Camera::Binoculars ( bool value)

Definition at line 1194 of file camera.cpp.

References BinocularsFOV, BinocularsState, Cameras, GetFOVAngle(), last_fov, and SetFOVAngle().

Referenced by Skyscraper::Skyscraper::GetKeyStates().

Here is the call graph for this function:

◆ CheckElevator()

void SBS::Camera::CheckElevator ( )

◆ CheckObjects()

void SBS::Camera::CheckObjects ( )

Definition at line 1503 of file camera.cpp.

References CheckElevator(), CheckShaft(), CheckStairwell(), SBS::SBS::ProcessElevators, and SBS::ObjectBase::sbs.

Here is the call graph for this function:

◆ CheckShaft()

void SBS::Camera::CheckShaft ( )

Definition at line 505 of file camera.cpp.

References SBS::SBS::AutoShafts, Cameras, SBS::Shaft::Check(), CurrentFloor, GetPosition(), SBS::SBS::GetShaft(), SBS::SBS::GetShaftCount(), SBS::ObjectBase::sbs, and SBS_PROFILE.

Referenced by CheckObjects().

Here is the call graph for this function:

◆ CheckStairwell()

void SBS::Camera::CheckStairwell ( )

◆ ClickedObject()

◆ CollisionsEnabled()

bool SBS::Camera::CollisionsEnabled ( )

◆ Crouch()

void SBS::Camera::Crouch ( bool value)

Definition at line 1537 of file camera.cpp.

References mCharacter.

Referenced by Skyscraper::Skyscraper::GetKeyStates().

◆ Detach()

bool SBS::Camera::Detach ( )

Definition at line 1413 of file camera.cpp.

References Cameras, SBS::SceneNode::DetachObject(), and SBS::Object::GetSceneNode().

Referenced by ~Camera().

Here is the call graph for this function:

◆ DetachModel()

void SBS::Camera::DetachModel ( )

Definition at line 1244 of file camera.cpp.

References AttachedModel.

Referenced by DropModel().

◆ Drive()

void SBS::Camera::Drive ( bool left,
bool right,
bool down,
bool up,
bool key_down )

Definition at line 1526 of file camera.cpp.

References SBS::Vehicle::KeyPressed(), SBS::Vehicle::KeyReleased(), and vehicle.

Referenced by Skyscraper::Skyscraper::GetKeyStates().

Here is the call graph for this function:

◆ DropModel()

void SBS::Camera::DropModel ( )

Definition at line 1294 of file camera.cpp.

References AttachedModel, DetachModel(), and SBS::Model::Drop().

Referenced by Skyscraper::Skyscraper::keyPressed().

Here is the call graph for this function:

◆ EnableCollisions()

◆ EnableGravity()

◆ Float()

void SBS::Camera::Float ( Real speed = 1.0)

◆ FreelookMove()

void SBS::Camera::FreelookMove ( const Vector3 & rotation)

Definition at line 904 of file camera.cpp.

References angle_velocity, desired_angle_velocity, and Freelook_speed.

Referenced by Skyscraper::Skyscraper::mouseMoved().

◆ GetCameraState()

◆ GetClickedMeshName()

std::string SBS::Camera::GetClickedMeshName ( )

Definition at line 735 of file camera.cpp.

References meshname.

Referenced by Skyscraper::DebugPanel::Loop().

◆ GetClickedObjectCommand()

std::string SBS::Camera::GetClickedObjectCommand ( )

Definition at line 761 of file camera.cpp.

References object_cmd.

◆ GetClickedObjectCommandP()

std::string SBS::Camera::GetClickedObjectCommandP ( )

Definition at line 767 of file camera.cpp.

References object_cmd_processed.

◆ GetClickedObjectLine()

int SBS::Camera::GetClickedObjectLine ( )

Definition at line 755 of file camera.cpp.

References object_line.

◆ GetClickedObjectNumber()

int SBS::Camera::GetClickedObjectNumber ( )

Definition at line 749 of file camera.cpp.

References object_number.

Referenced by Skyscraper::ObjectInfo::Loop().

◆ GetClickedWallName()

std::string SBS::Camera::GetClickedWallName ( )

Definition at line 742 of file camera.cpp.

References wallname.

◆ GetDirection()

void SBS::Camera::GetDirection ( Vector3 & front,
Vector3 & top,
bool global = false )

Definition at line 263 of file camera.cpp.

References Cameras, SBS::SBS::FromGlobal(), and SBS::ObjectBase::sbs.

Referenced by AttachToVehicle(), SBS::SoundSystem::Loop(), Skyscraper::CameraControl::Loop(), and PickUpModel().

Here is the call graph for this function:

◆ GetFOVAngle()

Real SBS::Camera::GetFOVAngle ( )

◆ GetGravity()

Real SBS::Camera::GetGravity ( )

Definition at line 962 of file camera.cpp.

References Gravity.

Referenced by Skyscraper::CameraControl::OnInit().

◆ GetGravityStatus()

◆ GetHeight()

Real SBS::Camera::GetHeight ( )

Definition at line 1024 of file camera.cpp.

References cfg_body_height, and cfg_legs_height.

Referenced by GotoFloor(), and SetToStartPosition().

◆ GetMaxRenderDistance()

Real SBS::Camera::GetMaxRenderDistance ( )

Definition at line 1126 of file camera.cpp.

References FarClip.

◆ GetMeshParent()

Object * SBS::Camera::GetMeshParent ( Object * object)

Definition at line 710 of file camera.cpp.

References SBS::ObjectBase::GetParent(), and SBS::Object::GetType().

Referenced by AttachToVehicle(), ClickedObject(), and UnclickedObject().

Here is the call graph for this function:

◆ GetOgreCamera()

Ogre::Camera * SBS::Camera::GetOgreCamera ( int index = 0)

Definition at line 1626 of file camera.cpp.

References Cameras.

Referenced by ClickedObject(), and Skyscraper::HAL::UpdateOpenXR().

◆ GetPosition()

◆ GetRotation()

◆ GetStartDirection()

Vector3 SBS::Camera::GetStartDirection ( )

Definition at line 441 of file camera.cpp.

References StartDirection.

◆ GetStartRotation()

Vector3 SBS::Camera::GetStartRotation ( )

Definition at line 451 of file camera.cpp.

References StartRotation.

◆ GotoFloor()

◆ InterpolateMovement()

void SBS::Camera::InterpolateMovement ( Real delta)

◆ IsActive()

bool SBS::Camera::IsActive ( )
inline

◆ IsDynamicMeshVisible()

bool SBS::Camera::IsDynamicMeshVisible ( DynamicMesh * mesh,
int mesh_index )

Definition at line 1225 of file camera.cpp.

References Cameras, and SBS::DynamicMesh::IsVisible().

Here is the call graph for this function:

◆ IsMeshVisible()

bool SBS::Camera::IsMeshVisible ( MeshObject * mesh)

Definition at line 1215 of file camera.cpp.

References Cameras, and SBS::MeshObject::IsVisible().

Here is the call graph for this function:

◆ IsModelAttached()

bool SBS::Camera::IsModelAttached ( )

Definition at line 1305 of file camera.cpp.

References AttachedModel.

Referenced by Skyscraper::Skyscraper::keyPressed().

◆ IsOnGround()

bool SBS::Camera::IsOnGround ( )

Definition at line 1070 of file camera.cpp.

References Cameras, EnableBullet, and mCharacter.

Referenced by Skyscraper::Skyscraper::keyPressed().

◆ Jump()

void SBS::Camera::Jump ( )

Definition at line 872 of file camera.cpp.

References Cameras, EnableBullet, and mCharacter.

Referenced by Skyscraper::Skyscraper::keyPressed().

◆ Look()

void SBS::Camera::Look ( Real speed = 1.0)

◆ Loop()

◆ MouseDown()

◆ Move()

◆ MoveCharacter()

void SBS::Camera::MoveCharacter ( )

◆ MovePosition()

bool SBS::Camera::MovePosition ( Vector3 vector,
Real speed = 1.0 )

Definition at line 353 of file camera.cpp.

References Cameras, GetPosition(), SetPosition(), and speed.

Referenced by SBS::Elevator::MoveObjects(), and SBS::Step::OnHit().

Here is the call graph for this function:

◆ OnMove()

void SBS::Camera::OnMove ( bool parent)
virtual

Reimplemented from SBS::Object.

Definition at line 1431 of file camera.cpp.

References EnableBullet, and mCharacter.

Referenced by OnRotate(), and SetPosition().

◆ OnRotate()

void SBS::Camera::OnRotate ( bool parent)
virtual

Reimplemented from SBS::Object.

Definition at line 1437 of file camera.cpp.

References EnableBullet, mCharacter, and OnMove().

Referenced by RotateLocal(), and SetRotation().

Here is the call graph for this function:

◆ PickUpModel()

bool SBS::Camera::PickUpModel ( )

◆ Refresh()

void SBS::Camera::Refresh ( )

Definition at line 1357 of file camera.cpp.

References mCharacter.

Referenced by Attach(), and Skyscraper::EngineContext::RefreshCamera().

◆ ResetCollisions()

void SBS::Camera::ResetCollisions ( )

Definition at line 1160 of file camera.cpp.

References collision_reset.

Referenced by SBS::MeshObject::EnableCollider().

◆ ResetState()

◆ ResetView()

void SBS::Camera::ResetView ( )

Definition at line 1345 of file camera.cpp.

References Cameras, SetToDefaultFOV(), SetToStartDirection(), and SetToStartRotation().

Referenced by Skyscraper::Skyscraper::keyPressed().

Here is the call graph for this function:

◆ RevertMovement()

void SBS::Camera::RevertMovement ( )

Definition at line 1492 of file camera.cpp.

References accum_movement, and prev_accum_movement.

Referenced by Skyscraper::EngineContext::RevertMovement().

◆ Rotate()

◆ RotateLocal()

void SBS::Camera::RotateLocal ( const Vector3 & position,
Real speed = 1.0 )

Definition at line 378 of file camera.cpp.

References Cameras, EnableBullet, mCharacter, OnRotate(), RestrictRotation, Rotation, RotationStopped, SBS::ObjectBase::sbs, speed, and SBS::SBS::ToGlobal().

Referenced by Loop().

Here is the call graph for this function:

◆ SetCameraState()

◆ SetDirection()

void SBS::Camera::SetDirection ( const Vector3 & direction)

Definition at line 199 of file camera.cpp.

References Cameras.

Referenced by SetToStartDirection().

◆ SetFOVAngle()

void SBS::Camera::SetFOVAngle ( Real angle)

◆ SetGravity()

void SBS::Camera::SetGravity ( Real gravity,
bool save_value = true,
bool camera_only = true )

Definition at line 949 of file camera.cpp.

References Cameras, EnableBullet, Gravity, mCharacter, SBS::SBS::mWorld, SBS::ObjectBase::sbs, and SBS::SBS::ToRemote().

Referenced by Attach(), EnableGravity(), and Skyscraper::CameraControl::On_bGravity_Click().

Here is the call graph for this function:

◆ SetMaxRenderDistance()

void SBS::Camera::SetMaxRenderDistance ( Real value)

Definition at line 1112 of file camera.cpp.

References Cameras, FarClip, SBS::ObjectBase::sbs, and SBS::SBS::ToRemote().

Referenced by Attach().

Here is the call graph for this function:

◆ SetOrientation()

void SBS::Camera::SetOrientation ( const Quaternion & orientation)

Definition at line 1543 of file camera.cpp.

References Cameras.

Referenced by SBS::Vehicle::Loop().

◆ SetPosition()

◆ SetRotation()

◆ SetStartDirection()

void SBS::Camera::SetStartDirection ( const Vector3 & direction)

Definition at line 435 of file camera.cpp.

References StartDirection, and use_startdirection.

Referenced by Skyscraper::ScriptProcessor::GlobalsSection::Run().

◆ SetStartRotation()

void SBS::Camera::SetStartRotation ( const Vector3 & rotation)

Definition at line 446 of file camera.cpp.

References StartRotation.

Referenced by Skyscraper::ScriptProcessor::GlobalsSection::Run().

◆ SetToDefaultFOV()

void SBS::Camera::SetToDefaultFOV ( )

Definition at line 1018 of file camera.cpp.

References FOV, and SetFOVAngle().

Referenced by Skyscraper::CameraControl::On_bResetFOV_Click(), ResetState(), and ResetView().

Here is the call graph for this function:

◆ SetToStartDirection()

void SBS::Camera::SetToStartDirection ( )

Definition at line 467 of file camera.cpp.

References SetDirection(), StartDirection, and use_startdirection.

Referenced by Attach(), Skyscraper::CameraControl::On_bStartDirection_Click(), and ResetView().

Here is the call graph for this function:

◆ SetToStartPosition()

void SBS::Camera::SetToStartPosition ( bool disable_current_floor)

◆ SetToStartRotation()

void SBS::Camera::SetToStartRotation ( )

Definition at line 473 of file camera.cpp.

References SetRotation(), StartRotation, and use_startdirection.

Referenced by Attach(), Skyscraper::CameraControl::On_bStartRotation_Click(), ResetState(), and ResetView().

Here is the call graph for this function:

◆ SetViewMode()

void SBS::Camera::SetViewMode ( int mode)

Definition at line 1031 of file camera.cpp.

References Cameras.

Referenced by Skyscraper::Skyscraper::keyPressed(), and ~Camera().

◆ ShowDebugShape()

void SBS::Camera::ShowDebugShape ( bool value)

Definition at line 1131 of file camera.cpp.

References Cameras, EnableBullet, and mCharacter.

◆ Spin()

void SBS::Camera::Spin ( Real speed = 1.0)

◆ Step()

void SBS::Camera::Step ( Real speed = 1.0)

◆ Strafe()

void SBS::Camera::Strafe ( Real speed = 1.0)

◆ Sync()

◆ Teleport()

void SBS::Camera::Teleport ( Real X,
Real Y,
Real Z )

Definition at line 1516 of file camera.cpp.

References SBS::SBS::GetFloorNumber(), GotoFloor(), SBS::ObjectBase::sbs, and SetPosition().

Referenced by SBS::Action::Run(), and Skyscraper::ScriptProcessor::CommandsSection::Run().

Here is the call graph for this function:

◆ Turn()

void SBS::Camera::Turn ( Real speed = 1.0)

◆ UnclickedObject()

void SBS::Camera::UnclickedObject ( )

Definition at line 688 of file camera.cpp.

References GetMeshParent(), SBS::SBS::GetObject(), MouseLeftDown, MouseRightDown, object_number, SBS::Object::OnUnclick(), and SBS::ObjectBase::sbs.

Referenced by Skyscraper::HAL::UnclickedObject().

Here is the call graph for this function:

◆ UpdateCameraFloor()

void SBS::Camera::UpdateCameraFloor ( )

Member Data Documentation

◆ accum_movement

Vector3 SBS::Camera::accum_movement
private

Definition at line 212 of file camera.h.

Referenced by Camera(), GetCameraState(), Move(), MoveCharacter(), RevertMovement(), and SetCameraState().

◆ angle_velocity

Vector3 SBS::Camera::angle_velocity

◆ AttachedModel

Model* SBS::Camera::AttachedModel
private

Definition at line 221 of file camera.h.

Referenced by AttachModel(), Camera(), DetachModel(), DropModel(), IsModelAttached(), Loop(), and ~Camera().

◆ BinocularsFOV

Real SBS::Camera::BinocularsFOV

◆ BinocularsState

bool SBS::Camera::BinocularsState
private

Definition at line 218 of file camera.h.

Referenced by Binoculars(), and Camera().

◆ Cameras

◆ cfg_body_height

Real SBS::Camera::cfg_body_height

Definition at line 63 of file camera.h.

Referenced by Attach(), Camera(), and GetHeight().

◆ cfg_body_width

Real SBS::Camera::cfg_body_width

Definition at line 64 of file camera.h.

Referenced by Camera(), and SBS::ElevatorDoor::FinishDoors().

◆ cfg_floatspeed

Real SBS::Camera::cfg_floatspeed

Definition at line 70 of file camera.h.

Referenced by Camera(), and Float().

◆ cfg_jumpspeed

Real SBS::Camera::cfg_jumpspeed

Definition at line 54 of file camera.h.

Referenced by Camera().

◆ cfg_legs_height

Real SBS::Camera::cfg_legs_height

Definition at line 65 of file camera.h.

Referenced by Attach(), Camera(), and GetHeight().

◆ cfg_legs_width

Real SBS::Camera::cfg_legs_width

Definition at line 66 of file camera.h.

Referenced by Camera().

◆ cfg_lookspeed

Real SBS::Camera::cfg_lookspeed

Definition at line 67 of file camera.h.

Referenced by Camera(), and Look().

◆ cfg_rotate_accelerate

Real SBS::Camera::cfg_rotate_accelerate

Definition at line 60 of file camera.h.

Referenced by Camera(), and InterpolateMovement().

◆ cfg_rotate_brake

Real SBS::Camera::cfg_rotate_brake

Definition at line 62 of file camera.h.

Referenced by Camera(), and InterpolateMovement().

◆ cfg_rotate_maxspeed

Real SBS::Camera::cfg_rotate_maxspeed

Definition at line 61 of file camera.h.

Referenced by Camera(), Look(), Spin(), and Turn().

◆ cfg_speed

Real SBS::Camera::cfg_speed

Definition at line 73 of file camera.h.

Referenced by Camera(), and Skyscraper::Skyscraper::ProcessMovement().

◆ cfg_speedfast

Real SBS::Camera::cfg_speedfast

Definition at line 74 of file camera.h.

Referenced by Camera(), and Skyscraper::Skyscraper::ProcessMovement().

◆ cfg_speedslow

Real SBS::Camera::cfg_speedslow

Definition at line 75 of file camera.h.

Referenced by Camera(), and Skyscraper::Skyscraper::ProcessMovement().

◆ cfg_spinspeed

Real SBS::Camera::cfg_spinspeed

Definition at line 69 of file camera.h.

Referenced by Camera(), and Spin().

◆ cfg_stepspeed

Real SBS::Camera::cfg_stepspeed

Definition at line 71 of file camera.h.

Referenced by Camera(), and Step().

◆ cfg_strafespeed

Real SBS::Camera::cfg_strafespeed

Definition at line 72 of file camera.h.

Referenced by Camera(), and Strafe().

◆ cfg_turnspeed

Real SBS::Camera::cfg_turnspeed

Definition at line 68 of file camera.h.

Referenced by Camera(), and Turn().

◆ cfg_walk_accelerate

Real SBS::Camera::cfg_walk_accelerate

Definition at line 55 of file camera.h.

Referenced by Camera(), and InterpolateMovement().

◆ cfg_walk_brake

Real SBS::Camera::cfg_walk_brake

Definition at line 59 of file camera.h.

Referenced by Camera(), and InterpolateMovement().

◆ cfg_walk_maxspeed

Real SBS::Camera::cfg_walk_maxspeed

Definition at line 56 of file camera.h.

Referenced by Camera(), Float(), Step(), and Strafe().

◆ cfg_walk_maxspeed_mult

Real SBS::Camera::cfg_walk_maxspeed_mult

Definition at line 57 of file camera.h.

Referenced by Camera().

◆ cfg_walk_maxspeed_multreal

Real SBS::Camera::cfg_walk_maxspeed_multreal

Definition at line 58 of file camera.h.

Referenced by Camera(), Float(), Step(), Strafe(), and Turn().

◆ cfg_zoomspeed

Real SBS::Camera::cfg_zoomspeed

Definition at line 76 of file camera.h.

Referenced by Camera(), and Skyscraper::Skyscraper::keyPressed().

◆ collision_reset

bool SBS::Camera::collision_reset
private

Definition at line 214 of file camera.h.

Referenced by Camera(), Loop(), and ResetCollisions().

◆ Collisions

bool SBS::Camera::Collisions
private

Definition at line 208 of file camera.h.

Referenced by Camera(), CollisionsEnabled(), and EnableCollisions().

◆ CurrentFloor

◆ CurrentFloorID

std::string SBS::Camera::CurrentFloorID

◆ desired_angle_velocity

Vector3 SBS::Camera::desired_angle_velocity

◆ desired_velocity

Vector3 SBS::Camera::desired_velocity

◆ EnableBullet

◆ FarClip

Real SBS::Camera::FarClip
private

Definition at line 211 of file camera.h.

Referenced by Attach(), Camera(), GetMaxRenderDistance(), and SetMaxRenderDistance().

◆ FirstAttach

bool SBS::Camera::FirstAttach

Definition at line 93 of file camera.h.

Referenced by Attach(), and Camera().

◆ FloorTemp

int SBS::Camera::FloorTemp
private

Definition at line 200 of file camera.h.

Referenced by Camera(), and CheckStairwell().

◆ FOV

Real SBS::Camera::FOV
private

Definition at line 205 of file camera.h.

Referenced by Attach(), Camera(), and SetToDefaultFOV().

◆ Freelook

◆ Freelook_speed

Real SBS::Camera::Freelook_speed

◆ Gravity

Real SBS::Camera::Gravity
private

Definition at line 201 of file camera.h.

Referenced by Camera(), EnableGravity(), GetGravity(), and SetGravity().

◆ GravityStatus

bool SBS::Camera::GravityStatus
private

Definition at line 202 of file camera.h.

Referenced by Attach(), Camera(), EnableGravity(), and GetGravityStatus().

◆ HitPosition

Vector3 SBS::Camera::HitPosition

◆ inside_vehicle

bool SBS::Camera::inside_vehicle

◆ last_fov

Real SBS::Camera::last_fov
private

Definition at line 206 of file camera.h.

Referenced by Binoculars(), and Camera().

◆ lastfloor

int SBS::Camera::lastfloor
private

Definition at line 203 of file camera.h.

Referenced by Camera(), and UpdateCameraFloor().

◆ lastfloorset

bool SBS::Camera::lastfloorset
private

Definition at line 204 of file camera.h.

Referenced by Camera(), and UpdateCameraFloor().

◆ LastHitMesh

std::string SBS::Camera::LastHitMesh

Definition at line 85 of file camera.h.

Referenced by Loop(), Skyscraper::CameraControl::Loop(), and Skyscraper::DebugPanel::Loop().

◆ LastHitMeshNumber

int SBS::Camera::LastHitMeshNumber

Definition at line 86 of file camera.h.

Referenced by Camera(), and Loop().

◆ mCharacter

OgreBulletDynamics::CharacterController* SBS::Camera::mCharacter
private

◆ meshname

std::string SBS::Camera::meshname
private

Definition at line 194 of file camera.h.

Referenced by AttachToVehicle(), ClickedObject(), and GetClickedMeshName().

◆ mouse_x

int SBS::Camera::mouse_x

◆ mouse_y

int SBS::Camera::mouse_y

◆ MouseLeftDown

bool SBS::Camera::MouseLeftDown

◆ MouseRightDown

bool SBS::Camera::MouseRightDown

◆ MovementStopped

bool SBS::Camera::MovementStopped
private

Definition at line 210 of file camera.h.

Referenced by Camera(), and Move().

◆ mShape

OgreBulletCollisions::CollisionShape* SBS::Camera::mShape
private

Definition at line 225 of file camera.h.

Referenced by Camera().

◆ object_cmd

std::string SBS::Camera::object_cmd
private

Definition at line 198 of file camera.h.

Referenced by ClickedObject(), and GetClickedObjectCommand().

◆ object_cmd_processed

std::string SBS::Camera::object_cmd_processed
private

Definition at line 199 of file camera.h.

Referenced by ClickedObject(), and GetClickedObjectCommandP().

◆ object_line

int SBS::Camera::object_line
private

Definition at line 197 of file camera.h.

Referenced by Camera(), ClickedObject(), and GetClickedObjectLine().

◆ object_number

int SBS::Camera::object_number
private

Definition at line 196 of file camera.h.

Referenced by Camera(), ClickedObject(), GetClickedObjectNumber(), and UnclickedObject().

◆ old_camera_orientation

Quaternion SBS::Camera::old_camera_orientation
private

Definition at line 228 of file camera.h.

Referenced by AttachToVehicle().

◆ old_character_orientation

Quaternion SBS::Camera::old_character_orientation
private

Definition at line 229 of file camera.h.

Referenced by AttachToVehicle().

◆ old_freelook_mode

bool SBS::Camera::old_freelook_mode
private

Definition at line 230 of file camera.h.

Referenced by AttachToVehicle(), and Camera().

◆ prev_accum_movement

Vector3 SBS::Camera::prev_accum_movement
private

Definition at line 213 of file camera.h.

Referenced by Camera(), MoveCharacter(), and RevertMovement().

◆ prev_orientation

Quaternion SBS::Camera::prev_orientation
private

Definition at line 216 of file camera.h.

Referenced by Camera(), and Sync().

◆ prev_position

Vector3 SBS::Camera::prev_position
private

Definition at line 217 of file camera.h.

Referenced by Camera(), and Sync().

◆ ReportCollisions

bool SBS::Camera::ReportCollisions

◆ RestrictRotation

bool SBS::Camera::RestrictRotation

Definition at line 92 of file camera.h.

Referenced by Camera(), RotateLocal(), and SetRotation().

◆ Rotation

Vector3 SBS::Camera::Rotation
private

Definition at line 207 of file camera.h.

Referenced by Attach(), GetRotation(), RotateLocal(), and SetRotation().

◆ RotationStopped

bool SBS::Camera::RotationStopped
private

Definition at line 209 of file camera.h.

Referenced by Camera(), and RotateLocal().

◆ speed

◆ StartDirection

Vector3 SBS::Camera::StartDirection
private

Definition at line 192 of file camera.h.

Referenced by Camera(), GetStartDirection(), SetStartDirection(), and SetToStartDirection().

◆ StartFloor

◆ StartPositionX

Real SBS::Camera::StartPositionX

◆ StartPositionZ

Real SBS::Camera::StartPositionZ

◆ StartRotation

Vector3 SBS::Camera::StartRotation
private

Definition at line 193 of file camera.h.

Referenced by Camera(), GetStartRotation(), SetStartRotation(), and SetToStartRotation().

◆ use_startdirection

bool SBS::Camera::use_startdirection
private

Definition at line 215 of file camera.h.

Referenced by Camera(), SetStartDirection(), SetToStartDirection(), and SetToStartRotation().

◆ vehicle

Vehicle* SBS::Camera::vehicle

Definition at line 95 of file camera.h.

Referenced by AttachToVehicle(), Camera(), and Drive().

◆ velocity

◆ wallname

std::string SBS::Camera::wallname
private

Definition at line 195 of file camera.h.

Referenced by ClickedObject(), and GetClickedWallName().


The documentation for this class was generated from the following files: