summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-05-15 18:06:32 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-05-15 18:06:32 +0000
commit1ffc3a7cdaa6c54dceb18bfdc56032335b2cfcd9 (patch)
treecb6d48cd9fda7250ad1890fe176341e3ff9cbf2e /src/engine.cpp
parent996bbf90c635cdbee895180857b3c9c929170c56 (diff)
downloadmana-1ffc3a7cdaa6c54dceb18bfdc56032335b2cfcd9.tar.gz
mana-1ffc3a7cdaa6c54dceb18bfdc56032335b2cfcd9.tar.bz2
mana-1ffc3a7cdaa6c54dceb18bfdc56032335b2cfcd9.tar.xz
mana-1ffc3a7cdaa6c54dceb18bfdc56032335b2cfcd9.zip
better monsterset management
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index e189558d..f01a19ed 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -36,8 +36,6 @@
#include "floor_item.h"
#include "gui/requesttrade.h"
-#define MONSTERS_NUMBER 8
-
char itemCurrenyQ[10] = "0";
int map_x, map_y, camera_x, camera_y;
char npc_text[1000] = "";
@@ -69,7 +67,7 @@ TradeWindow *tradeWindow;
RequestTradeDialog *requestTradeDialog;
ConfirmDialog *quitDialog;
BuddyWindow *buddyWindow;
-std::vector<Spriteset*> monsterset;
+std::map<int, Spriteset*> monsterset;
/**
* Listener used for exitting handling.
@@ -252,12 +250,6 @@ Engine::Engine()
emotionset = new Spriteset(emotionbmp, 19, 19);
weaponset = new Spriteset(weaponbitmap, 160, 120);
itemset = new Spriteset(itembitmap, 20, 20);
-
- // Loads all the monsters
- for (int i = 0; i < MONSTERS_NUMBER; i++)
- {
- monsterset.push_back(NULL);
- }
}
Engine::~Engine()