File diff r27165:ea28ecab6159 → r27166:64e04a3ef9b1
src/story_base.h
Show inline comments
 
@@ -9,13 +9,13 @@
 

	
 
#ifndef STORY_BASE_H
 
#define STORY_BASE_H
 

	
 
#include "company_type.h"
 
#include "story_type.h"
 
#include "date_type.h"
 
#include "timer/timer_game_calendar.h"
 
#include "gfx_type.h"
 
#include "vehicle_type.h"
 
#include "core/pool_type.hpp"
 

	
 
typedef Pool<StoryPageElement, StoryPageElementID, 64, 64000> StoryPageElementPool;
 
typedef Pool<StoryPage, StoryPageID, 64, 64000> StoryPagePool;
 
@@ -160,13 +160,13 @@ struct StoryPageElement : StoryPageEleme
 
	inline ~StoryPageElement() { free(this->text); }
 
};
 

	
 
/** Struct about stories, current and completed */
 
struct StoryPage : StoryPagePool::PoolItem<&_story_page_pool> {
 
	uint32 sort_value;   ///< A number that increases for every created story page. Used for sorting. The id of a story page is the pool index.
 
	Date date;           ///< Date when the page was created.
 
	TimerGameCalendar::Date date; ///< Date when the page was created.
 
	CompanyID company;   ///< StoryPage is for a specific company; INVALID_COMPANY if it is global
 

	
 
	char *title;         ///< Title of story page
 

	
 
	/**
 
	 * We need an (empty) constructor so struct isn't zeroed (as C++ standard states)