[Gcblue-commits] gcb_wx/src/scriptinterface tcPlatformInterface.cpp,1.33,1.34 tcScenarioInterface.cp
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-01-31 01:33:28
|
Update of /cvsroot/gcblue/gcb_wx/src/scriptinterface In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20374/src/scriptinterface Modified Files: tcPlatformInterface.cpp tcScenarioInterface.cpp Log Message: Moved launcher position to 3D model animation xml file Added tcGroundObject for ground SAM site Index: tcPlatformInterface.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/scriptinterface/tcPlatformInterface.cpp,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** tcPlatformInterface.cpp 11 Dec 2004 01:09:06 -0000 1.33 --- tcPlatformInterface.cpp 31 Jan 2005 01:33:08 -0000 1.34 *************** *** 1056,1063 **** } ! // may want to handle this through a single instance class in the future ! void tcPlatformInterface::PlaySound(int n) { ! tcSound::Get()->PlayEffect(n); } --- 1056,1066 ---- } ! /** ! * Modified to use string argument ! * May want to handle this through a single instance class in the future ! */ ! void tcPlatformInterface::PlaySound(const std::string& effect) { ! tcSound::Get()->PlayEffect(effect); } Index: tcScenarioInterface.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/scriptinterface/tcScenarioInterface.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** tcScenarioInterface.cpp 27 Jan 2005 01:01:52 -0000 1.16 --- tcScenarioInterface.cpp 31 Jan 2005 01:33:08 -0000 1.17 *************** *** 38,41 **** --- 38,42 ---- #include "tcGoal.h" #include "tcGoalTracker.h" + #include "tcGroundObject.h" #include "tcLauncher.h" #include "tcMapData.h" *************** *** 247,251 **** mapData->GetTerrainHeight(unit.lon, unit.lat, 0); } ! simState->AddPlatform(gameObj); --- 248,256 ---- mapData->GetTerrainHeight(unit.lon, unit.lat, 0); } ! if (tcGroundObject* groundObj = dynamic_cast<tcGroundObject*>(gameObj)) ! { ! groundObj->mcKin.mfAlt_m += ! mapData->GetTerrainHeight(unit.lon, unit.lat, 0); ! } simState->AddPlatform(gameObj); |