This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Indoor/grid/factory/v2/GridNodeImportance.h
kazu 51c0945e12 statistic helper classes
test-cases
modified grid importance for better trap-detection
2016-10-01 13:17:14 +02:00

25 lines
527 B
C

#ifndef GRIDNODEIMPORTANCE_H
#define GRIDNODEIMPORTANCE_H
struct GridNodeImportance {
/** importance-weight for dijkstra calculation */
float navImportance;
/** get the node's nav importance */
float getNavImportance() const {return navImportance;}
/** importance-weight for random walks */
float walkImportance;
/** get the node's random-walk importance */
float getWalkImportance() const {return walkImportance;}
/** ctor */
GridNodeImportance() : navImportance(1.0f) {;}
};
#endif // GRIDNODEIMPORTANCE_H