Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

force.cc

Go to the documentation of this file.
00001 #include "force.hh"
00002 #include "element.hh"
00003 
00004 namespace anoid {
00005     namespace plugin {
00006         using namespace std;
00007         using namespace base;
00008 
00009         Force::Force(): Object() {
00010             parentElement = NULL;
00011             Object *tmp = getParent();
00012             while (!parentElement && tmp != (Object *) getWorld()) {
00013                 parentElement = dynamic_cast<Element *>(tmp);
00014                 tmp = tmp->getParent();
00015             }
00016             if (!parentElement)
00017                 cerr << "Error" << endl;
00019         }
00020 
00021     };
00022 };

Anoid NG © Michael Westergaard, Martin Stig Stissing, Ronni Michael Laursen, and Kristian Bisgaard Lassen