URL:
  <http://gna.org/patch/?1100>

                 Summary: Team-specific items/overlays
                 Project: Battle for Wesnoth
            Submitted by: broodkiller
            Submitted on: Wednesday 08/27/2008 at 19:16
                Priority: 3 - Low
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

This is in response to zookeeper's feature request for team-specific
items/overlays:

https://gna.org/bugs/?11817

It adds support for a "team_name" key, which should contain the name of the
team(s) for whom a specific [item] is to be displayed. If no team_name is
specified, the overlays are left displayed for everyone. If a team's name is
not in the team_name value, the item's overlay is removed for it's turn. If a
team's name is in the team_name value, the code checks if this particular
overlay already exists on this particular location (for example from a
previous turn by a team who was allowed to see it) and adds it if it's not
there.

Attached is a text file with diffs of 3 files being changed:
-game_display.cpp (main code+1 include)
-game_display.hpp (1 declaration)
-playsingle_controller.cpp (1 call)

>From what I tested it seems to be working, but what may need tweaking is the
exact position of the call to the parse_team_overlays(). Currently it is
called as the very first thing in play_turn(), but I fear that a player may
still see an overlay getting removed. However, it must be called each turn,
so I am not sure where else to place it.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wednesday 08/27/2008 at 19:16  Name: patch_team_specific_overlays.txt 
Size: 3kB   By: broodkiller

<http://gna.org/patch/download.php?file_id=4742>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?1100>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to