Mercurial > fife-parpg
comparison engine/core/view/renderers/genericrenderer.cpp @ 26:70f41ea8e7db
fix compile errors in node setters...
author | spq@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 11 Jul 2008 11:29:13 +0000 |
parents | fc6713d72b80 |
children | 788cb9525b2f |
comparison
equal
deleted
inserted
replaced
25:fc6713d72b80 | 26:70f41ea8e7db |
---|---|
63 m_point(attached_point) { | 63 m_point(attached_point) { |
64 } | 64 } |
65 GenericRendererNode::~GenericRendererNode() { | 65 GenericRendererNode::~GenericRendererNode() { |
66 } | 66 } |
67 | 67 |
68 void GenericRendererNode::setAttached(Instance* attached_instance, const Location &relative_location, const Point &relative_point) { | 68 void GenericRendererNode::setAttached(Instance* attached_instance, Location* relative_location, const Point &relative_point) { |
69 m_instance = attached_instance; | 69 m_instance = attached_instance; |
70 m_location = relative_location; | 70 m_location = relative_location; |
71 m_point = relative_point; | 71 m_point = relative_point; |
72 } | 72 } |
73 void GenericRendererNode::setAttached(Instance* attached_instance, const Location &relative_location) { | 73 void GenericRendererNode::setAttached(Instance* attached_instance, Location* relative_location) { |
74 m_instance = attached_instance; | 74 m_instance = attached_instance; |
75 m_location = relative_location; | 75 m_location = relative_location; |
76 } | 76 } |
77 void GenericRendererNode::setAttached(Instance* attached_instance, const Point &relative_point) { | 77 void GenericRendererNode::setAttached(Instance* attached_instance, const Point &relative_point) { |
78 m_instance = attached_instance; | 78 m_instance = attached_instance; |
79 m_point = relative_point; | 79 m_point = relative_point; |
80 } | 80 } |
81 void GenericRendererNode::setAttached(Instance* attached_instance) { | 81 void GenericRendererNode::setAttached(Instance* attached_instance) { |
82 m_instance = attached_instance; | 82 m_instance = attached_instance; |
83 } | 83 } |
84 void GenericRendererNode::setAttached(const Location &attached_location, const Point &relative_point) { | 84 void GenericRendererNode::setAttached(Location* attached_location, const Point &relative_point) { |
85 m_instance = NULL; | 85 m_instance = NULL; |
86 m_location = attached_location; | 86 m_location = attached_location; |
87 m_point = relative_point; | 87 m_point = relative_point; |
88 } | 88 } |
89 void GenericRendererNode::setAttached(const Location &attached_location) { | 89 void GenericRendererNode::setAttached(Location* attached_location) { |
90 m_instance = NULL; | 90 m_instance = NULL; |
91 m_location = attached_location; | 91 m_location = attached_location; |
92 } | 92 } |
93 void GenericRendererNode::setAttached(const Point &attached_point) { | 93 void GenericRendererNode::setAttached(const Point &attached_point) { |
94 m_instance = NULL; | 94 m_instance = NULL; |
95 m_location = NULL; | 95 m_location = NULL; |
96 m_point = attached_point; | 96 m_point = attached_point; |
97 } | 97 } |
98 | 98 |
99 void GenericRendererNode::setRelative(const Location &relative_location) { | 99 void GenericRendererNode::setRelative(Location* relative_location) { |
100 if(m_instance == NULL) { | 100 if(m_instance == NULL) { |
101 throw NotSupported("No instance attached."); | 101 throw NotSupported("No instance attached."); |
102 } | 102 } |
103 m_location = relative_location; | 103 m_location = relative_location; |
104 } | 104 } |
105 void GenericRendererNode::setRelative(const Location &relative_location, Point relative_point) { | 105 void GenericRendererNode::setRelative(Location* relative_location, Point relative_point) { |
106 if(m_instance == NULL) { | 106 if(m_instance == NULL) { |
107 throw NotSupported("No instance attached."); | 107 throw NotSupported("No instance attached."); |
108 } | 108 } |
109 m_location = relative_location; | 109 m_location = relative_location; |
110 m_point = relative_point; | 110 m_point = relative_point; |