28 #include "../../Landscape/ls.h"
29 #include "../../Landscape/cropprogs/WinterWheatStriglingSingle.h"
58 m_field->SetMDates( 0, 0, g_date->DayInYear( 20, 8 ) );
61 m_field->SetMDates( 1, 0, g_date->DayInYear( 20, 8 ) );
63 m_field->SetMDates( 1, 1, g_date->DayInYear( 20, 8 ) );
64 m_field->SetMDates( 0, 2, g_date->DayInYear( 5, 8 ) );
65 m_field->SetMDates( 1, 2, g_date->DayInYear( 25, 8 ) );
66 m_field->SetMDates( 0, 3, g_date->DayInYear( 10, 8 ) );
67 m_field->SetMDates( 1, 3, g_date->DayInYear( 15, 9 ) );
68 m_field->SetMDates( 0, 4, g_date->DayInYear( 15, 8 ) );
69 m_field->SetMDates( 1, 4, g_date->DayInYear( 15, 10 ) );
79 g_msg->Warn( WARN_BUG,
"WinterWheat::Do(): ""Harvest too late for the next crop to start!!!",
"" );
84 for (
int i = 0; i < noDates; i++ ) {
95 for (
int i = 0; i < 10; i++ )
m_field->SetMConstants( i, 0 );
105 d1 = g_date->OldDays() + g_date->DayInYear( 1, 7 );
106 if ( g_date->Date() < d1 ) {
108 printf(
"Poly: %d\n",
m_field->GetPoly() );
109 g_msg->Warn( WARN_BUG,
"WinterWheatStrigling::Do(): ""Crop start attempt between 1st Jan & 1st July",
"" );
113 if ( g_date->Date() > d1 ) {
115 g_msg->Warn( WARN_BUG,
"WinterWheatStrigling::Do(): ""Crop start attempt after last possible start date",
"" );
127 d1 = g_date->OldDays() + g_date->DayInYear( 21, 8 );
218 if (
m_field->GetVegBiomass() > 0 )
326 if ( ( g_date->Date() + 7 ) < ( g_date->OldDays() + g_date->DayInYear( 15, 6 ) ) )
362 if ( !
m_farm->
Water(
m_field, 0.0, g_date->DayInYear( 15, 5 ) - g_date->DayInYear() ) ) {
365 }
else if ( ( g_date->Date() + 5 ) < ( g_date->OldDays() + g_date->DayInYear( 2, 5 ) ) )
372 if ( !
m_farm->
Water(
m_field, 0.0, g_date->DayInYear( 1, 6 ) - g_date->DayInYear() ) ) {
498 g_msg->Warn( WARN_BUG,
"WinterWheat::Do(): ""Unknown event type! ",
"" );