1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#ifndef ENEMY_H
#define ENEMY_H
struct Enemy;
#include <SFML\Graphics.hpp>
#include "Include.h"
#include "item.h"
#include "player.h"
#include "creature.h"
struct Enemy : public Creature
{
Enemy(int Atk, int Def, int Health, int x, int y, std::string Alive, std::string Combat, int Level, std::string Name);
Enemy(int Atk, int Def, int Health, std::string Combat, int Level, std::string Name);
~Enemy();
//...
struct Loot
{
Loot(Item* Item, int Chance) : Item(Item), Chance(Chance) {}
int Chance;
Item* Item;
};
std::vector<Loot> Loot;
};
#endif
|