Skip to content

[Feature Request] **Game-Objects** #80

@zacharyLYH

Description

@zacharyLYH

Is your feature request related to a problem? Please describe.

No.

Describe the solution you'd like

A GameObject class that would support the availability and storage of in-game objects such as Currency, Potions, and whatever a game developer would desire. The GameObject needs to have functions to pickUpObj, useObj, modifyUserProfileAfterUse, storeObj etc. It will also need a Bag type to store and allow efficient enumerations of GameObjects. This way, in-game objects can be trivially initialized and all relevant functions can be found in the GameObjects class.

Describe alternatives you've considered

We could implement all the in-game objects individually. However, its probably cleaner, easier to debug and logically simpler to channel all in-game objects into one GameObject class.

Additional context

One problem with a GameObject class is overgeneralization. Since most objects are different in terms of behavior to one another, there might be a need to index object types, for example, index 1 could represent currency, and index 2 could represent potions. In order to specify which type of object we're using (as an example), we might need to rely on the aforementioned indexing scheme, which is less elegant and throws off readability. However, there is probably a better way than what I suggested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions