ALMaSS Vole ODDox  1.1
The vole model description following ODdox protocol
WWheatPControl.h
Go to the documentation of this file.
1 //
2 // WWheatPControl.h
3 //
4 /*
5 
6 Copyright (c) 2003, National Environmental Research Institute, Denmark (NERI)
7 
8 All rights reserved.
9 
10 
11 Redistribution and use in source and binary forms, with or without
12 modification, are permitted provided that the following conditions are met:
13 
14 *) Redistributions of source code must retain the above copyright notice, this
15 list of conditions and the following disclaimer.
16 *) Redistributions in binary form must reproduce the above copyright notice,
17 this list of conditions and the following disclaimer in the documentation
18 and/or other materials provided with the distribution.
19 *) Neither the name of the NERI nor the names of its contributors
20 may be used to endorse or promote products derived from this software without
21 specific prior written permission.
22 
23 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 POSSIBILITY OF SUCH DAMAGE.
34 
35 */
36 #ifndef WWHEATPCONTROL_H
37 #define WWHEATPCONTROL_H
38 
39 #define WWHEATPCONTROL_BASE 60000
40 #define WWPC_WAIT_FOR_PLOUGH m_field->m_user[0]
41 #define WWPC_AUTUMN_PLOUGH m_field->m_user[1]
42 
43 typedef enum {
44  wwpc_start = 1, // Compulsory, must always be 1 (one).
81 
82 
83 class WWheatPControl: public Crop
84 {
85  public:
86  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
87 };
88 
89 #endif // WHEATPCONTROL_H
90 
wwpc_ferti_s2
Definition: WWheatPControl.h:48
wwpc_autumn_sow
Definition: WWheatPControl.h:52
wwpc_harvest
Definition: WWheatPControl.h:74
wwpc_spring_roll
Definition: WWheatPControl.h:56
wwpc_insecticide2
Definition: WWheatPControl.h:62
wwpc_ferti_p3
Definition: WWheatPControl.h:68
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
wwpc_sleep_all_day
Definition: WWheatPControl.h:45
wwpc_autumn_roll
Definition: WWheatPControl.h:53
wwpc_GR
Definition: WWheatPControl.h:58
wwpc_ferti_s5
Definition: WWheatPControl.h:73
wwpc_strigling1
Definition: WWheatPControl.h:64
wwpc_ferti_p2
Definition: WWheatPControl.h:54
wwpc_autumn_plough
Definition: WWheatPControl.h:49
wwpc_ferti_p5
Definition: WWheatPControl.h:70
wwpc_fungicide
Definition: WWheatPControl.h:59
wwpc_hay_baling
Definition: WWheatPControl.h:77
WWHEATPCONTROL_BASE
#define WWHEATPCONTROL_BASE
Definition: WWheatPControl.h:39
Crop
The base class for all crops.
Definition: farm.h:534
wwpc_straw_chopping
Definition: WWheatPControl.h:75
wwpc_hay_turning
Definition: WWheatPControl.h:76
wwpc_ferti_s1
Definition: WWheatPControl.h:47
wwpc_insecticide3
Definition: WWheatPControl.h:63
WWheatPControlToDo
WWheatPControlToDo
Definition: WWheatPControl.h:43
wwpc_ferti_p4
Definition: WWheatPControl.h:69
wwpc_ferti_s3
Definition: WWheatPControl.h:71
wwpc_fungicide2
Definition: WWheatPControl.h:60
wwpc_ferti_p1
Definition: WWheatPControl.h:46
wwpc_stubble_harrow1
Definition: WWheatPControl.h:51
wwpc_insecticide1
Definition: WWheatPControl.h:61
WWheatPControl::Do
virtual bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: WWheatPControl.cpp:37
wwpc_grubning
Definition: WWheatPControl.h:79
wwpc_herbicide2
Definition: WWheatPControl.h:57
wwpc_autumn_harrow
Definition: WWheatPControl.h:50
wwpc_ferti_s4
Definition: WWheatPControl.h:72
wwpc_start
Definition: WWheatPControl.h:44
Farm
The base class for all farm types.
Definition: farm.h:767
wwpc_strigling2
Definition: WWheatPControl.h:65
wwpc_stubble_harrow2
Definition: WWheatPControl.h:78
WWheatPControl
Definition: WWheatPControl.h:83
wwpc_water2
Definition: WWheatPControl.h:67
wwpc_herbicide1
Definition: WWheatPControl.h:55
wwpc_water1
Definition: WWheatPControl.h:66