Skyscraper 2.0
Skyscraper::Skyscraper Class Reference

#include <skyscraper.h>

Inheritance diagram for Skyscraper::Skyscraper:
Collaboration diagram for Skyscraper::Skyscraper:

Public Member Functions

bool Loop ()
 
virtual bool OnInit ()
 
virtual int OnExit ()
 
 Skyscraper ()
 
virtual ~Skyscraper ()
 
void setup ()
 
Ogre::RenderWindow * CreateRenderWindow (const Ogre::NameValuePairList *miscParams=0, const std::string &windowName="")
 
void destroyRenderWindow ()
 
const std::string getOgreHandle () const
 
void ShowError (const std::string &message)
 
void ShowMessage (const std::string &message)
 
void StartSound ()
 
std::string SelectBuilding ()
 
bool Load (const std::string &filename, EngineContext *parent=0, const Vector3 &position=Vector3::ZERO, Real rotation=0.0, const Vector3 &area_min=Vector3::ZERO, const Vector3 &area_max=Vector3::ZERO)
 
bool Start (EngineContext *engine)
 
void AllowResize (bool value)
 
void UnloadToMenu ()
 
void Quit ()
 
std::string GetKeyConfigString (const std::string &key, const std::string &default_value)
 
int GetJoystickConfigInt (const std::string &key, int default_value)
 
void SetFullScreen (bool enabled)
 
void RaiseWindow ()
 
void RefreshConsole ()
 
bool SetCWD ()
 
std::filesystem::path GetExeDirectory ()
 
bool keyPressed (const OgreBites::KeyboardEvent &evt)
 
bool keyReleased (const OgreBites::KeyboardEvent &evt)
 
bool mouseMoved (const OgreBites::MouseMotionEvent &evt)
 
bool mousePressed (const OgreBites::MouseButtonEvent &evt)
 
bool mouseReleased (const OgreBites::MouseButtonEvent &evt)
 
bool mouseWheelRolled (const OgreBites::MouseWheelEvent &evt)
 
bool touchMoved (const OgreBites::TouchFingerEvent &evt)
 
bool touchPressed (const OgreBites::TouchFingerEvent &evt)
 
bool touchReleased (const OgreBites::TouchFingerEvent &evt)
 
std::string GetDataPath ()
 
MainScreenGetWindow ()
 
VMGetVM ()
 
void StopMenu ()
 

Public Attributes

bool StartupRunning
 
bool IntroMusic
 
bool FullScreen
 
bool Maximized
 
bool Verbose
 
bool ShowMenu
 
int wireframe
 
bool alt_down
 
bool ctrl_down
 
bool shift_down
 
MainScreenwindow
 

Protected Attributes

bool colliders
 
bool boxes
 
bool strafe_left
 
bool strafe_right
 
bool float_up
 
bool float_down
 
bool spin_up
 
bool spin_down
 
bool turn_left
 
bool turn_right
 
bool look_up
 
bool look_down
 
bool step_forward
 
bool step_backward
 
bool freelook
 

Private Member Functions

void UnloadSim ()
 
void Report (const std::string &message)
 
bool ReportError (const std::string &message)
 
void GetKeyStates (EngineContext *engine, OgreBites::Keycode &key, bool down)
 
void ProcessMovement (EngineContext *engine, bool control=false, bool shift=false, bool angle_only=false)
 
void HandleMouseMovement ()
 
void EnableFreelook (bool value)
 

Private Attributes

bool startscreen_loaded
 
Ogre::RenderWindow * mRenderWindow
 
VMvm
 
StartScreenstartscreen
 

Friends

class MainScreen
 
class VM
 
class HAL
 

Detailed Description

Definition at line 69 of file skyscraper.h.

Constructor & Destructor Documentation

◆ Skyscraper()

Skyscraper::Skyscraper::Skyscraper ( )

Definition at line 121 of file skyscraper.cpp.

◆ ~Skyscraper()

virtual Skyscraper::Skyscraper::~Skyscraper ( )
inlinevirtual

Definition at line 95 of file skyscraper.h.

Member Function Documentation

◆ AllowResize()

void Skyscraper::Skyscraper::AllowResize ( bool value)

◆ CreateRenderWindow()

Ogre::RenderWindow * Skyscraper::Skyscraper::CreateRenderWindow ( const Ogre::NameValuePairList * miscParams = 0,
const std::string & windowName = "" )

◆ destroyRenderWindow()

void Skyscraper::Skyscraper::destroyRenderWindow ( )

Definition at line 682 of file skyscraper.cpp.

◆ EnableFreelook()

void Skyscraper::Skyscraper::EnableFreelook ( bool value)
private

Definition at line 699 of file native.cpp.

References SBS::SBS::camera, SBS::Camera::Freelook, and Skyscraper::EngineContext::GetSystem().

Here is the call graph for this function:

◆ GetDataPath()

std::string Skyscraper::Skyscraper::GetDataPath ( )

Definition at line 732 of file skyscraper.cpp.

◆ GetExeDirectory()

std::filesystem::path Skyscraper::Skyscraper::GetExeDirectory ( )

Definition at line 52 of file native.cpp.

◆ GetJoystickConfigInt()

int Skyscraper::Skyscraper::GetJoystickConfigInt ( const std::string & key,
int default_value )

◆ GetKeyConfigString()

std::string Skyscraper::Skyscraper::GetKeyConfigString ( const std::string & key,
const std::string & default_value )

◆ GetKeyStates()

void Skyscraper::Skyscraper::GetKeyStates ( EngineContext * engine,
OgreBites::Keycode & key,
bool down )
private

◆ getOgreHandle()

const std::string Skyscraper::Skyscraper::getOgreHandle ( ) const

◆ GetVM()

VM * Skyscraper::Skyscraper::GetVM ( )

Definition at line 742 of file skyscraper.cpp.

Referenced by Skyscraper::CrashHandlerExceptionFilter().

◆ GetWindow()

MainScreen * Skyscraper::Skyscraper::GetWindow ( )

◆ HandleMouseMovement()

void Skyscraper::Skyscraper::HandleMouseMovement ( )
private

Definition at line 719 of file native.cpp.

References SBS::SBS::camera, Skyscraper::EngineContext::GetSystem(), and Skyscraper::EngineContext::IsRunning().

Here is the call graph for this function:

◆ keyPressed()

◆ keyReleased()

bool Skyscraper::Skyscraper::keyReleased ( const OgreBites::KeyboardEvent & evt)

Definition at line 322 of file native.cpp.

◆ Load()

bool Skyscraper::Skyscraper::Load ( const std::string & filename,
EngineContext * parent = 0,
const Vector3 & position = Vector3::ZERO,
Real rotation = 0.0,
const Vector3 & area_min = Vector3::ZERO,
const Vector3 & area_max = Vector3::ZERO )

Definition at line 528 of file skyscraper.cpp.

Referenced by Skyscraper::StartScreen::Click().

◆ Loop()

bool Skyscraper::Skyscraper::Loop ( )

Definition at line 391 of file skyscraper.cpp.

References SBS::ProfileManager::Increment_Frame_Counter(), and SBS::ProfileManager::Reset().

Referenced by main().

Here is the call graph for this function:

◆ mouseMoved()

bool Skyscraper::Skyscraper::mouseMoved ( const OgreBites::MouseMotionEvent & evt)

Definition at line 342 of file native.cpp.

References SBS::SBS::camera, SBS::SBS::FPS, SBS::Camera::Freelook, SBS::Camera::FreelookMove(), SBS::Camera::mouse_x, and SBS::Camera::mouse_y.

Here is the call graph for this function:

◆ mousePressed()

bool Skyscraper::Skyscraper::mousePressed ( const OgreBites::MouseButtonEvent & evt)

Definition at line 424 of file native.cpp.

References Skyscraper::HAL::ClickedObject().

Here is the call graph for this function:

◆ mouseReleased()

bool Skyscraper::Skyscraper::mouseReleased ( const OgreBites::MouseButtonEvent & evt)

Definition at line 449 of file native.cpp.

◆ mouseWheelRolled()

bool Skyscraper::Skyscraper::mouseWheelRolled ( const OgreBites::MouseWheelEvent & evt)

Definition at line 463 of file native.cpp.

◆ OnExit()

int Skyscraper::Skyscraper::OnExit ( )
virtual

Definition at line 342 of file skyscraper.cpp.

◆ OnInit()

◆ ProcessMovement()

void Skyscraper::Skyscraper::ProcessMovement ( EngineContext * engine,
bool control = false,
bool shift = false,
bool angle_only = false )
private

◆ Quit()

void Skyscraper::Skyscraper::Quit ( )

Definition at line 669 of file skyscraper.cpp.

◆ RaiseWindow()

void Skyscraper::Skyscraper::RaiseWindow ( )

Definition at line 706 of file skyscraper.cpp.

◆ RefreshConsole()

void Skyscraper::Skyscraper::RefreshConsole ( )

◆ Report()

void Skyscraper::Skyscraper::Report ( const std::string & message)
private

Definition at line 754 of file skyscraper.cpp.

◆ ReportError()

bool Skyscraper::Skyscraper::ReportError ( const std::string & message)
private

Definition at line 759 of file skyscraper.cpp.

◆ SelectBuilding()

std::string Skyscraper::Skyscraper::SelectBuilding ( )

Definition at line 515 of file skyscraper.cpp.

Referenced by Skyscraper::StartScreen::Click().

◆ SetCWD()

bool Skyscraper::Skyscraper::SetCWD ( )

Definition at line 80 of file native.cpp.

References settingsPath().

Here is the call graph for this function:

◆ SetFullScreen()

void Skyscraper::Skyscraper::SetFullScreen ( bool enabled)

Definition at line 687 of file skyscraper.cpp.

◆ setup()

void Skyscraper::Skyscraper::setup ( )

Definition at line 125 of file skyscraper.cpp.

◆ ShowError()

void Skyscraper::Skyscraper::ShowError ( const std::string & message)

◆ ShowMessage()

void Skyscraper::Skyscraper::ShowMessage ( const std::string & message)

◆ Start()

◆ StartSound()

void Skyscraper::Skyscraper::StartSound ( )

Definition at line 482 of file skyscraper.cpp.

◆ StopMenu()

void Skyscraper::Skyscraper::StopMenu ( )

Definition at line 542 of file skyscraper.cpp.

◆ touchMoved()

bool Skyscraper::Skyscraper::touchMoved ( const OgreBites::TouchFingerEvent & evt)

Definition at line 480 of file native.cpp.

References SBS::SBS::camera, SBS::Camera::mouse_x, and SBS::Camera::mouse_y.

◆ touchPressed()

bool Skyscraper::Skyscraper::touchPressed ( const OgreBites::TouchFingerEvent & evt)

Definition at line 508 of file native.cpp.

References Skyscraper::HAL::ClickedObject().

Here is the call graph for this function:

◆ touchReleased()

bool Skyscraper::Skyscraper::touchReleased ( const OgreBites::TouchFingerEvent & evt)

Definition at line 530 of file native.cpp.

◆ UnloadSim()

void Skyscraper::Skyscraper::UnloadSim ( )
private

Definition at line 374 of file skyscraper.cpp.

◆ UnloadToMenu()

void Skyscraper::Skyscraper::UnloadToMenu ( )

Definition at line 641 of file skyscraper.cpp.

Friends And Related Symbol Documentation

◆ HAL

friend class HAL
friend

Definition at line 74 of file skyscraper.h.

◆ MainScreen

friend class MainScreen
friend

Definition at line 72 of file skyscraper.h.

◆ VM

friend class VM
friend

Definition at line 73 of file skyscraper.h.

Member Data Documentation

◆ alt_down

bool Skyscraper::Skyscraper::alt_down

Definition at line 129 of file skyscraper.h.

◆ boxes

bool Skyscraper::Skyscraper::boxes
protected

Definition at line 144 of file skyscraper.h.

◆ colliders

bool Skyscraper::Skyscraper::colliders
protected

Definition at line 144 of file skyscraper.h.

◆ ctrl_down

bool Skyscraper::Skyscraper::ctrl_down

Definition at line 129 of file skyscraper.h.

◆ float_down

bool Skyscraper::Skyscraper::float_down
protected

Definition at line 146 of file skyscraper.h.

◆ float_up

bool Skyscraper::Skyscraper::float_up
protected

Definition at line 146 of file skyscraper.h.

◆ freelook

bool Skyscraper::Skyscraper::freelook
protected

Definition at line 151 of file skyscraper.h.

◆ FullScreen

bool Skyscraper::Skyscraper::FullScreen

Definition at line 80 of file skyscraper.h.

◆ IntroMusic

bool Skyscraper::Skyscraper::IntroMusic

Definition at line 79 of file skyscraper.h.

◆ look_down

bool Skyscraper::Skyscraper::look_down
protected

Definition at line 149 of file skyscraper.h.

◆ look_up

bool Skyscraper::Skyscraper::look_up
protected

Definition at line 149 of file skyscraper.h.

◆ Maximized

bool Skyscraper::Skyscraper::Maximized

Definition at line 81 of file skyscraper.h.

◆ mRenderWindow

Ogre::RenderWindow* Skyscraper::Skyscraper::mRenderWindow
private

Definition at line 168 of file skyscraper.h.

◆ shift_down

bool Skyscraper::Skyscraper::shift_down

Definition at line 129 of file skyscraper.h.

◆ ShowMenu

bool Skyscraper::Skyscraper::ShowMenu

Definition at line 83 of file skyscraper.h.

◆ spin_down

bool Skyscraper::Skyscraper::spin_down
protected

Definition at line 147 of file skyscraper.h.

◆ spin_up

bool Skyscraper::Skyscraper::spin_up
protected

Definition at line 147 of file skyscraper.h.

◆ startscreen

StartScreen* Skyscraper::Skyscraper::startscreen
private

Definition at line 179 of file skyscraper.h.

◆ startscreen_loaded

bool Skyscraper::Skyscraper::startscreen_loaded
private

Definition at line 155 of file skyscraper.h.

◆ StartupRunning

bool Skyscraper::Skyscraper::StartupRunning

Definition at line 78 of file skyscraper.h.

◆ step_backward

bool Skyscraper::Skyscraper::step_backward
protected

Definition at line 150 of file skyscraper.h.

◆ step_forward

bool Skyscraper::Skyscraper::step_forward
protected

Definition at line 150 of file skyscraper.h.

◆ strafe_left

bool Skyscraper::Skyscraper::strafe_left
protected

Definition at line 145 of file skyscraper.h.

◆ strafe_right

bool Skyscraper::Skyscraper::strafe_right
protected

Definition at line 145 of file skyscraper.h.

◆ turn_left

bool Skyscraper::Skyscraper::turn_left
protected

Definition at line 148 of file skyscraper.h.

◆ turn_right

bool Skyscraper::Skyscraper::turn_right
protected

Definition at line 148 of file skyscraper.h.

◆ Verbose

bool Skyscraper::Skyscraper::Verbose

Definition at line 82 of file skyscraper.h.

◆ vm

VM* Skyscraper::Skyscraper::vm
private

Definition at line 171 of file skyscraper.h.

◆ window

MainScreen* Skyscraper::Skyscraper::window

Definition at line 140 of file skyscraper.h.

◆ wireframe

int Skyscraper::Skyscraper::wireframe

Definition at line 84 of file skyscraper.h.


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