mirror of https://github.com/OpenRCT2/OpenRCT2.git
Move NewsItemQueue methods implementation to .cpp
This commit is contained in:
parent
efa92a28fa
commit
4f698387f6
|
@ -39,6 +39,26 @@ const uint8_t news_type_properties[] = {
|
||||||
NEWS_TYPE_HAS_SUBJECT, // NEWS_ITEM_GRAPH
|
NEWS_TYPE_HAS_SUBJECT, // NEWS_ITEM_GRAPH
|
||||||
};
|
};
|
||||||
|
|
||||||
|
NewsItem& NewsItemQueue::Current()
|
||||||
|
{
|
||||||
|
return Recent[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
const NewsItem& NewsItemQueue::Current() const
|
||||||
|
{
|
||||||
|
return Recent[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
NewsItem& NewsItemQueue::Oldest()
|
||||||
|
{
|
||||||
|
return Old[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
const NewsItem& NewsItemQueue::Oldest() const
|
||||||
|
{
|
||||||
|
return Old[0];
|
||||||
|
}
|
||||||
|
|
||||||
bool news_item_is_valid_idx(int32_t index)
|
bool news_item_is_valid_idx(int32_t index)
|
||||||
{
|
{
|
||||||
if (index >= MAX_NEWS_ITEMS)
|
if (index >= MAX_NEWS_ITEMS)
|
||||||
|
|
|
@ -72,22 +72,10 @@ struct NewsItemQueue
|
||||||
bool IsEmpty() const;
|
bool IsEmpty() const;
|
||||||
void Init();
|
void Init();
|
||||||
uint16_t IncrementTicks();
|
uint16_t IncrementTicks();
|
||||||
NewsItem& Current()
|
NewsItem& Current();
|
||||||
{
|
const NewsItem& Current() const;
|
||||||
return Recent[0];
|
NewsItem& Oldest();
|
||||||
}
|
const NewsItem& Oldest() const;
|
||||||
const NewsItem& Current() const
|
|
||||||
{
|
|
||||||
return Recent[0];
|
|
||||||
}
|
|
||||||
NewsItem& Oldest()
|
|
||||||
{
|
|
||||||
return Old[0];
|
|
||||||
}
|
|
||||||
const NewsItem& Oldest() const
|
|
||||||
{
|
|
||||||
return Old[0];
|
|
||||||
}
|
|
||||||
bool IsCurrentOld() const;
|
bool IsCurrentOld() const;
|
||||||
void MoveCurrentToOld();
|
void MoveCurrentToOld();
|
||||||
NewsItem* FirstOpenSlot();
|
NewsItem* FirstOpenSlot();
|
||||||
|
|
Loading…
Reference in New Issue