ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
OWinterWheat.h
Go to the documentation of this file.
1 //
2 // OWinterWheat.h
3 //
4 /*
5 *******************************************************************************************************
6 Copyright (c) 2016, Christopher John Topping, University of Aarhus
7 All rights reserved.
8 
9 Redistribution and use in source and binary forms, with or without modification, are permitted provided
10 that the following conditions are met:
11 
12 Redistributions of source code must retain the above copyright notice, this list of conditions and the
13 following disclaimer.
14 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
15 the following disclaimer in the documentation and/or other materials provided with the distribution.
16 
17 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
18 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
19 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
20 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
22 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 ********************************************************************************************************
26 */
27 
28 #ifndef OWINTERWHEAT_H
29 #define OWINTERWHEAT_H
30 
31 #define OWINTERWHEAT_BASE 5040
32 #define OWW_PLOUGH_RUNS m_field->m_user[0]
33 #define OWW_HARROW_RUNS m_field->m_user[1]
34 
35 typedef enum {
36  oww_start = 1, // Compulsory, must always be 1 (one).
61 
62 
63 class OWinterWheat: public Crop
64 {
65  public:
66  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
68  {
69  m_first_date=g_date->DayInYear(28,8);
70  }
71 };
72 
73 #endif // OWINTERWHEATUndersown_H
oww_hay_turning
Definition: OWinterWheat.h:53
oww_spring_roll1
Definition: OWinterWheat.h:50
oww_start
Definition: OWinterWheat.h:36
oww_ferti_s1
Definition: OWinterWheat.h:38
oww_hay_baling
Definition: OWinterWheat.h:55
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
oww_harvest
Definition: OWinterWheat.h:52
oww_autumn_plough
Definition: OWinterWheat.h:43
oww_stubble_harrow1
Definition: OWinterWheat.h:56
Crop::m_first_date
int m_first_date
Definition: farm.h:540
oww_strigling1
Definition: OWinterWheat.h:46
oww_sleep_all_day
Definition: OWinterWheat.h:37
OWinterWheat
Definition: OWinterWheat.h:63
Crop
The base class for all crops.
Definition: farm.h:534
oww_autumn_harrow
Definition: OWinterWheat.h:44
oww_stubble_harrow2
Definition: OWinterWheat.h:57
OWinterWheat::Do
virtual bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: OWinterWheat.cpp:33
oww_autumn_sow
Definition: OWinterWheat.h:45
oww_straw_chopping
Definition: OWinterWheat.h:54
oww_spring_sow
Definition: OWinterWheat.h:49
oww_spring_roll2
Definition: OWinterWheat.h:51
OWINTERWHEAT_BASE
#define OWINTERWHEAT_BASE
Definition: OWinterWheat.h:31
OWinterWheatToDo
OWinterWheatToDo
Definition: OWinterWheat.h:35
oww_ferti_p1
Definition: OWinterWheat.h:41
Farm
The base class for all farm types.
Definition: farm.h:767
oww_ferti_p2
Definition: OWinterWheat.h:42
oww_ferti_s2
Definition: OWinterWheat.h:39
oww_catch_all
Definition: OWinterWheat.h:59
OWinterWheat::OWinterWheat
OWinterWheat()
Definition: OWinterWheat.h:67
oww_strigling_sow
Definition: OWinterWheat.h:48
oww_ferti_s3
Definition: OWinterWheat.h:40
oww_strigling2
Definition: OWinterWheat.h:47
oww_deep_plough
Definition: OWinterWheat.h:58