view engine/core/util/base/utilbase.i @ 10:ab09325f901e

Camera was attached to instance on a different layer, resulting in strange scrolling. Fixed it, and added a check to prevent this happening again (attach-to-other-layer fails and logs a warning).
author jwt@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 06 Jul 2008 17:13:06 +0000
parents 4a0efb7baf70
children 90005975cdbb
line wrap: on
line source

%module fife
%{
#include "util/base/resourceclass.h"
#include "util/base/fifeclass.h"
%}

%include "util/base/exception.h"
%include "util/resource/resource.i"

namespace FIFE {

	typedef unsigned int fifeid_t;
	
	class FifeClass: public IReferenceCounted {
	public:
		virtual ~FifeClass();
		fifeid_t getFifeId();
		void addRef();
		void decRef();
		unsigned int getRefCount();
	};

	class ResourceClass: public FifeClass, public IResource {
	public:
		virtual ~ResourceClass();
		const ResourceLocation& getResourceLocation();
		const std::string& getResourceFile();

		virtual void setResourceLocation(const ResourceLocation& location);
		virtual void setResourceFile(const std::string& filename);
	
		int getPoolId();
		void setPoolId(int poolid);
	
	private:
		ResourceClass();
	};	
	
}