src/ProductionManager.cpp
bool ProductionManager::meetsReservedResourcesWithExtra(const MetaType & type)
{
	assert("Addons cannot use extra ressources",m_bot.Data(type).isAddon);
	return (m_bot.Data(type).mineralCost <= getFreeMinerals() + getExtraMinerals()) && (m_bot.Data(type).gasCost <= getFreeGas() + getExtraGas());
}
// return whether or not we meet resources, including building reserves
return whether or not we meet resources, including building reserves
return whether or not we meet resources including building reserves
bool ProductionManager::meetsReservedResourcesWithExtra(const MetaType & type)
{
	assert("Addons cannot use extra ressources",m_bot.Data(type).isAddon);
	return (m_bot.Data(type).mineralCost <= getFreeMinerals() + getExtraMinerals()) && (m_bot.Data(type).gasCost <= getFreeGas() + getExtraGas());
}
bool ProductionManager :: meetsReservedResourcesWithExtra ( const MetaType & type ) { assert ( " " , m_bot . Data ( type ) . isAddon ) ; return ( m_bot . Data ( type ) . mineralCost <= getFreeMinerals ( ) + getExtraMinerals ( ) ) && ( m_bot . Data ( type ) . gasCost <= getFreeGas ( ) + getExtraGas ( ) ) ; }
return whether or not we meet resources, including building reserves
return whether or not we meet resources including building reserves