Complete.Org: Mailing Lists: Archives: freeciv-dev: January 1999:
[Freeciv-Dev] Autoattack-patch
Home

[Freeciv-Dev] Autoattack-patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Autoattack-patch
From: Sebastian Fischmeister <sfischme@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 16 Jan 1999 00:35:29 +0100
Reply-to: Sebastian Fischmeister <sfischme@xxxxxxxxxxxxxxxxxxxxxx>

Hello.

Some fun for the weekend: 'autoattack patch'-beta

todo:

- if have movement and enough hp remaining, should consider attacking
  multiple times if multiple targets (hard, because you have to
  calculate the warmap for each choice -> lots of cpu cycles !!!)
  
- create gui-client for diplomacy for players, because now you attack
  all and everything *grin* (in work by other persons)

- no help-text available

- attacks enemies, even if they are in an unknown area (easy fix)

fixed from previous patch:

- there is a a problem if a ship moves out of a city to autoattack and
  takes sentried units from the city with it as passengers (it is also
  fixed for normal goto-command now)

- attacking unit should decide, whether to attack or just to inform
  the player, that there is an enemy in range (it makes no sense,
  attacking a AEGIS-Cruiser with a fighter)

- chooses weakest target for attacking (bonus for transporters)

- shuffles player's attack order

howto:

- put a unit, with a high movement-rate (3 or more) in a city and turn
  on all auto-attack options.

Have fun and please test it and gimme feedback...

  -Sebastian

PS: The two files autoattack.c and autoattack.h belong to the
    server-directory (cvs diff -u does not include new files)

Attachment: autoattack.c.gz
Description: Binary data


Attachment: autoattack.h.gz
Description: Binary data


Attachment: autoattack.diff.gz
Description: Binary data


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