erebus

annotate liberebus/src/object.cc @ 6:bb006fb96f1b

forgot to add two files
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 24 May 2014 02:22:14 +0300
parents 474a0244f57d
children e9da2916bc79
rev   line source
nuclear@2 1 #include "object.h"
nuclear@2 2
nuclear@2 3 Object::Object()
nuclear@2 4 {
nuclear@2 5 name = "<unnamed>";
nuclear@2 6 }
nuclear@2 7
nuclear@2 8 ObjType Object::get_type() const
nuclear@2 9 {
nuclear@2 10 return ObjType::null;
nuclear@2 11 }
nuclear@2 12
nuclear@2 13 void Object::set_name(const char *name)
nuclear@2 14 {
nuclear@2 15 this->name = name;
nuclear@2 16 }
nuclear@2 17
nuclear@2 18 const char *Object::get_name() const
nuclear@2 19 {
nuclear@2 20 return name.c_str();
nuclear@2 21 }
nuclear@2 22
nuclear@2 23 bool Object::intersect(const Ray &ray, RayHit *hit) const
nuclear@2 24 {
nuclear@2 25 return false;
nuclear@2 26 }