Files
maszyna/AirCoupler.h
Kamil Lewan 3fe968544a TAirCoupler - partial refactor
- rename private members
 - refactor TAirCoupler::GetStatus()
 - add some English comments

 - add 'doc/' in .gitingore

TODO:
 - rename arguments when refactor other files (as TModel3d, cParser).
2017-10-26 20:32:40 +02:00

52 lines
984 B
C++

/*
This Source Code Form is subject to the
terms of the Mozilla Public License, v.
2.0. If a copy of the MPL was not
distributed with this file, You can
obtain one at
http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include "Model3d.h"
#include "parser.h"
class TAirCoupler
{
private:
// TButtonType eType; //?
TSubModel *ModelOn, *ModelOff, *ModelxOn;
bool On;
bool xOn;
void Update();
public:
TAirCoupler();
~TAirCoupler();
void Clear();
void Init(std::string const &asName, TModel3d *Model);
void Load(cParser *Parser, TModel3d *Model);
// inline bool Active() { if ((ModelOn)||(ModelOff)) return true; return false;};
int GetStatus();
inline void TurnOn()
{
On = true;
xOn = false;
Update();
};
inline void TurnOff()
{
On = false;
xOn = false;
Update();
};
inline void TurnxOn()
{
On = false;
xOn = true;
Update();
};
};