Right now there seams to be no way to tell if an actor`s , lets say position,
is controlled by a behavior or not!
There is an option to test if a beh. controls an actor, but not the reverse -
is an actor is controlled by a beh., and which.
Vary much like containers, were we can test if a container has a particular
actor, but we also have the reverse - Actor.get_parent() to get the container
that holds the actor. Also there is Actor.unparant() and reparent() to manage
the actors "subscription" to a particular group from within the actor.
Similar functions are needed for behavior - Actor.get_behaviors() and/or
Actor.apply_behavior(s) and Actor.remove_behavior(s)
I know its a bit more complex than groups because, an actor can belong to
multiple behaviors... but still it feels natural to have this functionality
A concrete example of where this is needed - if I copy an actor in the
clipboard and I want to paste it at a particular place I have to know its
behaviors (mainly those that alter its position) in order to modify them to
achieve the desired effect (like setting BehaviorEllipse.set_center instead of
Actor.set_position() )
10x
MihailNaydenov
--
To unsubscribe send a mail to [EMAIL PROTECTED]