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)
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
18 #endif /* __cplusplus */
23 enum unit_activity act
;
24 struct extra_type
*tgt
;
28 /* get 'struct worker_task_list' and related functions: */
29 #define SPECLIST_TAG worker_task
30 #define SPECLIST_TYPE struct worker_task
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
);
41 #endif /* __cplusplus */
43 #endif /* FC__WORKERTASK_H */