Using the resource maps - Page 2

Using the resource maps

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

Moderators: hoijui, Moderators

Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Using the resource maps

Post by Auswaschbar »

Code: Select all

int* ConvertToSignedInt(unsigned*) {...};
int* signedValues = ConvertToSignedInt(Clb_UnitDef_getCategory(...))
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Using the resource maps

Post by Pxtl »

@Lurker: I thought you meant add 256 to everything, not just to the values that are below zero.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Using the resource maps

Post by lurker »

Half of those are just bitfields; please just leave them as whatever is simplest, because it doesn't matter how they get interpreted at all.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Using the resource maps

Post by abma »

i didn't read the whole thread.. but:

did you check OOAICallback.getMap().getResourceMapSpotsPositions()?

this function returns spots where to build resource extractors...
User avatar
LoidThanead
Posts: 58
Joined: 27 Feb 2008, 16:16

Re: Using the resource maps

Post by LoidThanead »

At the time of my initial post, that function did not exist yet. In fact, I believe it was added (partially) as a result of this discussion. ;)

Obviously, I'm using it now, though I've been working on my own method of finding the resource spots, with mixed results.
Post Reply

Return to “AI”