Update of /cvsroot/gcblue/gcb_wx/include/scriptinterface
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6732/include/scriptinterface
Modified Files:
tcPlatformInterface.h tcSimPythonInterface.h
Log Message:
- Added waypoint drag edit feature to gui. User can adjust waypoints on
map screen by clicking and dragging
- Fixed sound disable to include music. Previously sound failure would disable
sound effects, but then play music leading to a crash.
- Added random feature targeting to missiles. Missiles should now lock on
to a random feature of the target instead of always hitting the center.
Index: tcPlatformInterface.h
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/include/scriptinterface/tcPlatformInterface.h,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** tcPlatformInterface.h 10 Sep 2005 21:48:06 -0000 1.45
--- tcPlatformInterface.h 27 Nov 2005 22:21:28 -0000 1.46
***************
*** 244,247 ****
--- 244,249 ----
/// adds navigation waypoint (creates nav task if necessary)
void AddNavWaypoint(float afLon_rad, float afLat_rad);
+ /// edits existing navigation waypoint
+ void EditNavWaypoint(size_t idx, float afLon_rad, float afLat_rad);
/// true to loop through waypoints indefinitely
void SetNavLoopState(bool state);
Index: tcSimPythonInterface.h
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/include/scriptinterface/tcSimPythonInterface.h,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** tcSimPythonInterface.h 2 Jul 2005 16:51:09 -0000 1.28
--- tcSimPythonInterface.h 27 Nov 2005 22:21:28 -0000 1.29
***************
*** 1,4 ****
! /*
! ** Copyright (C) 2003 Dewitt Colclough (de...@tw...)
** All rights reserved.
--- 1,6 ----
! /**
! ** @file tcSimPythonInterface.h
! */
! /* Copyright (C) 2003 Dewitt Colclough (de...@tw...)
** All rights reserved.
***************
*** 27,33 ****
// Python interface to tcPlatformObject for scripting
#include "wx/wx.h"
! #ifdef WIN32
! #include "wx/msw/private.h" // for MS Windows specific definitions
! #endif // WIN32
#include "tcPythonInterface.h"
#include "tcPlatformObject.h"
--- 29,33 ----
// Python interface to tcPlatformObject for scripting
#include "wx/wx.h"
!
#include "tcPythonInterface.h"
#include "tcPlatformObject.h"
***************
*** 123,128 ****
tcScenarioInterface* GetScenarioInterface() const;
void LoadScenario(const char *filePath, const char *fileName); ///< loads scenario from Python script file
! void ProcessCommand(std::string command, const std::vector<long>& id,
int param = -1, std::string textParam = "");
void ProcessCallback(std::string command, const std::vector<long>& id);
void ProcessCallback(std::string command, const std::vector<long>& id,
--- 123,130 ----
tcScenarioInterface* GetScenarioInterface() const;
void LoadScenario(const char *filePath, const char *fileName); ///< loads scenario from Python script file
! void ProcessCommand(const std::string& command, const std::vector<long>& id,
int param = -1, std::string textParam = "");
+ void ProcessCommandWithArguments(const std::string& command, const std::vector<long>& id,
+ const std::string& argString);
void ProcessCallback(std::string command, const std::vector<long>& id);
void ProcessCallback(std::string command, const std::vector<long>& id,
|