#ifndef INCLUDED_luxe_tween_IComponentPath
#define INCLUDED_luxe_tween_IComponentPath

#ifndef HXCPP_H
#include <hxcpp.h>
#endif

HX_DECLARE_CLASS2(luxe,tween,IComponentPath)
namespace luxe{
namespace tween{


class HXCPP_CLASS_ATTRIBUTES  IComponentPath_obj : public hx::Interface{
	public:
		typedef hx::Interface super;
		typedef IComponentPath_obj OBJ_;
		HX_DO_INTERFACE_RTTI;
		static void __boot();
virtual Float calculate( Float k)=0;
		Dynamic calculate_dyn();
};

#define DELEGATE_luxe_tween_IComponentPath \
virtual Float calculate( Float k) { return mDelegate->calculate(k);}  \
virtual Dynamic calculate_dyn() { return mDelegate->calculate_dyn();}  \


template<typename IMPL>
class IComponentPath_delegate_ : public IComponentPath_obj
{
	protected:
		IMPL *mDelegate;
	public:
		IComponentPath_delegate_(IMPL *inDelegate) : mDelegate(inDelegate) {}
		hx::Object *__GetRealObject() { return mDelegate; }
		void __Visit(HX_VISIT_PARAMS) { HX_VISIT_OBJECT(mDelegate); }
		DELEGATE_luxe_tween_IComponentPath
};

} // end namespace luxe
} // end namespace tween

#endif /* INCLUDED_luxe_tween_IComponentPath */ 
