Owner
Enum for all companies/owners.
Struct about goals, current and completed.
Goal()
We need an (empty) constructor so struct isn't zeroed (as C++ standard states)
Definition of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle...
GoalTypeID dst
Index of type.
GoalType
Types of goal destinations.
~Goal()
(Empty) destructor has to be defined else operator delete might be called with nullptr parameter ...
basic types related to goals
Base class for all PoolItems.
Base class for all pools.
char * progress
Progress text of the goal.
bool completed
Is the goal completed or not?
Types related to companies.
static void free(const void *ptr)
Version of the standard free that accepts const pointers.
CompanyID company
Goal is for a specific company; INVALID_COMPANY if it is global.
char * text
Text of the goal.
GoalType type
Type of the goal.
uint32 GoalTypeID
Contains either tile, industry ID, town ID or company ID (or INVALID_GOALTYPE)