hello,
i can not find the untouchable class type ...
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Alban Bedel
Gesendet: Dienstag, 15. Januar 2008 16:05
An: [email protected]
Betreff: Re: [ScummC-general] remove object from room
On Tue, 15 Jan 2008 09:19:49 +0100
"Andreas Mank" <[EMAIL PROTECTED]> wrote:
> ***********************
> This message has been scanned by RTT AG TrendMicro Interscan Security
> System and found to be free of known security risks.
> ***********************
>
>
> Hello,
>
> how can i remove an object from a room? After calling pickupobject
> the objet is still lookable and the hotspot is still set ..
pickupObject() is not exactly working as one would expect. First
remeber how objects works: in state 0 nothing is displayed, in any
state > 0 the corresponding image is displayed. If the object is
found by getObjectAt() depend if it belong to the ClassUntouchable or
not.
What pickupObject() do is to set the new owner, set the object
untouchable and turn it to state 1. This mean that the visible object
must be drawn on the room background and the image for state 1 must
"hide" it.
Albeu
BTW Gerrit, looking at the setObjectClass() implementation in scummvm
it should is usable with actors too. Like getObjectAt(), getActorAt()
look at the untouchable class, so you should just need to set the class
to make an actor "unselectable".
_______________________________________________
ScummC-general mailing list
[email protected]
https://mail.gna.org/listinfo/scummc-general
_____________________________________________________________________________
Realtime Technology Aktiengesellschaft, Munich, Germany
Commercial Registry: 125910; Amtsgericht Muenchen
Board: Ludwig A. Fuchs / Christoph Karrasch
Chairman of the Supervisory Board: Prof. Dr. Ulrich Goehner
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender
und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in
this e-mail is strictly forbidden.
_______________________________________________
ScummC-general mailing list
[email protected]
https://mail.gna.org/listinfo/scummc-general