Avionics
Dropship Simulator
Ase Class Reference

Adaptive Scenario Engine. More...

#include <Module.h>

Inheritance diagram for Ase:
[legend]
Collaboration diagram for Ase:
[legend]

Classes

struct  SCommand
 
struct  SStep
 
struct  SVocalware
 
struct  SVoice
 

Public Member Functions

 Ase (Bus *prmBus, Logger *prmLogger, int prmSoundDevice, SVocalware vocalware)
 
void Initialize (Devices::Bass *prmBass)
 
void FrameMove (float fElapsedTime) override
 
- Public Member Functions inherited from Module
 Module (Bus *prmBus)
 
virtual ~Module ()
 

Public Attributes

int soundDevice = -1
 

Private Member Functions

void LoadScenario (std::string path)
 
bool GenerateTextToSpeech (std::string url, UINT voice, std::string outputPath)
 
UINT FindStep (std::string stepName)
 
void AdvanceToNextStep ()
 

Private Attributes

UINT currentStep = 0
 
int subStep = 0
 
bool scenarioLoaded = false
 
float occupantControlAuthority = 0.0f
 
HSTREAM stream = 0
 
std::vector< SStepsteps
 
Busbus
 
Loggerlogger
 
Devices::Bassbass = nullptr
 
SVocalware vocalware
 

Additional Inherited Members

- Protected Attributes inherited from Module
Busbus
 

Detailed Description

Adaptive Scenario Engine.

Definition at line 260 of file Module.h.

Constructor & Destructor Documentation

◆ Ase()

Ase::Ase ( Bus prmBus,
Logger prmLogger,
int  prmSoundDevice,
SVocalware  vocalware 
)

Definition at line 15 of file ASE.cpp.

Member Function Documentation

◆ AdvanceToNextStep()

void Ase::AdvanceToNextStep ( )
private

Definition at line 282 of file ASE.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindStep()

UINT Ase::FindStep ( std::string  stepName)
private

Definition at line 474 of file ASE.cpp.

Here is the caller graph for this function:

◆ FrameMove()

void Ase::FrameMove ( float  fElapsedTime)
overridevirtual

so we need to watch for command to load scenario or abort the current scenario

deserialize XML scenario file and initialize

something to say

Implements Module.

Definition at line 34 of file ASE.cpp.

Here is the call graph for this function:

◆ GenerateTextToSpeech()

bool Ase::GenerateTextToSpeech ( std::string  url,
UINT  voice,
std::string  outputPath 
)
private

Definition at line 316 of file ASE.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Initialize()

void Ase::Initialize ( Devices::Bass prmBass)

Definition at line 23 of file ASE.cpp.

◆ LoadScenario()

void Ase::LoadScenario ( std::string  path)
private

had to do as dynamic char array because it wouldn't take a std::string

how to make this case-insensitive we need to add "0, true" to the end of the first_attribute call

FMS-Waypoints-Clear?

FMS-Waypoints-Add?

FMS-Waypoints-Add?

FMS-Waypoints-Add?

Definition at line 347 of file ASE.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ bass

Devices::Bass* Ase::bass = nullptr
private

Definition at line 325 of file Module.h.

◆ bus

Bus* Ase::bus
private

Definition at line 323 of file Module.h.

◆ currentStep

UINT Ase::currentStep = 0
private

Definition at line 281 of file Module.h.

◆ logger

Logger* Ase::logger
private

Definition at line 324 of file Module.h.

◆ occupantControlAuthority

float Ase::occupantControlAuthority = 0.0f
private

Definition at line 284 of file Module.h.

◆ scenarioLoaded

bool Ase::scenarioLoaded = false
private

Definition at line 283 of file Module.h.

◆ soundDevice

int Ase::soundDevice = -1

Definition at line 334 of file Module.h.

◆ steps

std::vector<SStep> Ase::steps
private

Definition at line 320 of file Module.h.

◆ stream

HSTREAM Ase::stream = 0
private

Definition at line 285 of file Module.h.

◆ subStep

int Ase::subStep = 0
private

Definition at line 282 of file Module.h.

◆ vocalware

SVocalware Ase::vocalware
private

Definition at line 326 of file Module.h.


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