コード例 #1
0
ファイル: gameswf_value.cpp プロジェクト: Cucurbitace/attract
	const as_object* as_value::get_property_target() const
	{
		if (is_property())
		{
			return m_property_target;
		}
		return NULL;
	}
コード例 #2
0
ファイル: gameswf_value.cpp プロジェクト: Cucurbitace/attract
	as_property* as_value::to_property() const
	{
		if (is_property())
		{
			return m_property;
		}
		return NULL;
	}
コード例 #3
0
ファイル: gameswf_value.cpp プロジェクト: Heartbroken/bikini
	void as_value::set_property_target(as_object* target)
	// Sets the target to the given object.
	{
		assert(is_property());
		if (m_property_target)
		{
			m_property_target->drop_ref();
		}
		m_property_target = target;
		m_property_target->add_ref();
	}
コード例 #4
0
ファイル: gameswf_value.cpp プロジェクト: Cucurbitace/attract
	void as_value::set_property_target(as_object* target)
	// Sets the target to the given object.
	{
		assert(is_property());
		m_property_target = target;
	}
コード例 #5
0
ファイル: gameswf_value.cpp プロジェクト: Cucurbitace/attract
	void as_value::get_property(as_value* val) const
	{
		assert(is_property());
		m_property->get(m_property_target, val);
	}
コード例 #6
0
ファイル: gameswf_value.cpp プロジェクト: Cucurbitace/attract
	// get property of primitive value, like Number
	void as_value::get_property(const as_value& primitive, as_value* val) const
	{
		assert(is_property());
		m_property->get(primitive, val);
	}
コード例 #7
0
ファイル: gameswf_value.cpp プロジェクト: Cucurbitace/attract
	void	as_value::set_property(const as_value& val)
	{
		assert(is_property());
		m_property->set(m_property_target, val);
	}