void ScummEngine_v0::o_setOwnerOf() { int obj, owner; obj = getVarOrDirectWord(PARAM_1); owner = getVarOrDirectByte(PARAM_2); if (!obj) obj = _cmdObject; setOwnerOf(obj, owner); }
bool ComponentNode::addAttribute( const std::string& name, IAttribute* attribute ) { if ( !attribute ) { return false; } AttributeMap::iterator it = _attributes.find( name ); if ( it != _attributes.end() ) { COCA_WARNING( "Overwriting attribute " << name << " of node " << getName() ); doRemoveAttribute( it ); } _attributes[name] = attribute; setOwnerOf( attribute ); setParentEnabled( attribute, isEnabled() ); getEventManager().sendEvent( E_NODE_ATTRIBUTE_ADDED_EVENT, *this, *attribute ); return true; }