aboutsummaryrefslogtreecommitdiffstats
path: root/include/inventory.h
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2015-11-30 08:49:20 -0500
committerdrumsetmonkey <abelleisle@roadrunner.com>2015-11-30 08:49:20 -0500
commitaf22d85f9a417a94ea75db1878219f8baeba8b73 (patch)
treec0564e39209b3e9acb8b65e98632b04c1828d55e /include/inventory.h
parent0415b7f0a9305cd43e8fd8c77a8bafd3b8016dd0 (diff)
parent45bca98b792f8ced1a57ef8c5beed2a90a79d47f (diff)
Working on animations
Diffstat (limited to 'include/inventory.h')
-rw-r--r--include/inventory.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/include/inventory.h b/include/inventory.h
index 3b4c260..2b402fc 100644
--- a/include/inventory.h
+++ b/include/inventory.h
@@ -52,19 +52,8 @@ public:
Texturec *tex;
GLuint text;
int count;
- Item(ITEM_ID i, char* n, ITEM_TYPE t, float w, float h, int m, char* tl):
- id(i), type(t), width(w), height(h), maxStackSize(m){
- count = 0;
- name = (char*)calloc(strlen(n )+1,sizeof(char));
- textureLoc = (char*)calloc(strlen(tl)+1,sizeof(char));
-
- strcpy(name,n);
- strcpy(textureLoc,tl);
-
- tex= new Texturec(1,textureLoc);
- text = Texture::loadTexture(textureLoc);
- }
+ Item(ITEM_ID i, const char *n, ITEM_TYPE t, float w, float h, int m, const char *tl);
GLuint rtex(){
return tex->image[0];
}
@@ -108,5 +97,6 @@ public:
};
void itemUse(void *p);
+char *getItemTexturePath(ITEM_ID id);
#endif // INVENTORY_H