Minor documentation fixes for ode module.
[MidoriGraph.git] / ode / src / main / World.hpp
blobcbf387df60a129d55aa74c2b1eaa0282eaf371d0
1 /*
2 Copyright 2007, JD Marble <midorikid@yahoo.com>
4 This file is part of MidoriGraph.
6 MidoriGraph is free software; you can redistribute it and/or modify it under the
7 terms of the GNU General Public License as published by the Free Software
8 Foundation; either version 2 of the License, or (at your option) any later
9 version.
11 MidoriGraph is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 PARTICULAR PURPOSE. See the GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License along with
16 MidoriGraph; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 #ifndef _WORLD_HPP_
21 #define _WORLD_HPP_
23 #include <string>
24 #include <ode/ode.h>
26 #include "Property.hpp"
28 namespace MidoriGraph {
31 class World : public Property {
33 public:
35 World(const Property::AttributeMap& attributes) {}
37 virtual ~World();
39 virtual void initialize(const Node& owner);
41 static const std::string name() { return "World"; }
42 virtual const std::string getName() const { return name(); }
43 virtual const InterfaceList getInterfaces() const {
44 InterfaceList interfaces = InterfaceList();
45 interfaces.push_back(name());
46 return interfaces;
49 inline dWorldID getWorldID() {
50 return worldID;
53 private:
55 dWorldID worldID;
57 void step(Scalar deltaTime);
62 } //namespace MidoriGraph
63 #endif //_WORLD_HPP_