[Gcblue-commits] gcb_wx/src/scriptinterface tcPlatformInterface.cpp,1.35,1.36
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-02-20 18:20:30
|
Update of /cvsroot/gcblue/gcb_wx/src/scriptinterface In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23561/src/scriptinterface Modified Files: tcPlatformInterface.cpp Log Message: Parallel ai update Index: tcPlatformInterface.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/scriptinterface/tcPlatformInterface.cpp,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** tcPlatformInterface.cpp 18 Feb 2005 17:41:51 -0000 1.35 --- tcPlatformInterface.cpp 20 Feb 2005 18:20:19 -0000 1.36 *************** *** 48,52 **** #include "tcLauncher.h" #include "tcStores.h" ! #ifdef _DEBUG --- 48,52 ---- #include "tcLauncher.h" #include "tcStores.h" ! #include "ai/Brain.h" #ifdef _DEBUG *************** *** 232,235 **** --- 232,245 ---- } + void tcPlatformInterface::SetTarget(long anID) + { + mpPlatformObj->DesignateTarget(anID); + } + + long tcPlatformInterface::GetTarget() + { + return mpPlatformObj->GetBrain()->GetTarget(); + } + float tcPlatformInterface::GetRangeToTarget() { *************** *** 567,572 **** bool tcPlatformInterface::HandoffTargetToLauncher(int anLauncher) { ! UINT32 nTargetID = mpPlatformObj->mcAI.mnTargetID; ! bool bAccept = mpSimState->DesignateLauncherTarget(mpPlatformObj->mnID,nTargetID,anLauncher); return bAccept; } --- 577,583 ---- bool tcPlatformInterface::HandoffTargetToLauncher(int anLauncher) { ! UINT32 nTargetID = mpPlatformObj->GetBrain()->GetTarget(); ! bool bAccept = mpSimState->DesignateLauncherTarget(mpPlatformObj->mnID, ! nTargetID, anLauncher); return bAccept; } |