Group_B_VirtualEscapeRoom
|
Utility functions to manipulate objects. More...
Go to the source code of this file.
Functions | |
bool | object_has_tag (OBJECT_t *obj, const char *arg) |
A function to return whether the user's argument has a matching tag. More... | |
OBJECT_t * | get_object (const char *arg) |
A function to scan through the object list to find a matching object. More... | |
Utility functions to manipulate objects.
This header file contains functions that define how to deal with user input arg
.
OBJECT_t* get_object | ( | const char * | arg | ) |
A function to scan through the object list to find a matching object.
This function scans through the entire object list and returns a pointer to the object when arg
matches an object’s tag
[in] | arg | the argument value provided by the user |
bool object_has_tag | ( | OBJECT_t * | obj, |
const char * | arg | ||
) |
A function to return whether the user's argument has a matching tag.
This function will check whether arg
matches the tag on the supplied object obj
[in] | obj | an stored object |
[in] | arg | the argument value provided by the user |