← Back to team overview

widelands-dev team mailing list archive

mine exhausted note to AI

 

Hi,

lately we had a discussion about notifications to AI when mine is
exhausted.  When a player sees a message "Main * vein exhausted"

As I understood there could be a function in AI that would receive a
message and pointer to a building (=mine). I am not able to do it myself,
can somebody help me?

>From this point - when AI receives a building, I can continue by myself. :)

As a starting point you can look here:

http://bazaar.launchpad.net/~widelands-dev/widelands/tibor-ai5/view/head:/src/ai/defaultai.cc#L107

Thanks,

Tibor

Follow ups