repo.or.cz
/
sdlbotor.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Working LUA + objects + etc. :) :) :)
[sdlbotor.git]
/
Inventory.h
blob
5cc58bf11312b388f525235dbe47ddd09f48e880
1
#ifndef INVENTORY_H
2
#define INVENTORY_H
3
4
#include <vector>
5
#include
"Object.h"
6
7
namespace
botor
8
{
9
10
class
Object
;
11
12
struct
invent_t
13
{
14
Object
*
obj
;
15
unsigned int
count
;
16
};
17
18
class
Inventory
19
{
20
std
::
vector
<
invent_t
>
invent
;
21
22
typedef std
::
vector
<
invent_t
>::
iterator invElement
;
23
24
public
:
25
26
//Inventory();
27
28
void
addObject
(
Object
*
o
);
29
Object
*
removeObject
(
invElement i
);
30
Object
*
removeObject
( );
31
32
void
Draw
(
Sint16 X
,
Sint16 Y
);
33
34
};
35
36
}
37
38
#endif