ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
WheatPControl.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************************************
3 Copyright (c) 2011, Christopher John Topping, Aarhus University
4 All rights reserved.
5 
6 Redistribution and use in source and binary forms, with or without modification, are permitted provided
7 that the following conditions are met:
8 
9 Redistributions of source code must retain the above copyright notice, this list of conditions and the
10 following disclaimer.
11 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
12 the following disclaimer in the documentation and/or other materials provided with the distribution.
13 
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
15 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
16 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
17 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
18 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
19 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22 ********************************************************************************************************
23 */
24 //---------------------------------------------------------------------------
25 #ifndef WheatPControlH
26 #define WheatPControlH
27 //---------------------------------------------------------------------------
28 
29 //
30 // WheatPControl.h
31 //
32 
33 #ifndef WHEATPCONTROL_H
34 #define WHEATPCONTROL_H
35 
36 #define WHEATPCONTROL_BASE 60200
37 #define WWP_WAIT_FOR_PLOUGH m_field->m_user[0]
38 #define WWP_AUTUMN_PLOUGH m_field->m_user[1]
39 
40 typedef enum {
41  wpc_start = 1, // Compulsory, must always be 1 (one).
78 
79 
80 class WheatPControl: public Crop
81 {
82  public:
83  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
84 };
85 
86 #endif // WHEATPCONTROL_H
87 #endif
88 
wpc_autumn_harrow
Definition: WheatPControl.h:47
wpc_fungicide
Definition: WheatPControl.h:56
wpc_insecticide2
Definition: WheatPControl.h:59
wpc_ferti_p2
Definition: WheatPControl.h:51
wpc_hay_baling
Definition: WheatPControl.h:74
wpc_insecticide1
Definition: WheatPControl.h:58
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
WHEATPCONTROL_BASE
#define WHEATPCONTROL_BASE
Definition: WheatPControl.h:36
wpc_autumn_roll
Definition: WheatPControl.h:50
WheatPControl::Do
virtual bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
wpc_strigling1
Definition: WheatPControl.h:61
wpc_start
Definition: WheatPControl.h:41
wpc_grubning
Definition: WheatPControl.h:76
Crop
The base class for all crops.
Definition: farm.h:534
wpc_ferti_s4
Definition: WheatPControl.h:69
wpc_fungicide2
Definition: WheatPControl.h:57
wpc_stubble_harrow1
Definition: WheatPControl.h:48
WheatPControl
Definition: WheatPControl.h:80
wpc_ferti_s1
Definition: WheatPControl.h:44
wpc_sleep_all_day
Definition: WheatPControl.h:42
wpc_ferti_p4
Definition: WheatPControl.h:66
wpc_ferti_s5
Definition: WheatPControl.h:70
wpc_GR
Definition: WheatPControl.h:55
wpc_autumn_plough
Definition: WheatPControl.h:46
wpc_water1
Definition: WheatPControl.h:63
wpc_autumn_sow
Definition: WheatPControl.h:49
wpc_ferti_p3
Definition: WheatPControl.h:65
wpc_harvest
Definition: WheatPControl.h:71
wpc_stubble_harrow2
Definition: WheatPControl.h:75
Farm
The base class for all farm types.
Definition: farm.h:767
WWheatPControlToDo
WWheatPControlToDo
Definition: WheatPControl.h:40
wpc_ferti_s2
Definition: WheatPControl.h:45
wpc_ferti_p1
Definition: WheatPControl.h:43
wpc_insecticide3
Definition: WheatPControl.h:60
wpc_herbicide1
Definition: WheatPControl.h:52
wpc_ferti_s3
Definition: WheatPControl.h:68
wpc_ferti_p5
Definition: WheatPControl.h:67
wpc_hay_turning
Definition: WheatPControl.h:73
wpc_strigling2
Definition: WheatPControl.h:62
wpc_herbicide2
Definition: WheatPControl.h:54
wpc_straw_chopping
Definition: WheatPControl.h:72
wpc_spring_roll
Definition: WheatPControl.h:53
wpc_water2
Definition: WheatPControl.h:64