Positioned support for adding user waypoints.
This commit is contained in:
parent
5755b7ae0e
commit
e1555ba9a5
2 changed files with 8 additions and 0 deletions
|
@ -460,6 +460,12 @@ FGPositioned::~FGPositioned()
|
|||
removeFromIndices(this);
|
||||
}
|
||||
|
||||
FGPositioned*
|
||||
FGPositioned::createUserWaypoint(const std::string& aIdent, const SGGeod& aPos)
|
||||
{
|
||||
return new FGPositioned(WAYPOINT, aIdent, aPos, true);
|
||||
}
|
||||
|
||||
SGBucket
|
||||
FGPositioned::bucket() const
|
||||
{
|
||||
|
|
|
@ -209,6 +209,8 @@ public:
|
|||
* Map a type to a human-readable string
|
||||
*/
|
||||
static const char* nameForType(Type aTy);
|
||||
|
||||
static FGPositioned* createUserWaypoint(const std::string& aIdent, const SGGeod& aPos);
|
||||
protected:
|
||||
|
||||
FGPositioned(Type ty, const std::string& aIdent, const SGGeod& aPos, bool aIndex = true);
|
||||
|
|
Loading…
Reference in a new issue