small cleanup to vivian's patch
This commit is contained in:
parent
3922c12163
commit
582a95f0cb
6 changed files with 29 additions and 17 deletions
|
@ -2729,6 +2729,13 @@
|
|||
<File
|
||||
RelativePath="..\..\src\AIModel\AICarrier.hxx">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\AIModel\AIEscort.cxx">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\AIModel\AIEscort.hxx">
|
||||
</File>
|
||||
|
||||
<File
|
||||
RelativePath="..\..\src\AIModel\AIFlightPlan.cxx">
|
||||
</File>
|
||||
|
|
|
@ -3901,6 +3901,14 @@
|
|||
RelativePath="..\..\..\src\AIModel\AICarrier.hxx"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\src\AIModel\AIEscort.cxx"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\src\AIModel\AIEscort.hxx"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\src\AIModel\AIFlightPlan.cxx"
|
||||
>
|
||||
|
|
|
@ -39,6 +39,8 @@
|
|||
|
||||
#include "AIEscort.hxx"
|
||||
|
||||
using std::string;
|
||||
|
||||
FGAIEscort::FGAIEscort() :
|
||||
FGAIShip(otEscort),
|
||||
|
||||
|
|
|
@ -26,9 +26,6 @@
|
|||
|
||||
#include <simgear/compiler.h>
|
||||
|
||||
using std::string;
|
||||
using std::list;
|
||||
|
||||
#include "AIBase.hxx"
|
||||
|
||||
#include "AIShip.hxx"
|
||||
|
@ -53,7 +50,7 @@ private:
|
|||
virtual void reinit() { init(); }
|
||||
virtual void update (double dt);
|
||||
|
||||
void setParentName(const string& p);
|
||||
void setParentName(const std::string& p);
|
||||
void setParent();
|
||||
void setStnRange(double r);
|
||||
void setStnBrg(double y);
|
||||
|
@ -102,7 +99,7 @@ private:
|
|||
|
||||
bool _MPControl, _patrol, _stn_deg_true;
|
||||
|
||||
string _parent;
|
||||
std::string _parent;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -73,16 +73,16 @@ static const char *DEFAULT_FONT = "typewriter.txf";
|
|||
|
||||
|
||||
wxRadarBg::wxRadarBg(SGPropertyNode *node) :
|
||||
_name(node->getStringValue("name", "radar")),
|
||||
_num(node->getIntValue("number", 0)),
|
||||
_interval(node->getDoubleValue("update-interval-sec", 1.0)),
|
||||
_time(0.0),
|
||||
_sim_init_done(false),
|
||||
_odg(0),
|
||||
_last_switchKnob("off"),
|
||||
_resultTexture(0),
|
||||
_wxEcho(0),
|
||||
_antenna_ht(node->getDoubleValue("antenna-ht-ft", 0.0))
|
||||
_name(node->getStringValue("name", "radar")),
|
||||
_num(node->getIntValue("number", 0)),
|
||||
_interval(node->getDoubleValue("update-interval-sec", 1.0)),
|
||||
_time(0.0),
|
||||
_sim_init_done(false),
|
||||
_odg(0),
|
||||
_last_switchKnob("off"),
|
||||
_resultTexture(0),
|
||||
_wxEcho(0),
|
||||
_antenna_ht(node->getDoubleValue("antenna-ht-ft", 0.0))
|
||||
{
|
||||
string branch;
|
||||
branch = "/instrumentation/" + _name;
|
||||
|
|
|
@ -33,11 +33,9 @@
|
|||
#include <simgear/environment/visual_enviro.hxx>
|
||||
|
||||
#include <vector>
|
||||
#include <queue>
|
||||
#include <string>
|
||||
|
||||
using std::vector;
|
||||
using std::queue;
|
||||
using std::string;
|
||||
|
||||
class FGODGauge;
|
||||
|
|
Loading…
Add table
Reference in a new issue