]> git.stg.codes - stg.git/blobdiff - include/stg/corp_conf.h
Basic corporations implementation added
[stg.git] / include / stg / corp_conf.h
index e29a5dcf24bf27934f7ee32ec6f368d274eddae0..d6cc2ebbe626f5422de591c3f9e47f26d4e97a83 100644 (file)
@@ -5,6 +5,7 @@
 
 struct CORP_CONF
 {
+CORP_CONF() : name(), cash(0) {}
 CORP_CONF(const std::string & n) : name(n), cash(0) {}
 CORP_CONF(const std::string & n, double c) : name(n), cash(c) {}
 
@@ -12,4 +13,10 @@ std::string name;
 double      cash;
 };
 
+inline
+bool operator==(const CORP_CONF & a, const CORP_CONF & b)
+{
+return a.name == b.name;
+}
+
 #endif //CORP_CONF_H