aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Enemy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/Enemy.cpp')
-rw-r--r--Minecraft.World/Enemy.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/Minecraft.World/Enemy.cpp b/Minecraft.World/Enemy.cpp
index 25d1ad47..b9aa3e20 100644
--- a/Minecraft.World/Enemy.cpp
+++ b/Minecraft.World/Enemy.cpp
@@ -1,10 +1,9 @@
#include "stdafx.h"
#include "Enemy.h"
+EntitySelector *Enemy::ENEMY_SELECTOR = new Enemy::EnemyEntitySelector();
-
-const int Enemy::XP_REWARD_NONE = 0;
-const int Enemy::XP_REWARD_SMALL = 3;
-const int Enemy::XP_REWARD_MEDIUM = 5;
-const int Enemy::XP_REWARD_LARGE = 10;
-const int Enemy::XP_REWARD_HUGE = 20; \ No newline at end of file
+bool Enemy::EnemyEntitySelector::matches(shared_ptr<Entity> entity) const
+{
+ return (entity != NULL) && entity->instanceof(eTYPE_ENEMY);
+} \ No newline at end of file