19extern GoalPool _goal_pool;
22struct Goal : GoalPool::PoolItem<&_goal_pool> {
Container for an encoded string, created by GetEncodedString.
Types related to companies.
Basic types related to goals.
GoalType
Types of goal destinations.
@ GT_NONE
Destination is not linked.
uint32_t GoalTypeID
Contains either tile, industry ID, town ID, company ID, or story page ID.
PoolID< uint16_t, struct GoalIDTag, 64000, 0xFFFF > GoalID
ID of a goal.
Definition of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle,...
Types related to strings.
~Goal()
(Empty) destructor has to be defined else operator delete might be called with nullptr parameter
EncodedString progress
Progress text of the goal.
EncodedString text
Text of the goal.
bool completed
Is the goal completed or not?
GoalType type
Type of the goal.
GoalTypeID dst
Index of type.
CompanyID company
Goal is for a specific company; CompanyID::Invalid() if it is global.
Base class for all pools.