Freeciv21
Develop your civilization from humble roots to a global empire
workertask.h
Go to the documentation of this file.
1 /**************************************************************************
2  Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3  __ __ part of Freeciv21. Freeciv21 is free software: you can
4 / \\..// \ redistribute it and/or modify it under the terms of the GNU
5  ( oo ) General Public License as published by the Free Software
6  \__/ Foundation, either version 3 of the License, or (at your
7  option) any later version. You should have received
8  a copy of the GNU General Public License along with Freeciv21. If not,
9  see https://www.gnu.org/licenses/.
10 **************************************************************************/
11 #pragma once
12 
13 #include "fc_types.h"
14 
15 struct worker_task {
16  struct tile *ptile;
17  enum unit_activity act;
18  struct extra_type *tgt;
19  int want;
20 };
21 
22 // get 'struct worker_task_list' and related functions:
23 #define SPECLIST_TAG worker_task
24 #define SPECLIST_TYPE struct worker_task
25 #include "speclist.h"
26 
27 #define worker_task_list_iterate(tasklist, ptask) \
28  TYPED_LIST_ITERATE(struct worker_task, tasklist, ptask)
29 #define worker_task_list_iterate_end LIST_ITERATE_END
30 
31 void worker_task_init(struct worker_task *ptask);
Definition: tile.h:42
enum unit_activity act
Definition: workertask.h:17
struct tile * ptile
Definition: workertask.h:16
struct extra_type * tgt
Definition: workertask.h:18
void worker_task_init(struct worker_task *ptask)
Initialize empty worker_task.
Definition: workertask.cpp:18