Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. // This is the max ammount of itemtypes we can have on a player
  2. int playerBar[5][2]={} // don't know if the're initialised so here just in case {0,0,0,0,0}
  3. //playerBar[x][y] x = ItemSlotValue
  4. //playerBar[x][y] y = ItemCount
  5.  
  6. bool Player::addItem(int itemId){
  7. bool spaceForItem = false;// we will check if it is room in the inventory to place the item
  8. for(int itemSlot = 0 ;itemSlot <= 5)
  9. {
  10.  
  11. }
  12. return spaceForItem;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement