Mercurial > fife-parpg
diff engine/core/model/structures/layer.h @ 255:51cc05d862f2
Merged editor_rewrite branch to trunk.
This contains changes that may break compatibility against existing clients.
For a list of changes that may affect your client, see: http://wiki.fifengine.de/Changes_to_pychan_and_FIFE_in_editor_rewrite_branch
author | cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 08 Jun 2009 16:00:02 +0000 |
parents | 64e7fe3d4288 |
children | 7e5717105212 |
line wrap: on
line diff
--- a/engine/core/model/structures/layer.h Wed Jun 03 19:29:52 2009 +0000 +++ b/engine/core/model/structures/layer.h Mon Jun 08 16:00:02 2009 +0000 @@ -149,6 +149,12 @@ */ std::vector<Instance*> getInstances(const std::string& id); + /** Returns instances that match given location. + * @param loc location where to fetch instances from + * @param use_exactcoordinates if true, comparison is done using exact coordinates. if not, cell coordinates are used + */ + std::vector<Instance*> getInstancesAt(Location& loc, bool use_exactcoordinates=false); + /** Get the first instance on this layer with the given identifier. */ Instance* getInstance(const std::string& identifier);