adonthell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Adonthell-devel] Pathfinding


From: Kai Sterker
Subject: [Adonthell-devel] Pathfinding
Date: Mon, 23 Feb 2009 19:34:42 +0100

Kudos to Frederico for finishing a first version of the pathfinding!
:-) Get it from CVS and see it in action in test/path_test.


I had the chance to think about the pathfinding a little bit more and
there's something else that will be important to have: an event to
notify us when the goal is reached (or the path turns out blocked).

That is required, because the schedule will basically have to initiate
pathfinding, then "sleep" until something happens that requires
further action. This is mostly for performance reasons, as the
schedule will be a Python script and it becomes too costly to call
every character's schedule regularly to monitor advance of some
activity.

I guess this can be easily enough integrated with the existing event
system (see quest_event, audio_event or time_event and their
respective managers as examples). Some details are also at:
http://adonthell.berlios.de/doc/index.php/Architecture:Event_Module

Kai




reply via email to

[Prev in Thread] Current Thread [Next in Thread]