Do not return NULL as boolean from wonder_is_lost() nor wonder_is_built()
[freeciv.git] / common / workertask.h
blobd7aee6a18f8b8a2e2c01e0db6365d2d8caccdc92
1 /**********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
13 #ifndef FC__WORKERTASK_H
14 #define FC__WORKERTASK_H
16 #ifdef __cplusplus
17 extern "C" {
18 #endif /* __cplusplus */
20 struct worker_task
22 struct tile *ptile;
23 enum unit_activity act;
24 struct extra_type *tgt;
25 int want;
28 /* get 'struct worker_task_list' and related functions: */
29 #define SPECLIST_TAG worker_task
30 #define SPECLIST_TYPE struct worker_task
31 #include "speclist.h"
33 #define worker_task_list_iterate(tasklist, ptask) \
34 TYPED_LIST_ITERATE(struct worker_task, tasklist, ptask)
35 #define worker_task_list_iterate_end LIST_ITERATE_END
37 void worker_task_init(struct worker_task *ptask);
39 #ifdef __cplusplus
41 #endif /* __cplusplus */
43 #endif /* FC__WORKERTASK_H */