2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
#include "Creature.h"
|
2026-03-03 03:04:10 +08:00
|
|
|
#include "EntitySelector.h"
|
2026-03-01 12:16:08 +08:00
|
|
|
|
|
|
|
|
class Enemy : public Creature
|
|
|
|
|
{
|
|
|
|
|
public:
|
2026-03-03 03:04:10 +08:00
|
|
|
class EnemyEntitySelector : public EntitySelector
|
|
|
|
|
{
|
|
|
|
|
bool matches(shared_ptr<Entity> entity) const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const int XP_REWARD_NONE = 0;
|
|
|
|
|
static const int XP_REWARD_SMALL = 3;
|
|
|
|
|
static const int XP_REWARD_MEDIUM = 5;
|
|
|
|
|
static const int XP_REWARD_LARGE = 10;
|
|
|
|
|
static const int XP_REWARD_HUGE = 20;
|
|
|
|
|
static const int XP_REWARD_BOSS = 50;
|
|
|
|
|
|
|
|
|
|
static EntitySelector *ENEMY_SELECTOR;
|
2026-03-01 12:16:08 +08:00
|
|
|
};
|