Crop Class Reference

The base class for all crops. More...

#include <farm.h>

List of all members.

Public Member Functions

 Crop ()
virtual bool Do (Farm *a_farm, LE *a_field, FarmEvent *a_ev)
int GetFirstDate (void)
virtual ~Crop ()

Protected Member Functions

void SimpleEvent (long a_date, int a_todo, bool a_lock)
 Adds an event to this crop management.

Protected Attributes

int m_count
FarmEventm_ev
Farmm_farm
LE * m_field
int m_first_date
int m_last_date


Detailed Description

The base class for all crops.

Constructor & Destructor Documentation

virtual Crop::~Crop (  )  [inline, virtual]

00354 {}

Crop::Crop (  ) 

00200 {
00201                 ;
00202 }


Member Function Documentation

bool Crop::Do ( Farm a_farm,
LE *  a_field,
FarmEvent a_ev 
) [virtual]

Reimplemented in WinterWheat, and SetAside.

00204                                                                               {
00205   return true;
00206 }

int Crop::GetFirstDate ( void   )  [inline]

References m_first_date.

Referenced by Farm::GetFirstDate().

00356 { return m_first_date; }

void Crop::SimpleEvent ( long  a_date,
int  a_todo,
bool  a_lock 
) [protected]

Adds an event to this crop management.

References Farm::AddNewEvent(), m_farm, and m_field.

Referenced by WinterWheat::Do(), and SetAside::Do().

00208                                                              {
00209 
00210   m_farm->AddNewEvent( m_field->GetVegType(), a_date, m_field, a_todo, m_field->GetRunNum(), a_lock, 0, false, (TTypesOfVegetation) 0 );
00211 }


Member Data Documentation

int Crop::m_count [protected]

FarmEvent* Crop::m_ev [protected]

Referenced by WinterWheat::Do(), and SetAside::Do().

Farm* Crop::m_farm [protected]

LE* Crop::m_field [protected]

int Crop::m_first_date [protected]

int Crop::m_last_date [protected]

Referenced by SetAside::Do().


The documentation for this class was generated from the following files:


Crop Class Reference, 1.0