Freeciv-3.3
Loading...
Searching...
No Matches
workertask.h
Go to the documentation of this file.
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.
7
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
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
21{
22 struct tile *ptile;
24 struct extra_type *tgt;
25 int want;
26};
27
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"
32
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
36
38
40
41#ifdef __cplusplus
42}
43#endif /* __cplusplus */
44
45#endif /* FC__WORKERTASK_H */
char * incite_cost
Definition comments.c:76
Definition tile.h:50
enum unit_activity act
Definition workertask.h:23
struct tile * ptile
Definition workertask.h:22
struct extra_type * tgt
Definition workertask.h:24
bool worker_task_is_sane(struct worker_task *ptask)
Definition workertask.c:40
void worker_task_init(struct worker_task *ptask)
Definition workertask.c:31