/* orxonox - the future of 3D-vertical-scrollers Copyright (C) 2004 orx This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. ### File Specific: main-programmer: Patrick Boenzli co-programmer: ... */ #include "base_object.h" #include "stdincl.h" using namespace std; /** \brief standard constructor */ BaseObject::BaseObject () { this->className = NULL; } /** \brief standard deconstructor */ BaseObject::~BaseObject () { delete []this->className; } void BaseObject::setClassName (char* className) { this->className = new char[strlen(className)+1]; strcpy(this->className, className); } char* BaseObject::getClassName(void) const { return className; } bool BaseObject::isA (char* className) { if( this->className == className) return false; return true; }