Mercurial > fife-parpg
diff engine/core/model/metamodel/abstractpather.i @ 587:2de93d36ca6d
Added getNextLocation() to the python interface file for the abstract pather.
Fixed a problem when an instance changes rotation and does not notify the instance change listeners.
Fixed a bug in SDLImage where m_isalphaoptimized was incorrectly set.
Updated instance to no longer derive from ResourceClass. It now derives from FifeClass directly.
fixes[t:475]
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 11 Aug 2010 16:52:57 +0000 |
parents | 90005975cdbb |
children |
line wrap: on
line diff
--- a/engine/core/model/metamodel/abstractpather.i Sun Aug 08 22:54:11 2010 +0000 +++ b/engine/core/model/metamodel/abstractpather.i Wed Aug 11 16:52:57 2010 +0000 @@ -24,12 +24,18 @@ #include "model/metamodel/abstractpather.h" %} +%include "model/structures/instance.i" + namespace FIFE { class Map; class AbstractPather { public: virtual ~AbstractPather(); + virtual int getNextLocation(const Instance* instance, const Location& target, + double distance_to_travel, Location& nextLocation, + Location& facingLocation, int session_id=-1, + int priority = MEDIUM_PRIORITY) = 0; virtual std::string getName() const = 0; private: AbstractPather();