Coder Social home page Coder Social logo

Comments (8)

crankycyclops avatar crankycyclops commented on June 26, 2024

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.)

from trogdor.

crankycyclops avatar crankycyclops commented on June 26, 2024

I've got the data structures implemented.

from trogdor.

crankycyclops avatar crankycyclops commented on June 26, 2024

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.

from trogdor.

crankycyclops avatar crankycyclops commented on June 26, 2024

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.

from trogdor.

crankycyclops avatar crankycyclops commented on June 26, 2024

Dropping objects is a success!

from trogdor.

crankycyclops avatar crankycyclops commented on June 26, 2024

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

from trogdor.

crankycyclops avatar crankycyclops commented on June 26, 2024

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

from trogdor.

crankycyclops avatar crankycyclops commented on June 26, 2024

Done with actionLook. Closing this out!

from trogdor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.