version 1.37 | | version 1.38 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.37 2006/02/07 07:54:46 mwedel Exp $"; | | * "$Id: item.c,v 1.38 2006/03/18 15:05:37 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
return flags; | | return flags; |
} | | } |
| | |
/* Used in the send_look to put object head into SockList | | /** |
| | * Used in the send_look to put object head into SockList |
* sl for socket ns. Need socket to know if we need to send | | * sl for socket ns. Need socket to know if we need to send |
* animation of face to the client. | | * animation of face to the client. |
*/ | | */ |
static void add_object_to_socklist(NewSocket *ns, SockList *sl, object *head) | | static void add_object_to_socklist(socket_struct *ns, SockList *sl, object *head) |
{ | | { |
int flags, len, anim_speed; | | int flags, len, anim_speed; |
char item_n[MAX_BUF]; | | char item_n[MAX_BUF]; |
| | |
| | |
| | |
/** Client wants to examine some object. So lets do so. */ | | /** Client wants to examine some object. So lets do so. */ |
void ExamineCmd(char *buf, int len,player *pl) | | void examine_cmd(char *buf, int len,player *pl) |
{ | | { |
long tag = atoi(buf); | | long tag = atoi(buf); |
object *op = esrv_get_ob_from_count(pl->ob, tag); | | object *op = esrv_get_ob_from_count(pl->ob, tag); |
| | |
} | | } |
| | |
/** Client wants to apply some object. Lets do so. */ | | /** Client wants to apply some object. Lets do so. */ |
void ApplyCmd(char *buf, int len,player *pl) | | void apply_cmd(char *buf, int len,player *pl) |
{ | | { |
uint32 tag = atoi(buf); | | uint32 tag = atoi(buf); |
object *op = esrv_get_ob_from_count(pl->ob, tag); | | object *op = esrv_get_ob_from_count(pl->ob, tag); |
| | |
} | | } |
| | |
/** Client wants to apply some object. Lets do so. */ | | /** Client wants to apply some object. Lets do so. */ |
void LockItem(uint8 *data, int len,player *pl) | | void lock_item_cmd(uint8 *data, int len,player *pl) |
{ | | { |
int flag, tag; | | int flag, tag; |
object *op; | | object *op; |
| | |
} | | } |
| | |
/** Client wants to apply some object. Lets do so. */ | | /** Client wants to apply some object. Lets do so. */ |
void MarkItem(uint8 *data, int len,player *pl) | | void mark_item_cmd(uint8 *data, int len,player *pl) |
{ | | { |
int tag; | | int tag; |
object *op; | | object *op; |
| | |
| | |
| | |
/** | | /** |
* look_at prints items on the specified square. | | * Prints items on the specified square. |
* | | * |
* [ removed EARTHWALL check and added check for containers inventory. | | * [ removed EARTHWALL check and added check for containers inventory. |
* Tero.Haatanen@lut.fi ] | | * Tero.Haatanen@lut.fi ] |
| | |
| | |
| | |
/** Client wants to look at some object. Lets do so. */ | | /** Client wants to look at some object. Lets do so. */ |
void LookAt(char *buf, int len,player *pl) | | void look_at_cmd(char *buf, int len,player *pl) |
{ | | { |
int dx, dy; | | int dx, dy; |
char *cp; | | char *cp; |