[Freeciv-tickets] [freeciv] #47292: Unit counters framework

Back to archive index
OSDN Ticket System norep****@osdn*****
Tue May 23 02:56:45 JST 2023


#47292: Unit counters framework

  Open Date: 2023-02-03 03:25
Last Update: 2023-05-23 02:56

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/47292
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=47292

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2023-05-23 02:56 Updated by: lachu

Comment:

2023-05-23 02:55 Updated by: lachu
File 0001-OSDN-47292-S-awomir-Lach-slawek-lach.art.pl.patch (File ID: 12452) is attached
I send to check if problems were fixed. It still has one problem: when we load ruleset from previous games and set counter_type to unit, it will load it without panic. I must check if ruleset version is older and check if counter_type is different than city.

---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: (None)
          Type: Patches
        Status: Open
      Priority: 5 - Medium
     MileStone: 3.3.0
     Component: General
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

Add initial support for unit counters. No need to implement any counter behavior in this ticket - current counters code should be flexible enough to work (iterate over) zero counter behaviors and counter instances.
---
- Add counter_target type "Unit"
- Add counters_get_unit_counters_count()
- Implement unit_counters_iterate(pcount) macro (mostly by copying ciyt_counters_iterate() and modifying a bit)
- Add "counter_values" to unit structure
Savegame part likely isn't as trivial "copy from city counters implementation" -> let's leave that to another ticket.


-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/47292
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=47292



More information about the Freeciv-tickets mailing list
Back to archive index