Class News

java.lang.Object
mekhq.campaign.universe.News

public class News extends Object
Instead of making this a static like Planets, we are just going to reload a years worth of news items at the start of every year, to cut down on memory usage. If this slows things down too much on year turn over we can reconsider
  • Constructor Details

    • News

      public News(int year, long seed)
  • Method Details

    • getNewsItem

      public NewsItem getNewsItem(int id)
    • fetchNewsFor

      public List<NewsItem> fetchNewsFor(LocalDate d)
    • loadNewsFor

      public void loadNewsFor(int year, long seed)