wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src unit_types.cpp unit_types.hpp


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src unit_types.cpp unit_types.hpp
Date: Wed, 23 Mar 2005 03:24:05 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    05/03/23 08:24:05

Modified files:
        src            : unit_types.cpp unit_types.hpp 

Log message:
        Move the implementation out of the interface.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/unit_types.cpp.diff?tr1=1.91&tr2=1.92&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/unit_types.hpp.diff?tr1=1.63&tr2=1.64&r1=text&r2=text

Patches:
Index: wesnoth/src/unit_types.cpp
diff -u wesnoth/src/unit_types.cpp:1.91 wesnoth/src/unit_types.cpp:1.92
--- wesnoth/src/unit_types.cpp:1.91     Tue Mar 22 23:42:37 2005
+++ wesnoth/src/unit_types.cpp  Wed Mar 23 08:24:05 2005
@@ -1,4 +1,4 @@
-/* $Id: unit_types.cpp,v 1.91 2005/03/22 23:42:37 ydirson Exp $ */
+/* $Id: unit_types.cpp,v 1.92 2005/03/23 08:24:05 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -893,6 +893,12 @@
                return utils::split(val);
 }
 
+const config::child_list& unit_type::modification_advancements() const
+{
+       return cfg_.get_children("advancement");
+}
+
+
 const std::string& unit_type::usage() const
 {
        return cfg_["usage"];
Index: wesnoth/src/unit_types.hpp
diff -u wesnoth/src/unit_types.hpp:1.63 wesnoth/src/unit_types.hpp:1.64
--- wesnoth/src/unit_types.hpp:1.63     Tue Mar 22 01:14:14 2005
+++ wesnoth/src/unit_types.hpp  Wed Mar 23 08:24:05 2005
@@ -1,4 +1,4 @@
-/* $Id: unit_types.hpp,v 1.63 2005/03/22 01:14:14 Sirp Exp $ */
+/* $Id: unit_types.hpp,v 1.64 2005/03/23 08:24:05 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -194,7 +194,7 @@
 
        int experience_needed() const;
        std::vector<std::string> advances_to() const;
-       const config::child_list& modification_advancements() const { return 
cfg_.get_children("advancement"); }
+       const config::child_list& modification_advancements() const;
        const std::string& usage() const;
 
        struct experience_accelerator {




reply via email to

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