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  {
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 }
These have to be in this order.
Definition: BaseComponent.h:12
std::string name
Definition: Component.h:21
void FrameMove(double fTime) override
this is a generic unimplemented component framemove, eventually make a pure virtual function...
Definition: Real.cpp:5
void Log(const char *msg, Level level=Info, int errorCode=0)
These have to be in this order.
Definition: Logger.cpp:16
Logger * logger
Definition: Component.h:15