[Gcblue-commits] gcb_wx/src/scriptinterface tcPlatformInterface.cpp, 1.62, 1.63 tcScenarioInterface
Status: Alpha
Brought to you by:
ddcforge
From: Dewitt C. <ddc...@us...> - 2006-08-27 21:28:57
|
Update of /cvsroot/gcblue/gcb_wx/src/scriptinterface In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv21970/src/scriptinterface Modified Files: tcPlatformInterface.cpp tcScenarioInterface.cpp Log Message: Added attributes (hidden and permanent) to AI tasks so that automation tasks can be hidden and not distract player Index: tcPlatformInterface.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/scriptinterface/tcPlatformInterface.cpp,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** tcPlatformInterface.cpp 17 Aug 2006 01:28:04 -0000 1.62 --- tcPlatformInterface.cpp 27 Aug 2006 21:28:54 -0000 1.63 *************** *** 815,819 **** ! void tcPlatformInterface::AddTask(const std::string& taskName, double priority) { if (mpPlatformObj->IsClientMode()) return; --- 815,819 ---- ! void tcPlatformInterface::AddTask(const std::string& taskName, double priority, int attributes) { if (mpPlatformObj->IsClientMode()) return; *************** *** 822,826 **** wxASSERT(brain); ! brain->AddTask(taskName, priority); } --- 822,826 ---- wxASSERT(brain); ! brain->AddTask(taskName, priority, attributes); } Index: tcScenarioInterface.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/scriptinterface/tcScenarioInterface.cpp,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** tcScenarioInterface.cpp 17 Aug 2006 01:28:04 -0000 1.43 --- tcScenarioInterface.cpp 27 Aug 2006 21:28:54 -0000 1.44 *************** *** 457,461 **** */ void tcScenarioInterface::AddUnitTask(const std::string& unitName, const std::string& taskName, ! double priority) { wxASSERT(simState); --- 457,461 ---- */ void tcScenarioInterface::AddUnitTask(const std::string& unitName, const std::string& taskName, ! double priority, int attributes) { wxASSERT(simState); *************** *** 465,469 **** ai::Brain* brain = platform->GetBrain(); wxASSERT(brain); ! brain->AddTask(taskName, priority); } else --- 465,469 ---- ai::Brain* brain = platform->GetBrain(); wxASSERT(brain); ! brain->AddTask(taskName, priority, attributes); } else |