How can I get opponent's position?

How can I get opponent's position?

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
picmee
Posts: 15
Joined: 15 Dec 2008, 01:02

How can I get opponent's position?

Post by picmee »

Now, I can access some data from callback interface. but i can not get data about opponent's postion. Please suggest me.
Thank you.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: How can I get opponent's position?

Post by hoijui »

you are using the old interface i guess? IAICheats?
what do you mean with enemies position? the position of all enemy units, or the start positions?
The first one could be done with IAICheats.GetAICallback().

btw...
as said, this interface is old, and you may wait for the new C++ interface to come, use the already working Java Interface (though it may still change) or wait for other languages (possibly comming: D, C#).

Could you possibly explain what you want to do, and what you are doing at the moment wiht spring AIs? so we can possibly help you better now, and when you come with further questions.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: How can I get opponent's position?

Post by hoijui »

will you be extending AAI, or an other of the existing AIs, or will you start a new project?
Post Reply

Return to “AI”