Author: alink
Date: Sat May  5 22:10:35 2007
New Revision: 17346

URL: http://svn.gna.org/viewcvs/wesnoth?rev=17346&view=rev
Log:
add variables and functions for the flag_icon of a team

Modified:
    trunk/src/team.cpp
    trunk/src/team.hpp

Modified: trunk/src/team.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/team.cpp?rev=17346&r1=17345&r2=17346&view=diff
==============================================================================
--- trunk/src/team.cpp (original)
+++ trunk/src/team.cpp Sat May  5 22:10:35 2007
@@ -135,6 +135,7 @@
        }
 
        flag = cfg["flag"];
+       flag_icon = cfg["flag_icon"];
 
        description = cfg["description"];
        objectives = cfg["objectives"];
@@ -269,6 +270,7 @@
        cfg["save_id"] = save_id;
        cfg["current_player"] = current_player;
        cfg["flag"] = flag;
+       cfg["flag_icon"] = flag_icon;
        cfg["description"] = description;
        cfg["objectives"] = objectives;
        cfg["objectives_changed"] = objectives_changed ? "yes" : "no";

Modified: trunk/src/team.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/team.hpp?rev=17346&r1=17345&r2=17346&view=diff
==============================================================================
--- trunk/src/team.hpp (original)
+++ trunk/src/team.hpp Sat May  5 22:10:35 2007
@@ -81,6 +81,7 @@
                int action_bonus_count;
 
                std::string flag;
+               std::string flag_icon;
 
                std::string description;
 
@@ -200,6 +201,7 @@
                                         const std::string& user_name);
 
        const std::string& flag() const { return info_.flag; }
+       const std::string& flag_icon() const { return info_.flag_icon; }
 
        const std::string& ai_algorithm() const { return info_.ai_algorithm; }
        const config& ai_parameters() const { return aiparams_; }


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

Reply via email to