glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] Hello all


From: Kai Antweiler
Subject: Re: [glob2-devel] Hello all
Date: Mon, 21 Jul 2008 22:37:16 +0200

> Actually, why not for each possible resource (when choosing which one to
> collect), look at the *sum* of the distance value from the worker AND
> distance value from the building?

Because without obstacles then the minimized sum defines a line (circle)
that meats the resource and the building. The worker would be attracted
to that and don't know what to do next when he arrives. So you would need
a conditional branch to send him to the resource when he reached it.
The problem is that there are obstacles and things get more complicated.


> So there is always only one calculation to make which will
> always give the best answer, no conditional branches needed.

The conditionals don't cost much. I wish we had more.
But you'd have to be sure that they don't cause problems.



> How to figure out which is the "best" worker is the focus of my project
> so I will be doing that, whether this gets implemented into the game or not.

Don't let yourself be discouraged.
You'll will have to spend some month on this and will come up with something
good. Don't aim for the optimum. Try to improve what is already there.
Focus on the peculiarities of the world of Globulation 2.

Proving the progress mathematically and writing things down will take
some time too.


> I'll let you guys know how it goes at the end of the year.

OK.

-- 
Kai Antweiler




reply via email to

[Prev in Thread] Current Thread [Next in Thread]