AppEasy Core SDK  1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
CzBox2dFixture.h
Go to the documentation of this file.
00001 // 
00002 //
00003 // AppEasy SDK - Cross Platform Multi-purpose Game and App Engine
00004 //
00005 // Developed by Matthew Hopwood of Pocketeers Limited - www.pocketeers.co.uk
00006 //
00007 // For updates, tutorials and more details check out www.appeasymobile.com
00008 //
00009 // This code is provided free of charge and without any warranty whatsoever. You must ensure that this whole notice is present in all files and derivatives, so the reader knows its origin.
00010 // If you use this SDK in your product then please ensure that you credit AppEasy's usage appropriately. Please see www.appeasymobile.com for licensing details and support
00011 //
00012 //
00013 
00014 #if !defined(_CZ_BOX2D_FIXTURE_H_)
00015 #define _CZ_BOX2D_FIXTURE_H_
00016 
00017 #include "CzUtil.h"
00018 #include "CzString.h"
00019 #include "CzXoml.h"
00020 #include "CzShapes.h"
00021 
00022 #include "Box2D/Box2D.h"
00023 
00024 class CzBox2dWorld;
00025 class CzBox2dBody;
00026 
00027 //
00028 //
00029 //
00030 //
00031 // CzBox2dFixtures - Box2D physics fixtures XOML command (needs to be declared inside an actor)
00032 //
00033 //
00034 //
00035 //
00036 class CzBox2dFixtures : public IzXomlResource
00037 {
00038 public:
00039     CzBox2dFixtures() { setClassType("fixtures"); }
00040 
00041     // Implementation of IzXomlResource interface
00042     int                 LoadFromXoml(IzXomlResource* parent, bool load_children, CzXmlNode* node);
00043 };
00044 
00045 //
00046 //  CzBox2dFixturesCreator - Creates an instance of Box2D Fixtures object
00047 //
00048 class CzBox2dFixturesCreator : public IzXomlClassCreator
00049 {
00050 public:
00051     CzBox2dFixturesCreator()
00052     {
00053         setClassName("fixtures");
00054     }
00055     IzXomlResource* CreateInstance(IzXomlResource* parent)  { return new CzBox2dFixtures(); }
00056 };
00057 
00058 
00059 
00060 #endif // _CZ_BOX2D_FIXTURE_H_