src/news_type.h
changeset 9658 f5c4d3c04b5d
parent 9469 520cbe2f5d14
child 9739 9cf125da8789
--- a/src/news_type.h	Fri Jul 18 12:20:31 2008 +0000
+++ b/src/news_type.h	Fri Jul 18 16:26:51 2008 +0000
@@ -109,7 +109,26 @@
 	uint data_a;           ///< Custom data 1 (usually tile or vehicle)
 	uint data_b;           ///< Custom data 2
 
+	void *free_data;       ///< Data to be freed when the news item has reached it's end.
+
 	uint64 params[10];
 };
 
+/**
+ * Data that needs to be stored for company news messages.
+ * The problem with company news messages are the custom name
+ * of the companies and the fact that the company data is reset,
+ * resulting in wrong names and such.
+ */
+struct CompanyNewsInformation {
+	char company_name[64];       ///< The name of the company
+	char president_name[64];     ///< The name of the president
+	char other_company_name[64]; ///< The name of the company taking over this one
+
+	uint32 face; ///< The face of the president
+	byte colour; ///< The colour related to the company
+
+	void FillData(const struct Player *p, const struct Player *other = NULL);
+};
+
 #endif /* NEWS_TYPE_H */