Monaldinio
Prince
As can be seen from the title , I would like to copy the <TechReveal> xml Tag and his fuction from the BonusInfo.xml to the FeatureInfos.xml
I have defined the XML tag in the CvInfo.cpp and .h
I have this function in CvPlot.cpp
After compiling i get this error mesage
1>CvPlot.cpp(6016) : error C2511: 'FeatureTypes CvPlot::getFeatureType(TeamTypes) const' : overloaded member function not found in 'CvPlot'
1> c:\Users\Martin\Desktop\Civ\CIV 4\Civ 4 Kram\28.08.2015 NEUE DLL COC\CvGameCoreDLL\CvPlot.h(41) : see declaration of 'CvPlot'
1>NMAKE : warning U4010: 'Release\CvPlot.obj' : build failed; /K specified, continuing ...
So i have a look to the CvPlot.h...and look for this funktion, but only find this
DllExport FeatureTypes getFeatureType() const;
(For comparison, the bonus function
)
Can I change the function in this way ?
I have defined the XML tag in the CvInfo.cpp and .h
I have this function in CvPlot.cpp
Code:
FeatureTypes CvPlot::getFeatureType(TeamTypes eTeam) const
{
if (eTeam != NO_TEAM)
{
if (m_eFeatureType != NO_FEATURE)
{
if (!GET_TEAM(eTeam).isHasTech((TechTypes)(GC.getFeatureInfo((FeatureTypes)m_eFeatureType).getTechReveal())))
{
return NO_FEATURE;
}
}
}
return (FeatureTypes)m_eFeatureType;
}
After compiling i get this error mesage
1>CvPlot.cpp(6016) : error C2511: 'FeatureTypes CvPlot::getFeatureType(TeamTypes) const' : overloaded member function not found in 'CvPlot'
1> c:\Users\Martin\Desktop\Civ\CIV 4\Civ 4 Kram\28.08.2015 NEUE DLL COC\CvGameCoreDLL\CvPlot.h(41) : see declaration of 'CvPlot'
1>NMAKE : warning U4010: 'Release\CvPlot.obj' : build failed; /K specified, continuing ...
So i have a look to the CvPlot.h...and look for this funktion, but only find this
DllExport FeatureTypes getFeatureType() const;
(For comparison, the bonus function
Code:
DllExport BonusTypes getBonusType(TeamTypes eTeam = NO_TEAM) const;
Can I change the function in this way ?
Code:
DllExport FeatureTypes getFeatureType(TeamTypes eTeam = NO_TEAM) const;