can't get setHasRealBuilding() to work

MatthewH86

Chieftain
Joined
Aug 25, 2007
Messages
44
Hey, I've used this code before and it's worked, but for some reason it refuses to now

Code:
CyGlobalContext().getMap().plot(75,60).getPlotCity().setHasRealBuilding(140,0)

The error given is

Code:
AttributeError: 'CyCity' object has no attribute 'setHasRealBuilding'

I tried setFood(1) to see if the city was being picked and it was, so I'm stumped.
 
That's because it's:

Code:
	int getNumRealBuilding(int /*BuildingTypes*/ iIndex);
	void setNumRealBuilding(int /*BuildingTypes*/ iIndex, int iNewValue);
 
That's cool, I usually find the C++ files more accurate (in this case CyGame.h) :D
 
Yeah, same here. From now on I'm sticking with Cy***Interface***.cpp, thanks for the heads up!
 
Back
Top Bottom