… | |
… | |
435 | // object op is trying to move in direction dir. |
435 | // object op is trying to move in direction dir. |
436 | // originator is typically the same as op, but |
436 | // originator is typically the same as op, but |
437 | // can be different if originator is causing op to |
437 | // can be different if originator is causing op to |
438 | // move (originator is pushing op) |
438 | // move (originator is pushing op) |
439 | // returns 0 if the object is not able to move to the |
439 | // returns 0 if the object is not able to move to the |
440 | // desired space, 1 otherwise (in which case we also |
440 | // desired space, 1 otherwise (in which case we also |
441 | // move the object accordingly. This function is |
441 | // move the object accordingly. This function is |
442 | // very similiar to move_object. |
442 | // very similiar to move_object. |
443 | int move (int dir, object *originator); |
443 | int move (int dir, object *originator); |
444 | |
444 | |
445 | int move (int dir) |
445 | int move (int dir) |
… | |
… | |
582 | |
582 | |
583 | static bool msg_has_dialogue (const char *msg) { return *msg == '@'; } |
583 | static bool msg_has_dialogue (const char *msg) { return *msg == '@'; } |
584 | |
584 | |
585 | MTH bool has_dialogue () const { return msg_has_dialogue (&msg); } |
585 | MTH bool has_dialogue () const { return msg_has_dialogue (&msg); } |
586 | |
586 | |
587 | /* need_identify returns true if the item should be identified. This |
587 | /* need_identify returns true if the item should be identified. This |
588 | * function really should not exist - by default, any item not identified |
588 | * function really should not exist - by default, any item not identified |
589 | * should need it. |
589 | * should need it. |
590 | */ |
590 | */ |
591 | MTH bool need_identify () const; |
591 | MTH bool need_identify () const; |
592 | |
592 | |