Skip to content
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.

Add an inventory (noun step 3) #5

Closed
crankycyclops opened this issue Nov 3, 2012 · 8 comments
Closed

Add an inventory (noun step 3) #5

crankycyclops opened this issue Nov 3, 2012 · 8 comments
Assignees
Milestone

Comments

@crankycyclops
Copy link
Owner

Add a listable inventory to keep track of objects the user owns.

@crankycyclops
Copy link
Owner Author

Can break this down into three tasks:

  1. The inventory data structure itself (just a GList of picked up objects -- GList because, if we drop an object, we need to be able to quickly dump it from the list; don't use GArray!)

  2. Fill in pick up command so that it removes the object from the room and places it in the user's inventory

  3. Create commands to interact with objects (looking, dropping -- putting back in room, etc.)

@ghost ghost assigned crankycyclops Nov 9, 2012
@crankycyclops
Copy link
Owner Author

I've got the data structures implemented.

@crankycyclops
Copy link
Owner Author

Finished writing code to disambiguate between objects with the same names (due to synonyms.) I now have a stub function which will soon handle removing the object from the room when we pick it up.

@crankycyclops
Copy link
Owner Author

looking at object should operate on both inventory and room items. Dropping an item should only operate on inventory items. Taking an item has already been implemented (almost) and only operates on objects in the room.

@crankycyclops
Copy link
Owner Author

Dropping objects is a success!

@crankycyclops
Copy link
Owner Author

Added command to list objects in a user's inventory.

@crankycyclops
Copy link
Owner Author

All i have left before I can close this ticket is to implement the look command for objects (look currently only works for rooms.)

@crankycyclops
Copy link
Owner Author

Done with actionLook. Closing this out!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant