[ create a new paste ] login | about

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

C++, pasted on Apr 10:
#ifndef GAMELOGIC_H
#define GAMELOGIC_H

#include "GameLogicData.h"
#include "GameLogicMotion.h"
#include "GameLogicAttack.h"
#include "GameLogicIntellect.h"
#include "../Play/GamePlay.h"

#define ITEM_SEARCH 0
#define ITEM_BARRICADE 1
#define ITEM_KEY 2

#define ZOMBIE 0
#define HUMAN  1

class GameLogic : public GamePlay
{
public:
	GameLogic(QString mod, int countHumans, int coeffZombie, bool autoZombie);
	virtual void startTurn(GameTeam *team);
	virtual void updateUnitItem(GameUnit *unit);
	virtual bool moveUnit(GameUnit *unit, int xCell, int yCell);
	virtual void moveItem(GameUnit *active, GameUnit *passive);
	virtual void enemyInteraction(GameUnit *active, GameUnit *passive);
	virtual void teamInteraction (GameUnit *active, GameUnit *passive);
	virtual void itemInteraction (GameUnit *unit,   GameItem *item   );

private:
	GameLogicData data;
	GameLogicMotion motion;
	GameLogicAttack attack;
	GameLogicIntellect intellect;

	int countHumans;
	int coeffZombie;
	bool autoZombie;

	int countSearchItems;
	int findItems;

	void createText(GameUnit *unit);
	void createZombie(bool random=false);
	void createHuman(int idPixmap);
	void createSearch();

	GameUnitItem *findUnitItem(GameUnit *unit, QString itemName);
	int distance(int  x1, int  y1, int x2, int y2);
};

#endif // GAMELOGIC_H


Output:
1
2
3
4
5
6
7
Line 26: error: GameLogicData.h: No such file or directory
Line 28: error: GameLogicMotion.h: No such file or directory
Line 28: error: GameLogicAttack.h: No such file or directory
Line 31: error: GameLogicIntellect.h: No such file or directory
Line 29: error: ../Play/GamePlay.h: No such file or directory
Line 18: error: expected class-name before '{' token
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: