Rise
The Vieneo Province
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< Messagemessages
 
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]
 
Loggerlogger = nullptr
 
Soundsound = nullptr
 

Additional Inherited Members

- Protected Attributes inherited from Module
Busbus
 

Detailed Description

Definition at line 149 of file Module.h.

Constructor & Destructor Documentation

◆ Cas()

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

Definition at line 4 of file CAS.cpp.

Member Function Documentation

◆ AcknowledgeAllMessages()

void Cas::AcknowledgeAllMessages ( ) const
private

Definition at line 331 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 376 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:
hard-coded for now, what should it really be based off of?
Todo:
need to add a warning for if they take off (in an air vehicle)

Implements Module.

Definition at line 10 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 340 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 360 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 158 of file Module.h.

◆ evaluating

int Cas::evaluating = 0
private

Definition at line 154 of file Module.h.

◆ inhibit

bool Cas::inhibit = false
private

Definition at line 155 of file Module.h.

◆ logger

Logger* Cas::logger = nullptr
private

Definition at line 161 of file Module.h.

◆ messages

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

Definition at line 151 of file Module.h.

◆ secsincelast

float Cas::secsincelast = -2.0f
private

Definition at line 153 of file Module.h.

◆ sound

Sound* Cas::sound = nullptr
private

Definition at line 162 of file Module.h.

◆ temporaryMessage

WCHAR Cas::temporaryMessage[99]
private

Definition at line 159 of file Module.h.

◆ weightOffWheelsTime

float Cas::weightOffWheelsTime = 0.0f
private

Definition at line 156 of file Module.h.

◆ weightOnWheelsTime

float Cas::weightOnWheelsTime = 0.0f
private

Definition at line 157 of file Module.h.


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