Freeciv-3.2: /fast/freeciv/nightly/S3_2/common/workertask.h Source File

Freeciv-3.2

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
20 struct worker_task
21{
22 struct tile *ptile;
23 enum unit_activity act;
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
37void worker_task_init(struct worker_task *ptask);
38
39bool worker_task_is_sane(struct worker_task *ptask);
40
41#ifdef __cplusplus
42}
43#endif /* __cplusplus */
44
45#endif /* FC__WORKERTASK_H */
incite_cost
char * incite_cost
Definition comments.c:74
speclist.h
extra_type
Definition extras.h:88
tile
Definition tile.h:50
worker_task
Definition workertask.h:21
worker_task::act
enum unit_activity act
Definition workertask.h:23
worker_task::ptile
struct tile * ptile
Definition workertask.h:22
worker_task::tgt
struct extra_type * tgt
Definition workertask.h:24
worker_task::want
int want
Definition workertask.h:25
worker_task_is_sane
bool worker_task_is_sane(struct worker_task *ptask)
Definition workertask.c:40
worker_task_init
void worker_task_init(struct worker_task *ptask)
Definition workertask.c:31