ALMaSS Partridge ODdox
1.1
The partridge model description following ODdox protocol
|
Go to the documentation of this file.
38 #ifndef partridge_allH
39 #define partridge_allH
305 class Partridge_Nestling;
306 class Partridge_PreFledgeling;
540 virtual void Step(
void );
598 virtual void Step(
void );
638 virtual void Step(
void );
694 virtual void Step(
void );
834 virtual void Step(
void );
Partridge_Object m_object_type
Type of pob object this is.
virtual ~Partridge_Chick(void)
Destructor.
Partridge_Female * GetMother(void)
Supply mother pointer.
population_attributes * m_ThisYear
void SetUncleStatus(bool a_Status)
Set uncle status.
void OnEaten()
Message handler.
Partridge_Male(int a_born_x, int a_born_y, int a_x, int a_y, Partridge_Covey *a_flock, Landscape *a_map, int a_family_counter, Partridge_Population_Manager *a_manager)
Constructor.
void incNoChicksSixWeeks()
TPartridgeList< Partridge_Clutch * > Partridge_ClutchList
int m_family_counter
Family ID.
void SetPairsInApril(double pa)
The partridge male class.
virtual void KillThis()
Direct mortality message.
Partridge_Chick(int a_x, int a_y, Partridge_Female *a_mother, Partridge_Covey *a_flock, Landscape *a_map, bool a_sex, int a_family_counter, Partridge_Population_Manager *a_manager)
Constructor.
Partridge_State m_state
Current behavioural state.
The partridge female class.
void OnYouAreDead()
Message handler.
virtual bool OnFarmEvent(FarmToDo event)
Handle farm event.
void OnMating(PartridgeCommunicationData *pc_datae)
Message handler.
void OnGivenUp()
Message handler.
void SetMalesInApril(double fa)
The population manager for partridge objects.
void incNoClutchesHatched()
Partridge_State MFindingMate(void)
State male finding mate.
void MakeCovey()
Create our own covey.
int m_NoNonTerritorialFemalesMay
Partridge_State FFindingTerritory(void)
Female finding 'territory' state.
double m_geomeanBroodSize
Class for calculating k-factors.
Partridge_State FPairing(void)
Female pairing state.
int m_NoTerritorialFemalesApril
Partridge_Clutch * m_MyClutch
A pointer to any current clutch.
Partridge_Base(int a_born_x, int a_born_y, int a_x, int a_y, int a_family_counter, Partridge_Covey *a_covey, Landscape *a_map, Partridge_Population_Manager *a_manager)
Constructor for Partridge_Base.
Struct to basic partridge information.
Partridge_State FLaying(void)
Female laying state.
void incNoAgDeadClutches()
virtual void EndStep(void)
Clutch EndStep.
void OnMateDying()
Message handler.
int m_lifespan
Physiological lifespan.
virtual ~Partridge_Female(void)
Destructor.
Partridge_State FCaringForYoung(void)
Female caring for young state.
void ChDying(void)
Chick Dying.
void DumpInfoDatabase1(int, int, double)
Partridge_Clutch * GetClutch(void)
Supply clutch pointer.
virtual ~Partridge_struct()
void SetState(Partridge_State a_pars)
Set state.
void SetClutchSize(int cs)
Set no. eggs.
void RemoveOldMate(bool a_knockon)
Forget any old mate.
Partridge_Male * m_MyMate
A pointer to the current mate if any.
The partridge clutch class.
void OnChicksMatured()
Message handler.
Base class for all partridge classes.
virtual void KillThis()
General direct mortality handler.
bool m_clutchproduced
Flag for having produced a clutch.
bool GetUncleStatus()
Supply uncle status.
Partridge_Covey * m_covey
void AgDying()
Killed by management.
Partridge_Female * GetMate(void)
Are we paired?
virtual void Dying()
Generic dying handler.
void setNoChicksSept(int n)
void setNoMalesDec(int n)
Partridge_Chick2(int a_x, int a_y, Partridge_Female *a_mother, Partridge_Covey *a_flock, Landscape *a_map, bool a_sex, int a_family_counter, Partridge_Population_Manager *a_manager)
Constructor.
void SetTerritorialFemalesInMay(int nf)
int m_nest_counter
Days spent nest building.
void OnClutchMown()
Message handler.
void setNoMalesSept(int n)
virtual void BeginStep(void)
Male BeginStep.
int m_buildupwait
Delay before breeding can commence.
virtual bool ArePaired()
Are we paired?
Partridge_Male * GetMate(void)
Supply mate pointer.
Partridge_Male * m_MyOldHusband
A record of the previous mate if any.
virtual void CheckMatePointers()
Debug.
int GetClutchSize(void)
´Supply clutch size
void OnStartIncubating()
Flag under incubation.
void setNoFemalesSept(int n)
virtual bool DailyMortality()
Background mortality check.
virtual ~Partridge_Chick2(void)
Destructor.
void SetBirdsInApril(double ba)
long m_id
Individual bird ID.
void SetOldMate(Partridge_Female *pf)
Set old mate pointer.
virtual void Dying()
Generic dying handler.
void OnMumDead()
Message handler.
int m_starve
Days spent starving.
bool PossibleMate(Partridge_Base *a_partridge)
Can we mate?
Struct to pass chick information.
Partridge_State GetState(void)
Supply state.
The landscape class containing all environmental and topographical data.
virtual bool DailyMortality()
Background mortality test.
bool m_underincubation
Are we being incubated?
virtual bool DailyMortality()
Background mortality test.
Partridge_State FAttractingMate(void)
Female attracting mate state.
virtual void Step(void)
Male Step.
virtual void BeginStep(void)
Female BeginStep.
long GetID(void)
Supply ID.
virtual void EndStep(void)
Female EndStep.
void OnFoundATerrtitory()
Message handler.
Partridge_Clutch(int a_x, int a_y, Partridge_Female *a_mother, Partridge_Covey *a_flock, Landscape *a_map, int a_num_eggs, int a_family_counter, Partridge_Population_Manager *a_manager)
Constructor.
Partridge_State ClDeveloping(void)
Development state.
Partridge_State MFollowingMate(void)
State male follow mate.
virtual Partridge_State ChDeveloping(void)
State developing.
int m_startlayingday
Records the day laying started.
virtual bool OnFarmEvent(FarmToDo event)
Farm event handler.
Partridge_Object
Partridge object types.
bool m_UncleStatus
If has uncle status in the covey.
virtual void Step(void)
ClutchStep.
int m_born_x
x-coord of birth
virtual void Step(void)
Chick Step.
Partridge_Female * GetOldMate(void)
Supply old mate pointer.
void copyself(population_attributes *a_population_attributes)
The base class for all ALMaSS animal classes.
Partridge_State MFlocking(void)
State male flocking.
The collective for a family of partridges
void OnEggsHatch()
Message handler.
int AmIaMember()
A debug function.
int m_signal
Used to pass information to outputs.
Partridge_Male * GetOldMate(void)
Supply old mate pointer.
Partridge_State MCaringForYoung(void)
State male caring for young.
Partridge_State FMakingNest(void)
Female making nest state.
void OnClutchDeath()
Message handler.
virtual ~Partridge_Clutch(void)
Destructor.
int m_NoTerritorialFemalesMay
virtual void CheckMatePointers()
Debug function - checking mate consistency
void setNoChick1sAug(int ch)
virtual bool DailyMortality()
Background mortality test.
void SetTerritorialFemalesInApril(double fa)
void OnStoppingBreeding()
Message handler.
void OnWaitForMale()
Message handler.
population_attributes * m_LastYear
Struct to pass adult partridge information.
int m_NoClutchesReplacements
void SetBroodGeoMean(double gm)
int GetFamily(void)
Supply family ID.
virtual bool DailyMortality()
Background mortality check.
Partridge_Covey * GetCovey(void)
Supply covey pointer.
void OnMateDying(PartridgeCommunicationData *pc_data)
Message handler.
virtual void EndStep(void)
Chick EndStep.
int m_lifespan
Physiological lifespan in days.
Partridge_Female(int a_born_x, int a_born_y, int a_x, int a_y, Partridge_Covey *a_flock, Landscape *a_map, int a_family_counter, Partridge_Population_Manager *a_manager)
Constructor.
double GetNestingCoverDensity()
Calls Partridge_Population_Manager::GetNestingCoverDensity
Struct to pass clutch information.
void OnMating(Partridge_Female *a_mate)
Message handler.
void ClDying(void)
Dying state.
virtual void BeginStep(void)
Chick BeginStep.
virtual void BeginStep(void)
Clutch BeginStep.
virtual bool DailyMortality()
Background mortality check.
void SwitchCovey(Partridge_Covey *a_covey)
Swap coveys.
Partridge_Female * m_MyOldWife
Old mate pointer.
void OnSetMyClutch(PartridgeCommunicationData *pc_data)
Message handler.
void incNoChicksHatched()
int m_triggerlayingvar
Adds stochasticity to the light triggering of breeding.
int GetClutchSize(void)
Supply no eggs.
virtual Partridge_State ChMaturing(void)
State maturing.
void SetFamily(unsigned int family)
Set family ID.
virtual void CopyMyself()
Partridge_Population_Manager * m_OurPopulationManager
Pointer to the population manager.
void SetCovey(Partridge_Covey *a_covey)
Set covey pointer.
Partridge_Female * m_MyMate
Current mate pointer.
void UnSetMate(void)
Forget mate.
virtual ~Partridge_Base(void)
Destructor.
virtual void EndStep(void)
Chick2 EndSte[.
virtual ~Partridge_Male(void)
Destructor.
int m_clutch_size
No. of eggs.
bool m_HaveTerritory
Flag for having found a suitable breeding area.
void setNoOldFemales(int nf)
void MDying(void)
State male dying.
Partridge_State FIncubating(void)
Female incubating state.
virtual bool OnFarmEvent(FarmToDo event)
Management event handler.
void SetOldMate(Partridge_Male *pm)
Set old mate pointer.
Struct to pass covey information.
void OnLookAfterKids(void)
Message handler.
int m_clutch_size
Current clutch size.
Partridge_State FFlocking(void)
Female flocking state.
Partridge_Object GetObjectType()
Supply object type.
bool HaveTerritory(void)
Have we a breeding 'territory'?
int m_born_y
y-coord of birth
Partridge_Base * first_member
Partridge_State MGuardingMate(void)
State male guarding mate.
Partridge_State FBuildingUpResources(void)
Female building up resources state.
virtual void BeginStep(void)
Chick2 BeginStep.
Data structure of a message.
void UnSetMate(void)
remove mate pointer
virtual Partridge_State ChDeveloping(void)
Development.
void setNoMalesAug(int nm)
void incNoClutchesPredated()
void setNoOldMales(int nm)
int m_clutch_number
Current clutch attempt.
void OnFemaleGivingUp()
Message handler.
virtual void Step(void)
Female Step.
void setNoFemsAug(int nf)
virtual bool OnFarmEvent(FarmToDo event)
Management event handler.
Partridge_Covey * m_covey
Pointer to the covey.
void AddToChicks6wks(int ch)
void CreateInfoDatabaseFile()
virtual void Dying()
General dying handler area.
virtual bool OnFarmEvent(FarmToDo event)
Management event handler.
void StartBreedingBehaviour(void)
Message handler.
void OnChicksDead()
Message handler.
virtual void Step(void)
Chick2Step.
void SetAge(int a_age)
Set age.
void OnMovingHome()
Message handler.
The partridge Chick2 class.
virtual void CheckMatePointers()
A debug function.
void setNoFemalesDec(int n)
virtual void EndStep(void)
Male EndStep.
void incNoStarvedChicks()
void RemoveOldMate(bool a_knockon)
Forget old mate.
void OnChicksDead()
Message handler.
virtual bool ArePaired()
Are we paired?
void SetFemalesInApril(double fa)
void OnChicksMatured()
Message handler.
virtual bool ArePaired()
Overridden base function.
int GetAge(void)
Supply age.
Partridge_Female * m_mother
Pointer to mother.
virtual Partridge_State ChMaturing(void)
Maturation.
Partridge_State MPairing(void)
State male pairing.
virtual void Dying()
General dying handler.
void SetNonTerritorialFemalesInMay(int nf)
void setNoChick2sAug(int ch)
Partridge_State FStartingNewBrood(bool a_waslaying)
Female starting new brood state.