mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Replace defines with constexpr
This commit is contained in:
@@ -17,8 +17,7 @@
|
|||||||
namespace NKAI
|
namespace NKAI
|
||||||
{
|
{
|
||||||
|
|
||||||
#define MIN_AI_STRENGTH (0.5f) //lower when combat AI gets smarter
|
constexpr float MIN_AI_STRENGTH = 0.5f; //lower when combat AI gets smarter
|
||||||
#define UNGUARDED_OBJECT (100.0f) //we consider unguarded objects 100 times weaker than us
|
|
||||||
|
|
||||||
engineBase::engineBase()
|
engineBase::engineBase()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -35,9 +35,7 @@
|
|||||||
namespace NKAI
|
namespace NKAI
|
||||||
{
|
{
|
||||||
|
|
||||||
#define MIN_AI_STRENGTH (0.5f) //lower when combat AI gets smarter
|
constexpr float MIN_CRITICAL_VALUE = 2.0f;
|
||||||
#define UNGUARDED_OBJECT (100.0f) //we consider unguarded objects 100 times weaker than us
|
|
||||||
const float MIN_CRITICAL_VALUE = 2.0f;
|
|
||||||
|
|
||||||
EvaluationContext::EvaluationContext(const Nullkiller* ai)
|
EvaluationContext::EvaluationContext(const Nullkiller* ai)
|
||||||
: movementCost(0.0),
|
: movementCost(0.0),
|
||||||
|
|||||||
Reference in New Issue
Block a user