Author: mordante
Date: Sat Mar 22 17:49:48 2008
New Revision: 24985
URL: http://svn.gna.org/viewcvs/wesnoth?rev=24985&view=rev
Log:
Add has_key member.
Modified:
trunk/src/formula_callable.hpp
Modified: trunk/src/formula_callable.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/formula_callable.hpp?rev=24985&r1=24984&r2=24985&view=diff
==============================================================================
--- trunk/src/formula_callable.hpp (original)
+++ trunk/src/formula_callable.hpp Sat Mar 22 17:49:48 2008
@@ -69,6 +69,9 @@
void serialize(std::string& str) const {
serialize_to_string(str);
}
+
+ bool has_key(const std::string& key) const
+ { return !query_value(key).is_null(); }
protected:
virtual ~formula_callable() {}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits