00001 /************************************************************************* 00002 * * 00003 * Open Physics Abstraction Layer * 00004 * Copyright (C) 2004-2005 * 00005 * Alan Fischer alan.fischer@gmail.com * 00006 * Andres Reinot andres@reinot.com * 00007 * Tyler Streeter tylerstreeter@gmail.com * 00008 * All rights reserved. * 00009 * Web: opal.sourceforge.net * 00010 * * 00011 * This library is free software; you can redistribute it and/or * 00012 * modify it under the terms of EITHER: * 00013 * (1) The GNU Lesser General Public License as published by the Free * 00014 * Software Foundation; either version 2.1 of the License, or (at * 00015 * your option) any later version. The text of the GNU Lesser * 00016 * General Public License is included with this library in the * 00017 * file license-LGPL.txt. * 00018 * (2) The BSD-style license that is included with this library in * 00019 * the file license-BSD.txt. * 00020 * * 00021 * This library is distributed in the hope that it will be useful, * 00022 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00023 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files * 00024 * license-LGPL.txt and license-BSD.txt for more details. * 00025 * * 00026 *************************************************************************/ 00027 00028 #include "Motor.h" 00029 00030 namespace opal 00031 { 00032 Motor::Motor() 00033 { 00034 //mIsCustom = false; 00035 mInitCalled = false; 00036 setUserData(NULL); 00037 } 00038 00039 Motor::~Motor() 00040 { 00041 } 00042 00043 void Motor::internal_destroy() 00044 { 00045 delete this; 00046 } 00047 00048 void Motor::init() 00049 { 00050 mInitCalled = true; 00051 } 00052 00053 void Motor::setUserData(void* data) 00054 { 00055 mUserData = data; 00056 } 00057 00058 void* Motor::getUserData() 00059 { 00060 return mUserData; 00061 } 00062 00063 bool Motor::internal_dependsOnSolid(Solid* s) 00064 { 00065 return false; 00066 } 00067 00068 bool Motor::internal_dependsOnJoint(Joint* j) 00069 { 00070 return false; 00071 } 00072 00073 //void Motor::internal_setCustom(bool c) 00074 //{ 00075 // mIsCustom = c; 00076 //} 00077 00078 //bool Motor::internal_isCustom() 00079 //{ 00080 // return mIsCustom; 00081 //} 00082 }