Search:

Type: Posts; User: Junky

Search: Search took 0.10 seconds.

  1. Replies
    4
    Views
    2,629

    Re: Text Based Adventure Game (Inventory related)

    public void pickUp(Item item, Location location) {
    // code for other checks
    if item equals bag {
    inventory size increased;
    }

    How you determine if item equals bag is up to you and will...
  2. Replies
    4
    Views
    2,629

    Re: Text Based Adventure Game (Inventory related)

    The first thing you would need to do is test if the item picked up was the "bag". If it was then increase the inventory size.
Results 1 to 2 of 2