[Gcblue-commits] gcb_wx/include/scriptinterface tcScenarioInterface.h,1.17,1.18
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-05-08 23:28:12
|
Update of /cvsroot/gcblue/gcb_wx/include/scriptinterface In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17728/include/scriptinterface Modified Files: tcScenarioInterface.h Log Message: Landing bug fix, changed /gm create to require starting coords, added fuel to air update Index: tcScenarioInterface.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/scriptinterface/tcScenarioInterface.h,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** tcScenarioInterface.h 5 May 2005 02:14:19 -0000 1.17 --- tcScenarioInterface.h 8 May 2005 23:27:57 -0000 1.18 *************** *** 106,109 **** --- 106,110 ---- tcDatum GetRandomDatum(double lon, double lat, float min_alt, float max_alt, float rand_offset); + void GetStartTheater(double& lon_deg, double& lat_deg) const; void SetAllianceGoal(int alliance, tcGoal& goal); void SetDateTime(int year, int month, int day, int hour, int min, int sec); *************** *** 111,114 **** --- 112,116 ---- void SetScenarioLoaded(bool state); void SetScenarioName(std::string s); + void SetStartTheater(double lon_deg, double lat_deg); void SetUserAlliance(int alliance); *************** *** 145,148 **** --- 147,152 ---- void Text3D(const std::string& text, double duration, float x, float y, float size, int effect); + tcMapOverlay* GetMapOverlay() const; + // goal class creation methods (cannot find a way to do directly) tcCompoundGoal CompoundGoal(int type); *************** *** 155,159 **** // Interface class management methods static object GetInterface(); ! static void InitPythonClasses(void); static void AddGoalClasses(boost::python::dict *dictionary); static void AttachDirector(tcDirector *dir) {director = dir;} --- 159,163 ---- // Interface class management methods static object GetInterface(); ! static void InitPythonClasses(); static void AddGoalClasses(boost::python::dict *dictionary); static void AttachDirector(tcDirector *dir) {director = dir;} *************** *** 162,169 **** static void AttachSimState(tcSimState *apSS) {simState = apSS;} private: double eventTime; ///< start time for briefing event functions tcGameObject* lastObjectAdded; ///< last object added to sim ! static tcDirector* director; static tcMapData* mapData; --- 166,178 ---- static void AttachSimState(tcSimState *apSS) {simState = apSS;} + tcScenarioInterface(); + ~tcScenarioInterface(); + private: double eventTime; ///< start time for briefing event functions tcGameObject* lastObjectAdded; ///< last object added to sim ! double lon_theater_deg; ///< default starting longitude for theater ! double lat_theater_deg; ///< default starting latitude for theater ! static tcDirector* director; static tcMapData* mapData; |