[ create a new paste ] login | about

Link: http://codepad.org/4bUKwXYP    [ raw code | output | fork ]

C++, pasted on Apr 10:
GameLogic::GameLogic(QString mod, int countHumans, int coeffZombie,
					 bool autoZombie)
: data(mod)
, motion(&data)
, attack(this, &data, &motion)
, intellect(this, &data, &motion)
, countHumans(countHumans)
, coeffZombie(coeffZombie)
, autoZombie (autoZombie)

{
	setMapPixmapName(data.path+"map.png");
	setMapOptions(data.mapXSize, data.mapYSize, data.cellSize);

	findItems = 0;

	addTeam("Zombie");
	addTeam("Humans");

	for (int i=0; i<((countHumans*coeffZombie)/2); i++)
		createZombie(true);

	for (int i=0; i<countHumans; i++)
		createHuman(i+1);

	createSearch();

	chooseTeam(1);
}


Output:
1
2
Line 1: error: 'GameLogic' has not been declared
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: