summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-14 13:50:25 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-14 13:50:25 +0000
commit976b4da70227ab97607c51be05a20f4ecfca9325 (patch)
treed77bfb869b6337f1747b34e8f053f3acddbc4b54 /src/resources
parent5a1007fa3e827c03bb86db71cb26dfd4c485f28d (diff)
downloadmana-client-976b4da70227ab97607c51be05a20f4ecfca9325.tar.gz
mana-client-976b4da70227ab97607c51be05a20f4ecfca9325.tar.bz2
mana-client-976b4da70227ab97607c51be05a20f4ecfca9325.tar.xz
mana-client-976b4da70227ab97607c51be05a20f4ecfca9325.zip
Removed 9 cases of load_bitmap.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/resourcemanager.cpp6
-rw-r--r--src/resources/resourcemanager.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 1d65538f..3a7b3897 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -69,7 +69,7 @@ ResourceManager::~ResourceManager()
#endif
}
-Resource* ResourceManager::create(const E_RESOURCE_TYPE &type,
+Resource* ResourceManager::get(const E_RESOURCE_TYPE &type,
const std::string &idPath)
{
// Check if the id exists, and return the value if it does.
@@ -157,9 +157,9 @@ Resource* ResourceManager::create(const E_RESOURCE_TYPE &type,
return resource;
}
-Image *ResourceManager::createImage(const std::string &idPath)
+Image *ResourceManager::getImage(const std::string &idPath)
{
- return (Image*)create(IMAGE, idPath);
+ return (Image*)get(IMAGE, idPath);
}
ResourceManager* ResourceManager::getInstance()
diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h
index f7b7ab2a..1b719b41 100644
--- a/src/resources/resourcemanager.h
+++ b/src/resources/resourcemanager.h
@@ -78,14 +78,14 @@ class ResourceManager
* @return A valid resource or <code>NULL</code> if the resource could
* not be loaded.
*/
- Resource *create(
+ Resource *get(
const E_RESOURCE_TYPE &type,
const std::string &idPath);
/**
* Convenience wrapper around ResourceManager::create.
*/
- Image *createImage(const std::string &idPath);
+ Image *getImage(const std::string &idPath);
/**
* Returns an instance of the class, creating one if it does not