Rise
The Vieneo Province
Loading...
Searching...
No Matches
Cas Class Reference

#include <Module.h>

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

Public Member Functions

 Cas (Bus *prmBus, Logger *prmLogger, Sound *prmSound)
void FrameMove (float fElapsedTime) override
Public Member Functions inherited from Module
 Module (Bus *prmBus)
virtual ~Module ()=default

Private Member Functions

void AcknowledgeAllMessages () const
bool IsMessageOnStack (std::wstring text, MessageLevel level, bool renew) const
bool RemoveMessage (const std::wstring &text, bool onlyIfAcknowledged=false) const
bool AddMessage (const std::wstring &text, MessageLevel level, bool renew)

Private Attributes

std::vector< Message > messages
float secsincelast = -2.0f
int evaluating = 0
bool inhibit = false
float weightOffWheelsTime = 0.0f
float weightOnWheelsTime = 0.0f
float below400Time = 0.0f
WCHAR temporaryMessage [99]
Logger * logger = nullptr
Sound * sound = nullptr

Additional Inherited Members

Public Attributes inherited from Module
float maxFrameSeconds = 0
Protected Attributes inherited from Module
Bus * bus

Detailed Description

Definition at line 203 of file Module.h.

Constructor & Destructor Documentation

◆ Cas()

Cas::Cas ( Bus * prmBus,
Logger * prmLogger,
Sound * prmSound )

Definition at line 5 of file CAS.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ AcknowledgeAllMessages()

void Cas::AcknowledgeAllMessages ( ) const
private

Definition at line 502 of file CAS.cpp.

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

◆ AddMessage()

bool Cas::AddMessage ( const std::wstring & text,
MessageLevel level,
bool renew = true )
private

Definition at line 547 of file CAS.cpp.

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

◆ FrameMove()

void Cas::FrameMove ( float fElapsedTime)
overridevirtual
Todo
we could probably make it wait 2 seconds as long as last frame didn't add/remove anything
Todo
need to add a warning for if they take off (in an air vehicle)

Implements Module.

Definition at line 11 of file CAS.cpp.

Here is the call graph for this function:

◆ IsMessageOnStack()

bool Cas::IsMessageOnStack ( std::wstring text,
MessageLevel level,
bool renew ) const
private

Definition at line 511 of file CAS.cpp.

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

◆ RemoveMessage()

bool Cas::RemoveMessage ( const std::wstring & text,
bool onlyIfAcknowledged = false ) const
private

Definition at line 531 of file CAS.cpp.

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

Member Data Documentation

◆ below400Time

float Cas::below400Time = 0.0f
private

Definition at line 212 of file Module.h.

◆ evaluating

int Cas::evaluating = 0
private

Definition at line 208 of file Module.h.

◆ inhibit

bool Cas::inhibit = false
private

Definition at line 209 of file Module.h.

◆ logger

Logger* Cas::logger = nullptr
private

Definition at line 215 of file Module.h.

◆ messages

std::vector<Message> Cas::messages
private

Definition at line 205 of file Module.h.

◆ secsincelast

float Cas::secsincelast = -2.0f
private

Definition at line 207 of file Module.h.

◆ sound

Sound* Cas::sound = nullptr
private

Definition at line 216 of file Module.h.

◆ temporaryMessage

WCHAR Cas::temporaryMessage[99]
private

Definition at line 213 of file Module.h.

◆ weightOffWheelsTime

float Cas::weightOffWheelsTime = 0.0f
private

Definition at line 210 of file Module.h.

◆ weightOnWheelsTime

float Cas::weightOnWheelsTime = 0.0f
private

Definition at line 211 of file Module.h.


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