4 * This file is part of OpenTTD.
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
10 /** @file command_type.h Types related to commands. */
12 #ifndef COMMAND_TYPE_H
13 #define COMMAND_TYPE_H
15 #include "economy_type.h"
16 #include "strings_type.h"
17 #include "tile_type.h"
22 * Common return value for all commands. Wraps the cost and///
23 * a possible error message/state together.
26 ExpensesType expense_type
; ///< the type of expence as shown on the finances view
27 Money cost
; ///< The cost of this action
28 StringID message
; ///< Warning message for when success is unset
29 bool success
; ///< Whether the comment went fine up to this moment
30 const GRFFile
*textref_stack_grffile
; ///< NewGRF providing the #TextRefStack content.
31 uint textref_stack_size
; ///< Number of uint32 values to put on the #TextRefStack for the error message.
33 static uint32 textref_stack
[16];
37 * Creates a command cost return with no cost and no error
39 CommandCost() : expense_type(INVALID_EXPENSES
), cost(0), message(INVALID_STRING_ID
), success(true), textref_stack_grffile(nullptr), textref_stack_size(0) {}
42 * Creates a command return value the is failed with the given message
44 explicit CommandCost(StringID msg
) : expense_type(INVALID_EXPENSES
), cost(0), message(msg
), success(false), textref_stack_grffile(nullptr), textref_stack_size(0) {}
47 * Creates a command cost with given expense type and start cost of 0
48 * @param ex_t the expense type
50 explicit CommandCost(ExpensesType ex_t
) : expense_type(ex_t
), cost(0), message(INVALID_STRING_ID
), success(true), textref_stack_grffile(nullptr), textref_stack_size(0) {}
53 * Creates a command return value with the given start cost and expense type
54 * @param ex_t the expense type
55 * @param cst the initial cost of this command
57 CommandCost(ExpensesType ex_t
, const Money
&cst
) : expense_type(ex_t
), cost(cst
), message(INVALID_STRING_ID
), success(true), textref_stack_grffile(nullptr), textref_stack_size(0) {}
61 * Adds the given cost to the cost of the command.
62 * @param cost the cost to add
64 inline void AddCost(const Money
&cost
)
69 void AddCost(const CommandCost
&cmd_cost
);
72 * Multiplies the cost of the command by the given factor.
73 * @param factor factor to multiply the costs with
75 inline void MultiplyCost(int factor
)
81 * The costs as made up to this moment
84 inline Money
GetCost() const
90 * The expense type of the cost
91 * @return the expense type
93 inline ExpensesType
GetExpensesType() const
95 return this->expense_type
;
99 * Makes this #CommandCost behave like an error command.
100 * @param message The error message.
102 void MakeError(StringID message
)
104 assert(message
!= INVALID_STRING_ID
);
105 this->success
= false;
106 this->message
= message
;
109 void UseTextRefStack(const GRFFile
*grffile
, uint num_registers
);
112 * Returns the NewGRF providing the #TextRefStack of the error message.
113 * @return the NewGRF.
115 const GRFFile
*GetTextRefStackGRF() const
117 return this->textref_stack_grffile
;
121 * Returns the number of uint32 values for the #TextRefStack of the error message.
122 * @return number of uint32 values.
124 uint
GetTextRefStackSize() const
126 return this->textref_stack_size
;
130 * Returns a pointer to the values for the #TextRefStack of the error message.
131 * @return uint32 values for the #TextRefStack
133 const uint32
*GetTextRefStack() const
135 return textref_stack
;
139 * Returns the error message of a command
140 * @return the error message, if succeeded #INVALID_STRING_ID
142 StringID
GetErrorMessage() const
144 if (this->success
) return INVALID_STRING_ID
;
145 return this->message
;
149 * Did this command succeed?
150 * @return true if and only if it succeeded
152 inline bool Succeeded() const
154 return this->success
;
158 * Did this command fail?
159 * @return true if and only if it failed
161 inline bool Failed() const
163 return !this->success
;
170 * This enum defines all possible commands which can be executed to the game
171 * engine. Observing the game like the query-tool or checking the profit of a
172 * vehicle don't result in a command which should be executed in the engine
173 * nor send to the server in a network game.
175 * @see _command_proc_table
178 CMD_BUILD_RAILROAD_TRACK
, ///< build a rail track
179 CMD_REMOVE_RAILROAD_TRACK
, ///< remove a rail track
180 CMD_BUILD_SINGLE_RAIL
, ///< build a single rail track
181 CMD_REMOVE_SINGLE_RAIL
, ///< remove a single rail track
182 CMD_LANDSCAPE_CLEAR
, ///< demolish a tile
183 CMD_BUILD_BRIDGE
, ///< build a bridge
184 CMD_BUILD_RAIL_STATION
, ///< build a rail station
185 CMD_BUILD_TRAIN_DEPOT
, ///< build a train depot
186 CMD_BUILD_SIGNALS
, ///< build a signal
187 CMD_REMOVE_SIGNALS
, ///< remove a signal
188 CMD_TERRAFORM_LAND
, ///< terraform a tile
189 CMD_BUILD_OBJECT
, ///< build an object
190 CMD_BUILD_TUNNEL
, ///< build a tunnel
192 CMD_REMOVE_FROM_RAIL_STATION
, ///< remove a (rectangle of) tiles from a rail station
193 CMD_CONVERT_RAIL
, ///< convert a rail type
195 CMD_BUILD_RAIL_WAYPOINT
, ///< build a waypoint
196 CMD_RENAME_WAYPOINT
, ///< rename a waypoint
197 CMD_REMOVE_FROM_RAIL_WAYPOINT
, ///< remove a (rectangle of) tiles from a rail waypoint
199 CMD_BUILD_ROAD_STOP
, ///< build a road stop
200 CMD_REMOVE_ROAD_STOP
, ///< remove a road stop
201 CMD_BUILD_LONG_ROAD
, ///< build a complete road (not a "half" one)
202 CMD_REMOVE_LONG_ROAD
, ///< remove a complete road (not a "half" one)
203 CMD_BUILD_ROAD
, ///< build a "half" road
204 CMD_BUILD_ROAD_DEPOT
, ///< build a road depot
205 CMD_CONVERT_ROAD
, ///< convert a road type
207 CMD_BUILD_AIRPORT
, ///< build an airport
208 CMD_BUILD_SEAPLANE_AIRPORT
, ///< build a seaplane airport
210 CMD_BUILD_DOCK
, ///< build a dock
212 CMD_BUILD_SHIP_DEPOT
, ///< build a ship depot
213 CMD_BUILD_BUOY
, ///< build a buoy
215 CMD_PLANT_TREE
, ///< plant a tree
217 CMD_BUILD_VEHICLE
, ///< build a vehicle
218 CMD_SELL_VEHICLE
, ///< sell a vehicle
219 CMD_REFIT_VEHICLE
, ///< refit the cargo space of a vehicle
220 CMD_SEND_VEHICLE_TO_DEPOT
, ///< send a vehicle to a depot
221 CMD_SET_VEHICLE_VISIBILITY
, ///< hide or unhide a vehicle in the build vehicle and autoreplace GUIs
223 CMD_MOVE_RAIL_VEHICLE
, ///< move a rail vehicle (in the depot)
224 CMD_FORCE_TRAIN_PROCEED
, ///< proceed a train to pass a red signal
225 CMD_REVERSE_TRAIN_DIRECTION
, ///< turn a train around
227 CMD_CLEAR_ORDER_BACKUP
, ///< clear the order backup of a given user/tile
228 CMD_MODIFY_ORDER
, ///< modify an order (like set full-load)
229 CMD_SKIP_TO_ORDER
, ///< skip an order to the next of specific one
230 CMD_DELETE_ORDER
, ///< delete an order
231 CMD_INSERT_ORDER
, ///< insert a new order
233 CMD_CHANGE_SERVICE_INT
, ///< change the server interval of a vehicle
235 CMD_BUILD_INDUSTRY
, ///< build a new industry
237 CMD_SET_COMPANY_MANAGER_FACE
, ///< set the manager's face of the company
238 CMD_SET_COMPANY_COLOUR
, ///< set the colour of the company
240 CMD_INCREASE_LOAN
, ///< increase the loan from the bank
241 CMD_DECREASE_LOAN
, ///< decrease the loan from the bank
243 CMD_WANT_ENGINE_PREVIEW
, ///< confirm the preview of an engine
245 CMD_SET_VEHICLE_UNIT_NUMBER
, ///< sets the unit number of a vehicle
247 CMD_RENAME_VEHICLE
, ///< rename a whole vehicle
248 CMD_RENAME_ENGINE
, ///< rename a engine (in the engine list)
249 CMD_RENAME_COMPANY
, ///< change the company name
250 CMD_RENAME_PRESIDENT
, ///< change the president name
251 CMD_RENAME_STATION
, ///< rename a station
252 CMD_RENAME_DEPOT
, ///< rename a depot
254 CMD_PLACE_SIGN
, ///< place a sign
255 CMD_RENAME_SIGN
, ///< rename a sign
257 CMD_TURN_ROADVEH
, ///< turn a road vehicle around
259 CMD_PAUSE
, ///< pause the game
261 CMD_BUY_SHARE_IN_COMPANY
, ///< buy a share from a company
262 CMD_SELL_SHARE_IN_COMPANY
, ///< sell a share from a company
263 CMD_BUY_COMPANY
, ///< buy a company which is bankrupt
265 CMD_FOUND_TOWN
, ///< found a town
266 CMD_RENAME_TOWN
, ///< rename a town
267 CMD_DO_TOWN_ACTION
, ///< do a action from the town detail window (like advertises or bribe)
268 CMD_TOWN_CARGO_GOAL
, ///< set the goal of a cargo for a town
269 CMD_TOWN_GROWTH_RATE
, ///< set the town growth rate
270 CMD_TOWN_SET_TEXT
, ///< set the custom text of a town
271 CMD_EXPAND_TOWN
, ///< expand a town
272 CMD_DELETE_TOWN
, ///< delete a town
274 CMD_ORDER_REFIT
, ///< change the refit information of an order (for "goto depot" )
275 CMD_CLONE_ORDER
, ///< clone (and share) an order
276 CMD_CLEAR_AREA
, ///< clear an area
278 CMD_MONEY_CHEAT
, ///< do the money cheat
279 CMD_CHANGE_BANK_BALANCE
, ///< change bank balance to charge costs or give money from a GS
280 CMD_BUILD_CANAL
, ///< build a canal
282 CMD_CREATE_SUBSIDY
, ///< create a new subsidy
283 CMD_COMPANY_CTRL
, ///< used in multiplayer to create a new companies etc.
284 CMD_CUSTOM_NEWS_ITEM
, ///< create a custom news message
285 CMD_CREATE_GOAL
, ///< create a new goal
286 CMD_REMOVE_GOAL
, ///< remove a goal
287 CMD_SET_GOAL_TEXT
, ///< update goal text of a goal
288 CMD_SET_GOAL_PROGRESS
, ///< update goal progress text of a goal
289 CMD_SET_GOAL_COMPLETED
, ///< update goal completed status of a goal
290 CMD_GOAL_QUESTION
, ///< ask a goal related question
291 CMD_GOAL_QUESTION_ANSWER
, ///< answer(s) to CMD_GOAL_QUESTION
292 CMD_CREATE_STORY_PAGE
, ///< create a new story page
293 CMD_CREATE_STORY_PAGE_ELEMENT
, ///< create a new story page element
294 CMD_UPDATE_STORY_PAGE_ELEMENT
, ///< update a story page element
295 CMD_SET_STORY_PAGE_TITLE
, ///< update title of a story page
296 CMD_SET_STORY_PAGE_DATE
, ///< update date of a story page
297 CMD_SHOW_STORY_PAGE
, ///< show a story page
298 CMD_REMOVE_STORY_PAGE
, ///< remove a story page
299 CMD_REMOVE_STORY_PAGE_ELEMENT
, ///< remove a story page element
300 CMD_LEVEL_LAND
, ///< level land
302 CMD_BUILD_LOCK
, ///< build a lock
304 CMD_BUILD_SIGNAL_TRACK
, ///< add signals along a track (by dragging)
305 CMD_REMOVE_SIGNAL_TRACK
, ///< remove signals along a track (by dragging)
307 CMD_GIVE_MONEY
, ///< give money to another company
308 CMD_CHANGE_SETTING
, ///< change a setting
309 CMD_CHANGE_COMPANY_SETTING
, ///< change a company setting
311 CMD_SET_AUTOREPLACE
, ///< set an autoreplace entry
313 CMD_TOGGLE_REUSE_DEPOT_VEHICLES
, ///< toggle 'reuse depot vehicles' on template
314 CMD_TOGGLE_KEEP_REMAINING_VEHICLES
, ///< toggle 'keep remaining vehicles' on template
315 CMD_TOGGLE_REFIT_AS_TEMPLATE
, ///< toggle 'refit as template' on template
317 CMD_VIRTUAL_TRAIN_FROM_TEMPLATE_VEHICLE
, ///< Creates a virtual train from a template
318 CMD_VIRTUAL_TRAIN_FROM_TRAIN
, ///< Creates a virtual train from a regular train
319 CMD_DELETE_VIRTUAL_TRAIN
, ///< Delete a virtual train
320 CMD_BUILD_VIRTUAL_RAIL_VEHICLE
, ///< Build a virtual train
321 CMD_REPLACE_TEMPLATE_VEHICLE
, ///< Replace a template vehicle with another one based on a virtual train
323 CMD_CLONE_TEMPLATE_VEHICLE_FROM_TRAIN
, ///< clone a train and create a new template vehicle based on it
324 CMD_DELETE_TEMPLATE_VEHICLE
, ///< delete a template vehicle
326 CMD_ISSUE_TEMPLATE_REPLACEMENT
, ///< issue a template replacement for a vehicle group
327 CMD_DELETE_TEMPLATE_REPLACEMENT
, ///< delete a template replacement from a vehicle group
329 CMD_CLONE_VEHICLE
, ///< clone a vehicle
330 CMD_START_STOP_VEHICLE
, ///< start or stop a vehicle
331 CMD_MASS_START_STOP
, ///< start/stop all vehicles (in a depot)
332 CMD_AUTOREPLACE_VEHICLE
, ///< replace/renew a vehicle while it is in a depot
333 CMD_TEMPLATE_REPLACE_VEHICLE
, ///< template replace a vehicle while it is in a depot
334 CMD_DEPOT_SELL_ALL_VEHICLES
, ///< sell all vehicles which are in a given depot
335 CMD_GROUP_SELL_ALL_VEHICLES
, ///< sell all vehicles which are in a given group
336 CMD_DEPOT_MASS_AUTOREPLACE
, ///< force the autoreplace to take action in a given depot
338 CMD_CREATE_GROUP
, ///< create a new group
339 CMD_CREATE_GROUP_SPECIFIC_NAME
, ///< create a new group
340 CMD_DELETE_GROUP
, ///< delete a group
341 CMD_ALTER_GROUP
, ///< alter a group
342 CMD_ADD_VEHICLE_GROUP
, ///< add a vehicle to a group
343 CMD_ADD_SHARED_VEHICLE_GROUP
, ///< add all other shared vehicles to a group which are missing
344 CMD_REMOVE_ALL_VEHICLES_GROUP
, ///< remove all vehicles from a group
345 CMD_AUTO_GROUP_VEHICLES
, ///< create groups for all vehicles of a certain type that are not yet in any group
346 CMD_SET_GROUP_REPLACE_PROTECTION
, ///< set the autoreplace-protection for a group
348 CMD_MOVE_ORDER
, ///< move an order
349 CMD_CHANGE_TIMETABLE
, ///< change the timetable for a vehicle
350 CMD_BULK_CHANGE_TIMETABLE
, ///< change the timetable for all orders of a vehicle
351 CMD_SET_VEHICLE_ON_TIME
, ///< set the vehicle on time feature (timetable)
352 CMD_AUTOMATE_TIMETABLE
, ///< automatically fill and update the timetable
353 CMD_CONFIRM_ALL
, ///< confirms all estimated wait and travel times as timetabled
354 CMD_REINIT_SEPARATION
, ///< reinit timetable separation with new parameters
356 CMD_OPEN_CLOSE_AIRPORT
, ///< open/close an airport to incoming aircraft
361 CMD_REMOVE_PLAN_LINE
,
362 CMD_CHANGE_PLAN_VISIBILITY
,
365 CMD_PROGRAM_TRACERESTRICT_SIGNAL
, ///< modify a signal tracerestrict program
366 CMD_CREATE_TRACERESTRICT_SLOT
, ///< create a tracerestrict slot
367 CMD_ALTER_TRACERESTRICT_SLOT
, ///< alter a tracerestrict slot
368 CMD_DELETE_TRACERESTRICT_SLOT
, ///< delete a tracerestrict slot
369 CMD_ADD_VEHICLE_TRACERESTRICT_SLOT
, ///< add a vehicle to a tracerestrict slot
370 CMD_REMOVE_VEHICLE_TRACERESTRICT_SLOT
, ///< remove a vehicle from a tracerestrict slot
372 CMD_PROGRAM_LOGIC_SIGNAL
, ///< modify a logic signal program
374 CMD_DESYNC_CHECK
, ///< Force desync checks to be run
376 CMD_END
, ///< Must ALWAYS be on the end of this list!! (period)
380 * List of flags for a command.
382 * This enums defines some flags which can be used for the commands.
385 DC_NONE
= 0x000, ///< no flag is set
386 DC_EXEC
= 0x001, ///< execute the given command
387 DC_AUTO
= 0x002, ///< don't allow building on structures
388 DC_QUERY_COST
= 0x004, ///< query cost only, don't build.
389 DC_NO_WATER
= 0x008, ///< don't allow building on water
390 DC_NO_RAIL_OVERLAP
= 0x010, ///< don't allow overlap of rails (used in buildrail)
391 DC_NO_TEST_TOWN_RATING
= 0x020, ///< town rating does not disallow you from building
392 DC_BANKRUPT
= 0x040, ///< company bankrupts, skip money check, skip vehicle on tile check in some cases
393 DC_AUTOREPLACE
= 0x080, ///< autoreplace/autorenew is in progress, this shall disable vehicle limits when building, and ignore certain restrictions when undoing things (like vehicle attach callback)
394 DC_NO_CARGO_CAP_CHECK
= 0x100, ///< when autoreplace/autorenew is in progress, this shall prevent truncating the amount of cargo in the vehicle to prevent testing the command to remove cargo
395 DC_ALL_TILES
= 0x200, ///< allow this command also on MP_VOID tiles
396 DC_NO_MODIFY_TOWN_RATING
= 0x400, ///< do not change town rating
397 DC_FORCE_CLEAR_TILE
= 0x800, ///< do not only remove the object on the tile, but also clear any water left on it
399 DECLARE_ENUM_AS_BIT_SET(DoCommandFlag
)
402 * Used to combine a StringID with the command.
404 * This macro can be used to add a StringID (the error message to show) on a command-id
405 * (CMD_xxx). Use the binary or-operator "|" to combine the command with the result from
408 * @param x The StringID to combine with a command-id
410 #define CMD_MSG(x) ((x) << 16)
413 * Defines some flags.
415 * This enumeration defines some flags which are binary-or'ed on a command.
417 enum FlaggedCommands
{
418 CMD_NETWORK_COMMAND
= 0x0100, ///< execute the command without sending it on the network
419 CMD_FLAGS_MASK
= 0xFF00, ///< mask for all command flags
420 CMD_ID_MASK
= 0x00FF, ///< mask for the command ID
424 * Command flags for the command table _command_proc_table.
426 * This enumeration defines flags for the _command_proc_table.
429 CMD_SERVER
= 0x001, ///< the command can only be initiated by the server
430 CMD_SPECTATOR
= 0x002, ///< the command may be initiated by a spectator
431 CMD_OFFLINE
= 0x004, ///< the command cannot be executed in a multiplayer game; single-player only
432 CMD_AUTO
= 0x008, ///< set the DC_AUTO flag on this command
433 CMD_ALL_TILES
= 0x010, ///< allow this command also on MP_VOID tiles
434 CMD_NO_TEST
= 0x020, ///< the command's output may differ between test and execute due to town rating changes etc.
435 CMD_NO_WATER
= 0x040, ///< set the DC_NO_WATER flag on this command
436 CMD_CLIENT_ID
= 0x080, ///< set p2 with the ClientID of the sending client.
437 CMD_DEITY
= 0x100, ///< the command may be executed by COMPANY_DEITY
438 CMD_STR_CTRL
= 0x200, ///< the command's string may contain control strings
440 DECLARE_ENUM_AS_BIT_SET(CommandFlags
)
442 /** Types of commands we have. */
444 CMDT_LANDSCAPE_CONSTRUCTION
, ///< Construction and destruction of objects on the map.
445 CMDT_VEHICLE_CONSTRUCTION
, ///< Construction, modification (incl. refit) and destruction of vehicles.
446 CMDT_MONEY_MANAGEMENT
, ///< Management of money, i.e. loans and shares.
447 CMDT_VEHICLE_MANAGEMENT
, ///< Stopping, starting, sending to depot, turning around, replace orders etc.
448 CMDT_ROUTE_MANAGEMENT
, ///< Modifications to route management (orders, groups, etc).
449 CMDT_OTHER_MANAGEMENT
, ///< Renaming stuff, changing company colours, placing signs, etc.
450 CMDT_COMPANY_SETTING
, ///< Changing settings related to a company.
451 CMDT_SERVER_SETTING
, ///< Pausing/removing companies/server settings.
452 CMDT_CHEAT
, ///< A cheat of some sorts.
454 CMDT_END
, ///< Magic end marker.
457 /** Different command pause levels. */
458 enum CommandPauseLevel
{
459 CMDPL_NO_ACTIONS
, ///< No user actions may be executed.
460 CMDPL_NO_CONSTRUCTION
, ///< No construction actions may be executed.
461 CMDPL_NO_LANDSCAPING
, ///< No landscaping actions may be executed.
462 CMDPL_ALL_ACTIONS
, ///< All actions may be executed.
466 * Defines the callback type for all command handler functions.
468 * This type defines the function header for all functions which handles a CMD_* command.
469 * A command handler use the parameters to act according to the meaning of the command.
470 * The tile parameter defines the tile to perform an action on.
471 * The flag parameter is filled with flags from the DC_* enumeration. The parameters
472 * p1 and p2 are filled with parameters for the command like "which road type", "which
473 * order" or "direction". Each function should mentioned in there doxygen comments
474 * the usage of these parameters.
476 * @param tile The tile to apply a command on
477 * @param flags Flags for the command, from the DC_* enumeration
478 * @param p1 Additional data for the command
479 * @param p2 Additional data for the command
480 * @param text Additional text
481 * @return The CommandCost of the command, which can be succeeded or failed.
483 typedef CommandCost
CommandProc(TileIndex tile
, DoCommandFlag flags
, uint32 p1
, uint32 p2
, const char *text
);
486 * Define a command with the flags which belongs to it.
488 * This struct connect a command handler function with the flags created with
489 * the #CMD_AUTO, #CMD_OFFLINE and #CMD_SERVER values.
492 CommandProc
*proc
; ///< The procedure to actually executing
493 const char *name
; ///< A human readable name for the procedure
494 CommandFlags flags
; ///< The (command) flags to that apply to this command
495 CommandType type
; ///< The type of command.
499 * Define a callback function for the client, after the command is finished.
501 * Functions of this type are called after the command is finished. The parameters
502 * are from the #CommandProc callback type. The boolean parameter indicates if the
503 * command succeeded or failed.
505 * @param result The result of the executed command
506 * @param tile The tile of the command action
507 * @param p1 Additional data of the command
508 * @param p1 Additional data of the command
511 typedef void CommandCallback(const CommandCost
&result
, TileIndex tile
, uint32 p1
, uint32 p2
);
513 #define MAX_CMD_TEXT_LENGTH 32000
516 * Structure for buffering the build command when selecting a station to join.
518 struct CommandContainer
{
519 TileIndex tile
; ///< tile command being executed on.
520 uint32 p1
; ///< parameter p1.
521 uint32 p2
; ///< parameter p2.
522 uint32 cmd
; ///< command being executed.
523 CommandCallback
*callback
; ///< any callback function executed upon successful completion of the command.
524 uint32 binary_length
; ///< in case text contains binary data, this describes its length.
525 char text
[MAX_CMD_TEXT_LENGTH
]; ///< possible text sent for name changes etc, in bytes including '\0'.
528 #endif /* COMMAND_TYPE_H */