← Back to team overview

widelands-dev team mailing list archive

Re: mine exhausted note to AI

 

I have looked at the notifications used in AI but no copy&past is possible
here. I will investigate productionsite source file though. But if changes
outside of AI are needed I would prefer if they will be done by somebody
more competent then me :)


2014-08-07 21:38 GMT+02:00 Fòram na Gàidhlig <fios@xxxxxxxxxxxxxxxxxxx>:

> 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
> >
>
> _______________________________________________
> 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
>

References