Ref T296, adding scenery offset as situation member plus utility functions

* frontOrNull/backOrNull
* added offset in model
* style/renaming
This commit is contained in:
Klaus Basan
2018-07-30 15:34:50 +02:00
parent 90df1e2521
commit c8fc50e787
11 changed files with 105 additions and 22 deletions

View File

@@ -19,8 +19,6 @@
#include "blackmisc/timestampobjectlist.h"
#include "blackmisc/variant.h"
#include <QMetaType>
namespace BlackMisc
{
namespace Aviation
@@ -42,6 +40,15 @@ namespace BlackMisc
//! Construct from initializer list.
CAircraftSituationChangeList(std::initializer_list<CAircraftSituationChange> il);
//! Front or NULL
CAircraftSituationChange frontOrNull() const;
//! Back or NULL
CAircraftSituationChange backOrNull() const;
//! Index or NULL
CAircraftSituationChange indexOrNull(int index) const;
};
//! Change per callsign