9 //Inventory::Inventory() {}
11 void Inventory::addObject( Object
*o
)
13 // assert( o->getLocation() == Object::LOC_FREE );
19 o
->setLocation( Object::LOC_INVENT
);
21 invent
.push_back( temp
);
24 Object
* Inventory::removeObject( invElement i
)
33 Object
* Inventory::removeObject( )
36 return removeObject( invent
.begin() );
40 void Inventory::Draw( Sint16 X
, Sint16 Y
)
45 for( invElement i
= invent
.begin(); i
!= invent
.end(); i
++, c
++ )
49 o
->getGraphic()->Draw( X
+ (c
*20), Y
);