nuclear@1: #include "scene.h" nuclear@1: nuclear@1: Scene::Scene() nuclear@1: { nuclear@1: name = 0; nuclear@1: } nuclear@1: nuclear@1: Scene::~Scene() nuclear@1: { nuclear@1: clear(); nuclear@1: } nuclear@1: nuclear@1: void Scene::clear() nuclear@1: { nuclear@1: delete [] name; nuclear@1: nuclear@1: size_t i; nuclear@1: for(i=0; iname; nuclear@1: this->name = new char[strlen(name) + 1]; nuclear@1: strcpy(this->name, name); nuclear@1: } nuclear@1: nuclear@1: const char *Scene::get_name() const nuclear@1: { nuclear@1: return name ? name : ""; nuclear@1: } nuclear@1: nuclear@1: void Scene::draw() const nuclear@1: { nuclear@1: }