331866030f4c15781cbacd8a89f9172b9add7b74
[laserbrain_demo] / src / object.cc
1 #include "object.h"
2 #include "snode.h"
3
4
5 Object::Object()
6 {
7         name = "<unnamed>";
8         node = 0;
9 }
10
11 ObjType Object::get_type() const
12 {
13         return OBJ_NULL;
14 }
15
16 void Object::set_name(const char *name)
17 {
18         this->name = name;
19 }
20
21 const char *Object::get_name() const
22 {
23         return name.c_str();
24 }
25
26 bool Object::intersect(const Ray &ray, HitPoint *hit) const
27 {
28         return false;
29 }
30
31 void Object::update(float dt)
32 {
33 }
34
35 void Object::draw() const
36 {
37 }
38
39 const AABox &Object::get_aabox() const
40 {
41         static AABox null_box;
42         return null_box;
43 }