widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #02602
Re: mine exhausted note to AI
Sorry, I'm on the road and can't really look at the code.
The message itself is defined in logic/productionsite. SirVer said ou
will need this function to send a notification to the notfications
function where the AI can pick it up. Maybe you can have a look at other
notifications the AI is already picking up and check out how they are
written?
07/08/2014 12:55, sgrìobh Tibor Bamhor:
> 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
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~widelands-dev
> Post to : widelands-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~widelands-dev
> More help : https://help.launchpad.net/ListHelp
>
>
>
> No virus found in this message.
> Checked by AVG - www.avg.com <http://www.avg.com>
> Version: 2014.0.4716 / Virus Database: 3986/7996 - Release Date: 08/07/14
>
Follow ups
References