42 #define FOR_ALL_GOALS_FROM(var, start) FOR_ALL_ITEMS_FROM(Goal, goal_index, var, start) 43 #define FOR_ALL_GOALS(var) FOR_ALL_GOALS_FROM(var, 0) Struct about goals, current and completed.
Goal()
We need an (empty) constructor so struct isn't zeroed (as C++ standard states)
Defintion of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle...
GoalTypeID dst
Index of type.
~Goal()
(Empty) destructor has to be defined else operator delete might be called with NULL parameter ...
GoalTypeByte type
Type of the goal.
basic types related to goals
Base class for all PoolItems.
Base class for all pools.
CompanyByte company
Goal is for a specific company; INVALID_COMPANY if it is global.
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.
char * text
Text of the goal.
uint32 GoalTypeID
Contains either tile, industry ID, town ID or company ID (or INVALID_GOALTYPE)