ALMaSS Rabbit ODdox
1.1
The rabbit model description following ODdox protocol
|
#include <croprotation.h>
Public Member Functions | |
TTypesOfVegetation | GetNextCrop (int a_farmtype, int a_current_crop) |
TTypesOfVegetation | GetFirstCrop (int a_farmtype, bool *a_low_nutrient) |
CropRotation (int a_num_crops) | |
~CropRotation (void) | |
Private Attributes | |
vector< Rotation * > | m_rots |
vector< Starter * > | m_start |
Definition at line 52 of file croprotation.h.
CropRotation::CropRotation | ( | int | a_num_crops | ) |
Definition at line 42 of file croprotation.cpp.
References g_msg, l_map_rotation_files_prefix, m_rots, m_start, NoFarmTypes, CfgStr::value(), MapErrorMsg::Warn(), and WARN_FILE.
CropRotation::~CropRotation | ( | void | ) |
TTypesOfVegetation CropRotation::GetFirstCrop | ( | int | a_farmtype, |
bool * | a_low_nutrient | ||
) |
Definition at line 126 of file croprotation.cpp.
References g_crops, g_msg, PlantGrowthData::GetNumCrops(), PlantGrowthData::GetNutStatus(), m_start, MapErrorMsg::Warn(), and WARN_BUG.
TTypesOfVegetation CropRotation::GetNextCrop | ( | int | a_farmtype, |
int | a_current_crop | ||
) |
Definition at line 105 of file croprotation.cpp.
References g_msg, m_rots, MapErrorMsg::Warn(), and WARN_BUG.
|
private |
Definition at line 54 of file croprotation.h.
Referenced by CropRotation(), GetNextCrop(), and ~CropRotation().
|
private |
Definition at line 55 of file croprotation.h.
Referenced by CropRotation(), GetFirstCrop(), and ~CropRotation().