#include <global.h>#include <sproto.h>Go to the source code of this file.
Functions | |
| object * | find_best_object_match (object *pl, char *params) |
| int | command_uskill (object *pl, char *params) |
| int | command_rskill (object *pl, char *params) |
| int | command_apply (object *op, char *params) |
| int | sack_can_hold (object *pl, object *sack, object *op, int nrof) |
| static void | pick_up_object (object *pl, object *op, object *tmp, int nrof) |
| void | pick_up (object *op, object *alt) |
| void | put_object_in_sack (object *op, object *sack, object *tmp, long nrof) |
| void | drop_object (object *op, object *tmp, long nrof) |
| void | drop (object *op, object *tmp) |
| int | command_dropall (object *op, char *params) |
| int | command_drop (object *op, char *params) |
| static object * | find_marked_object_rec (object *op, object **marked, uint32 *marked_count) |
| object * | find_marked_object (object *op) |
| void | examine_living (object *op, object *tmp) |
| char * | long_desc (object *tmp, object *caller) |
| void | examine (object *op, object *tmp) |
| void | inventory (object *op, object *inv) |
Object ID parsing functions
Definition in file c_object.c.
| int command_apply | ( | object * | op, | |
| char * | params | |||
| ) |
Apply an item. Accepts parameters like -a to always apply, and -u to always unapply.
| op | Object requesting this. | |
| params | Command parameters. |
Definition at line 121 of file c_object.c.
| int command_drop | ( | object * | op, | |
| char * | params | |||
| ) |
/drop command.
| op | Player. | |
| params | What to drop. |
Definition at line 1041 of file c_object.c.
| int command_dropall | ( | object * | op, | |
| char * | params | |||
| ) |
Command to drop all items that have not been locked.
| op | Player. | |
| params | Optional specifier, like 'armour', 'weapon' and such. |
Definition at line 906 of file c_object.c.
| int command_rskill | ( | object * | pl, | |
| char * | params | |||
| ) |
Ready skill command.
| pl | Player object. | |
| params | Command parameters. |
Definition at line 89 of file c_object.c.
| int command_uskill | ( | object * | pl, | |
| char * | params | |||
| ) |
Use skill command.
| pl | Player object. | |
| params | Command parameters. |
Definition at line 68 of file c_object.c.
Drop an item, either on the floor or in a container.
| op | Who is dropping an item. | |
| tmp | What object to drop. |
Definition at line 863 of file c_object.c.
Drop an object onto the floor.
| op | Player object. | |
| tmp | The object to drop. | |
| nrof | Number of items to drop (0 for all). |
Definition at line 697 of file c_object.c.
Player examines some object.
| op | Player. | |
| tmp | Object to examine. |
Definition at line 1351 of file c_object.c.
Player examines a living object.
| op | Player. | |
| tmp | Object being examined. |
Definition at line 1154 of file c_object.c.
Search the inventory of 'pl' for what matches best with params. We use item_matched_string above - this gives us consistent behaviour between many commands.
| pl | Player object. | |
| params | Parameters string. |
Definition at line 40 of file c_object.c.
Return the object the player has marked.
| op | Object. Should be a player. |
Definition at line 1140 of file c_object.c.
| static object* find_marked_object_rec | ( | object * | op, | |
| object ** | marked, | |||
| uint32 * | marked_count | |||
| ) | [static] |
Recursive helper function for find_marked_object() to search for marked object in containers.
| op | Object. Should be a player. | |
| marked | Marked object. | |
| marked_count | Marked count. |
Definition at line 1090 of file c_object.c.
Prints object's inventory.
| op | Who to print for. | |
| inv | If NULL then print op's inventory, else print the inventory of inv. |
Definition at line 1877 of file c_object.c.
Long description of an object.
| tmp | Object to get description of. | |
| caller | Caller. |
Definition at line 1278 of file c_object.c.
Try to pick up an item.
| op | Object trying to pick up. | |
| alt | Optional object op is trying to pick. If NULL, try to pick first item under op. |
Definition at line 424 of file c_object.c.
Pick up object.
| pl | Object that is picking up the object. | |
| op | Object to put tmp into. | |
| tmp | Object to pick up. | |
| nrof | Number to pick up (0 means all of them). |
Definition at line 231 of file c_object.c.
Player tries to put object into sack, if nrof is non zero, then nrof objects is tried to put into sack.
| op | Player object. | |
| sack | The sack. | |
| tmp | The object to put into sack. | |
| nrof | Number of items to put into sack (0 for all). |
Definition at line 570 of file c_object.c.
Check if an item op can be put into a sack. If pl exists then tell a player the reason of failure.
| pl | Player object. | |
| sack | The sack. | |
| op | The object to check. | |
| nrof | Number of objects we want to put in. |
Definition at line 181 of file c_object.c.
1.6.2