Complete.Org: Mailing Lists: Archives: freeciv-dev: June 1999:
Re: [Freeciv-Dev] feature:goto stop (PR#33)
Home

Re: [Freeciv-Dev] feature:goto stop (PR#33)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: tidma@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx, Freeciv Development <freeciv-dev@xxxxxxxxxxx>
Subject: Re: [Freeciv-Dev] feature:goto stop (PR#33)
From: Peter Schaefer <schaefer@xxxxxx>
Date: Wed, 23 Jun 1999 13:35:22 +0200

tidma@xxxxxxxxxxx wrote:
> 
> Full_Name: t.
> Version: 1.8.0
> OS: linux
> Submission from: (NULL) (195.197.160.38)
> 
> when moving units with autocommand ('g' and click someplace) the
> units could stop moving when they see the enemy units eg.2 squares
> away. there could be some notification or the unit should just
> become available for player moves

I don't know - this basically requires that every unit, 
has a flag which sez whether to stop
when finding enemies if none have been seen by this unit before.
Maybe also when spotting unseen units.

This behaviour would be ugly when chasing someone though;
(e.g. you see 2 squares and have the same speed as the one chased).
Maybe the flag should be set to expire only every two turns.
(It could record just the turn when an enemy was last spotted).

It is not really an autocommand thing; interestingly,
code like this should be there somewhere already as AFAIR,
the ai also likes to abort it's movement 'for attack procedures'.

-- 
Peter Schaefer - schaefer@xxxxxx, schaefer@xxxxxx
"FermaT, by Software Migrations Ltd, is an industrial strength program
transformation system used to migrate IBM 370 Assembler modules into 
equivalent readable and maintainable COBOL programs, and to help solve 
the year 2000 challenge for IBM 370 Assembler code."

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