[Gcblue-commits] gcb_wx/src/database tcBallisticDBObject.cpp,1.9,1.10
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-03-25 03:48:16
|
Update of /cvsroot/gcblue/gcb_wx/src/database In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv349/src/database Modified Files: tcBallisticDBObject.cpp Log Message: OpenAL++ updates, added point defense Index: tcBallisticDBObject.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/database/tcBallisticDBObject.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** tcBallisticDBObject.cpp 31 Jan 2005 01:33:07 -0000 1.9 --- tcBallisticDBObject.cpp 25 Mar 2005 03:48:07 -0000 1.10 *************** *** 133,136 **** --- 133,141 ---- } + bool tcBallisticDBObject::IsPointDefense() const + { + return (ballisticType == POINT_DEFENSE); + } + void tcBallisticDBObject::PrintToFile(tcFile& file) { *************** *** 177,184 **** wxASSERT(node); ! //TiXmlElement* localNode = ! node->InsertEndChild(TiXmlElement("ballistic"))->ToElement(); ! //localNode->SetAttribute("maxRange_km" ,mfMaxRange_km); tcWeaponDBObject::SerializeXml(node, load); --- 182,189 ---- wxASSERT(node); ! TiXmlElement* localNode = ! node->InsertEndChild(TiXmlElement("ballistic"))->ToElement(); ! localNode->SetAttribute("maxRange_km", maxRange_km); tcWeaponDBObject::SerializeXml(node, load); *************** *** 204,208 **** columnString += ","; ! columnString += "BallisticType number(5)"; } --- 209,214 ---- columnString += ","; ! columnString += "BallisticType number(5),"; ! columnString += "MaxRange_km number(4)"; } *************** *** 212,215 **** --- 218,222 ---- ballisticType = entry.GetInt("BallisticType"); + maxRange_km = entry.GetDouble("MaxRange_km"); } *************** *** 222,226 **** s << ","; ! s << ballisticType; valueString += s.str(); --- 229,234 ---- s << ","; ! s << ballisticType << ","; ! s << maxRange_km; valueString += s.str(); |