… | |
… | |
539 | { |
539 | { |
540 | return this; |
540 | return this; |
541 | } |
541 | } |
542 | |
542 | |
543 | /* This returns TRUE if the object is something that |
543 | /* This returns TRUE if the object is something that |
544 | * should be displayed in the floorbox/inventory window |
544 | * a client might want to know about. |
545 | */ |
545 | */ |
546 | MTH bool client_visible () const |
546 | MTH bool client_visible () const |
547 | { |
547 | { |
548 | return !invisible && type != PLAYER; |
548 | return !invisible && type != PLAYER; |
|
|
549 | } |
|
|
550 | |
|
|
551 | // the client does nrof * this weight |
|
|
552 | MTH sint32 client_weight () const |
|
|
553 | { |
|
|
554 | return weight + carrying; |
549 | } |
555 | } |
550 | |
556 | |
551 | MTH struct region *region () const; |
557 | MTH struct region *region () const; |
552 | |
558 | |
553 | void statusmsg (const char *msg, int color = NDI_BLACK); |
559 | void statusmsg (const char *msg, int color = NDI_BLACK); |