View Single Post
Old Nov 30th, 2006, 9:24 PM   #25
aznballerlee
Hobbyist Programmer
 
Join Date: Nov 2006
Posts: 111
Rep Power: 2 aznballerlee is on a distinguished road
Actually, I don't know why I put these lines, they're completely wrong:
if (m_sources[m_nsources] = new EnergySource(r,c))
		m_energy = FULL_ENERGY;

Using this made no difference, still error:
if (EnergySource(m_row, m_col)

I also tried the accessor for the Valley class:
bool energySourceAt(int r, int c) const
//      If there is an energy source at coordinates (r,c), return true;
//      otherwise, return false.
{
	if (EnergySource(r,c))
		return true;
	else
		return false;
}

For this, I once again got compilation errors.

Last edited by aznballerlee; Nov 30th, 2006 at 9:40 PM.
aznballerlee is offline   Reply With Quote