Common return value for all commands.
Types related to commands.
@ CMDT_OTHER_MANAGEMENT
Renaming stuff, changing company colours, placing signs, etc.
DoCommandFlag
List of flags for a command.
@ CMD_GOAL_QUESTION_ANSWER
answer(s) to CMD_GOAL_QUESTION
@ CMD_SET_GOAL_DESTINATION
update goal destination of a goal
@ CMD_GOAL_QUESTION
ask a goal related question
@ CMD_CREATE_GOAL
create a new goal
@ CMD_SET_GOAL_COMPLETED
update goal completed status of a goal
@ CMD_SET_GOAL_TEXT
update goal text of a goal
@ CMD_SET_GOAL_PROGRESS
update goal progress text of a goal
@ CMD_REMOVE_GOAL
remove a goal
@ CMD_STR_CTRL
the command's string may contain control strings
@ CMD_DEITY
the command may be executed by COMPANY_DEITY
Owner
Enum for all companies/owners.
CommandCost CmdSetGoalText(DoCommandFlag flags, GoalID goal, const std::string &text)
Update goal text of a goal.
CommandCost CmdRemoveGoal(DoCommandFlag flags, GoalID goal)
Remove a goal.
CommandCost CmdSetGoalDestination(DoCommandFlag flags, GoalID goal, GoalType type, GoalTypeID dest)
Update goal destination of a goal.
CommandCost CmdSetGoalProgress(DoCommandFlag flags, GoalID goal, const std::string &text)
Update progress text of a goal.
std::tuple< CommandCost, GoalID > CmdCreateGoal(DoCommandFlag flags, CompanyID company, GoalType type, GoalTypeID dest, const std::string &text)
Create a new goal.
CommandCost CmdSetGoalCompleted(DoCommandFlag flags, GoalID goal, bool completed)
Update completed state of a goal.
CommandCost CmdGoalQuestionAnswer(DoCommandFlag flags, uint16_t uniqueid, uint8_t button)
Reply to a goal question.
CommandCost CmdGoalQuestion(DoCommandFlag flags, uint16_t uniqueid, uint32_t target, bool is_client, uint32_t button_mask, GoalQuestionType type, const std::string &text)
Ask a goal related question.
basic types related to goals
uint16_t GoalID
ID of a goal.
GoalType
Types of goal destinations.
uint32_t GoalTypeID
Contains either tile, industry ID, town ID, company ID, or story page ID.