Now, I can access some data from callback interface. but i can not get data about opponent's postion. Please suggest me.
Thank you.
How can I get opponent's position?
Moderators: hoijui, Moderators
Re: How can I get opponent's position?
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.
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.
Re: How can I get opponent's position?
will you be extending AAI, or an other of the existing AIs, or will you start a new project?