Subversion Repositories public iLand

Rev

Rev 975 | Rev 1050 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 975 Rev 1044
Line 27... Line 27...
27
#include "resourceunit.h"
27
#include "resourceunit.h"
28
#include "model.h"
28
#include "model.h"
29
#include "snag.h"
29
#include "snag.h"
30
30
31
#include "forestmanagementengine.h"
31
#include "forestmanagementengine.h"
-
 
32
#include "modules.h"
32
33
33
// static varaibles
34
// static varaibles
34
FloatGrid *Tree::mGrid = 0;
35
FloatGrid *Tree::mGrid = 0;
35
HeightGrid *Tree::mHeightGrid = 0;
36
HeightGrid *Tree::mHeightGrid = 0;
36
int Tree::m_statPrint=0;
37
int Tree::m_statPrint=0;
Line 970... Line 971...
970
    // add the volume of the current tree to the height grid
971
    // add the volume of the current tree to the height grid
971
    // this information is used to track the removed volume for stands based on grids.
972
    // this information is used to track the removed volume for stands based on grids.
972
    ABE::ForestManagementEngine *abe = GlobalSettings::instance()->model()->ABEngine();
973
    ABE::ForestManagementEngine *abe = GlobalSettings::instance()->model()->ABEngine();
973
    if (abe)
974
    if (abe)
974
        abe->addTreeRemoval(this, (int)reason);
975
        abe->addTreeRemoval(this, (int)reason);
-
 
976
-
 
977
    // tell disturbance modules that a tree died
-
 
978
    GlobalSettings::instance()->model()->modules()->treeDeath(this, (int) reason);
975
}
979
}
976
980
977
//////////////////////////////////////////////////
981
//////////////////////////////////////////////////
978
////  value functions
982
////  value functions
979
//////////////////////////////////////////////////
983
//////////////////////////////////////////////////