nuclear@2: #include "object.h" nuclear@2: nuclear@2: Object::Object() nuclear@2: { nuclear@2: name = ""; nuclear@2: } nuclear@2: nuclear@2: ObjType Object::get_type() const nuclear@2: { nuclear@2: return ObjType::null; nuclear@2: } nuclear@2: nuclear@2: void Object::set_name(const char *name) nuclear@2: { nuclear@2: this->name = name; nuclear@2: } nuclear@2: nuclear@2: const char *Object::get_name() const nuclear@2: { nuclear@2: return name.c_str(); nuclear@2: } nuclear@2: nuclear@2: bool Object::intersect(const Ray &ray, RayHit *hit) const nuclear@2: { nuclear@2: return false; nuclear@2: }