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