Mercurial > fife-parpg
diff 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 |
line wrap: on
line diff
--- a/engine/core/model/structures/instance.cpp Mon Jul 21 13:46:15 2008 +0000 +++ b/engine/core/model/structures/instance.cpp Tue Jul 22 10:04:16 2008 +0000 @@ -193,6 +193,10 @@ m_changeinfo |= ICHANGE_ROTATION; } + void Instance::setId(const std::string& identifier) { + m_id = identifier; + } + void Instance::addActionListener(InstanceActionListener* listener) { initializeChanges(); m_activity->m_actionlisteners.push_back(listener);