[Gcblue-commits] gcb_wx/src/scriptinterface tcPlatformInterface.cpp,1.53,1.54 tcPlatformInterfaceExt
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-12-08 23:28:08
|
Update of /cvsroot/gcblue/gcb_wx/src/scriptinterface In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29232/src/scriptinterface Modified Files: tcPlatformInterface.cpp tcPlatformInterfaceExtensionB.cpp Log Message: Index: tcPlatformInterface.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/scriptinterface/tcPlatformInterface.cpp,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** tcPlatformInterface.cpp 27 Nov 2005 22:21:29 -0000 1.53 --- tcPlatformInterface.cpp 8 Dec 2005 23:27:55 -0000 1.54 *************** *** 807,810 **** --- 807,825 ---- } + unsigned int tcPlatformInterface::GetCurrentWaypoint() const + { + if (mpPlatformObj->IsClientMode()) return 0; + + ai::Brain* brain = mpPlatformObj->GetBrain(); + wxASSERT(brain); + + ai::Nav* nav = brain->GetNavTask(); + if (!nav) return 0; + wxASSERT(nav); + + return nav->GetCurrentWaypoint(); + + } + void tcPlatformInterface::SetNavLoopState(bool state) { Index: tcPlatformInterfaceExtensionB.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/scriptinterface/tcPlatformInterfaceExtensionB.cpp,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** tcPlatformInterfaceExtensionB.cpp 27 Nov 2005 22:21:29 -0000 1.27 --- tcPlatformInterfaceExtensionB.cpp 8 Dec 2005 23:27:55 -0000 1.28 *************** *** 111,114 **** --- 111,115 ---- .def("AddNavWaypoint", &tcPlatformInterface::AddNavWaypoint) .def("EditNavWaypoint", &tcPlatformInterface::EditNavWaypoint) + .def("GetCurrentWaypoint", &tcPlatformInterface::GetCurrentWaypoint) .def("SetNavLoopState", &tcPlatformInterface::SetNavLoopState) .def("AddTask", &tcPlatformInterface::AddTask) |