Mercurial > fife-parpg
comparison engine/core/model/structures/instance.cpp @ 99:64e7fe3d4288
- added possibility to change instance ids
- speedup instances by removing uniqueness check for ids, that means the client has to provide unique ids or live with on unique ids
- added possibility to list all instances with a given id
author | spq@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Tue, 22 Jul 2008 10:04:16 +0000 |
parents | 90005975cdbb |
children | 56ac89189bc4 |
comparison
equal
deleted
inserted
replaced
98:214e3eb81eb2 | 99:64e7fe3d4288 |
---|---|
189 } | 189 } |
190 | 190 |
191 void Instance::setRotation(int rotation) { | 191 void Instance::setRotation(int rotation) { |
192 m_rotation = rotation; | 192 m_rotation = rotation; |
193 m_changeinfo |= ICHANGE_ROTATION; | 193 m_changeinfo |= ICHANGE_ROTATION; |
194 } | |
195 | |
196 void Instance::setId(const std::string& identifier) { | |
197 m_id = identifier; | |
194 } | 198 } |
195 | 199 |
196 void Instance::addActionListener(InstanceActionListener* listener) { | 200 void Instance::addActionListener(InstanceActionListener* listener) { |
197 initializeChanges(); | 201 initializeChanges(); |
198 m_activity->m_actionlisteners.push_back(listener); | 202 m_activity->m_actionlisteners.push_back(listener); |