Avionics
Dropship Simulator
Real.cpp
Go to the documentation of this file.
1
#include "
Component.h
"
2
3
namespace
Systems
4
{
5
void
Real::FrameMove
(
double
)
6
{
7
if
(
currentState
!=
setState
)
8
{
10
currentState
=
setState
;
11
13
14
char
msg[99];
15
if
(
setState
!= -999.0f)
16
sprintf_s(msg, 99,
"Real->FrameMove->%s setState changed: %f"
,
name
.c_str(),
setState
);
17
else
18
sprintf_s(msg, 99,
"Real->FrameMove->%s setState changed: NAN"
,
name
.c_str());
19
logger
->
Log
(msg, Logger::Level::Info);
20
}
21
}
22
}
Systems::Component::currentState
float currentState
Definition:
Component.h:52
Systems::Component::setState
float setState
Definition:
Component.h:51
Systems
These have to be in this order.
Definition:
BaseComponent.h:12
Systems::Component::name
std::string name
Definition:
Component.h:21
Systems::Real::FrameMove
void FrameMove(double fTime) override
this is a generic unimplemented component framemove, eventually make a pure virtual function...
Definition:
Real.cpp:5
Component.h
Logger::Log
void Log(const char *msg, Level level=Info, int errorCode=0)
These have to be in this order.
Definition:
Logger.cpp:16
Systems::Component::logger
Logger * logger
Definition:
Component.h:15
Real.cpp
Generated on Sat Feb 13 2021 09:30:43 for Avionics by
1.8.14