URL:
<http://gna.org/patch/?7242>
Summary: See forced actions as data internally
Project: Freeciv
Submitted by: sveinung
Submitted on: Fri 03 Jun 2016 05:22:38 PM UTC
Category: general
Priority: 5 - Normal
Status: Ready For Test
Privacy: Public
Assigned to: sveinung
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: 3.0.0
Contains string changes: No
_______________________________________________________
Details:
Add the new bit vector blocked_by to the action structure. It lists all
actions that, if legal, will make the action illegal. This replaces the old
force action semantics internally.
Populate each action's blocked_by with the actions that, when forced, blocks
it. Some actions are forced depending on ruleset settings. Others are hard
coded to always be forced. This data replaces the checks hard coded for each
potentially blocked action.
Some actions can block regular attacks. Regular attacks aren't action enabler
controlled yet. Leave code and data required to keep this working alone.
The ruleset format remains unchanged. One reason for this is that generalized
actions aren't done yet. Action definitions would give a false impression to
ruleset authors. Another is that the regular attack action isn't action
enabler controlled. A third reason is to limit the scope of this patch.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 03 Jun 2016 05:22:38 PM UTC Name:
0002-See-forced-actions-as-data-internally.patch Size: 23kB By: sveinung
<http://gna.org/patch/download.php?file_id=27467>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?7242>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev