00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _AgentLivestockUnit_h
00021 #define _AgentLivestockUnit_h
00022
00023
00024
00025
00026 class livestck
00027 { protected:
00028 int hhID;
00029 int scID;
00030 int pID;
00031 int age;
00032 int type;
00033
00034 int** health;
00035
00036 public:
00037 livestck(int hID, int scID, int pID, int type, int age);
00038 virtual ~livestck()
00039 {
00040 }
00041
00042
00043 livestck* nextLivestck;
00044 void setNextPtr_M (livestck*);
00045 livestck* getNext_M();
00046
00047 livestck* prevLivestck;
00048 void setPrevPtr_M (livestck*);
00049 livestck* getPrev_M();
00050
00051
00052
00053 virtual int getHhID();
00054 virtual int getScID();
00055 virtual int getPID();
00056 virtual int getAge();
00057 virtual void increaseAge();
00058 virtual int getType();
00059
00060 virtual void printToScreen();
00061 };
00062
00063
00064 #endif