mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-06 04:13:48 +00:00
Compile bug fixes.
This commit is contained in:
@@ -46,7 +46,7 @@ class FleeManager
|
|||||||
|
|
||||||
Player* bot;
|
Player* bot;
|
||||||
float maxAllowedDistance;
|
float maxAllowedDistance;
|
||||||
float followAngle;
|
[[maybe_unused]] float followAngle; // unused - whipowill
|
||||||
bool forceMaxDistance;
|
bool forceMaxDistance;
|
||||||
WorldPosition startPosition;
|
WorldPosition startPosition;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ class TravelNodePath
|
|||||||
//Constructor
|
//Constructor
|
||||||
TravelNodePath(float distance = 0.1f, float extraCost = 0, uint8 pathType = (uint8)TravelNodePathType::walk, uint32 pathObject = 0, bool calculated = false,
|
TravelNodePath(float distance = 0.1f, float extraCost = 0, uint8 pathType = (uint8)TravelNodePathType::walk, uint32 pathObject = 0, bool calculated = false,
|
||||||
std::vector<uint8> maxLevelCreature = { 0, 0, 0 }, float swimDistance = 0)
|
std::vector<uint8> maxLevelCreature = { 0, 0, 0 }, float swimDistance = 0)
|
||||||
: extraCost(extraCost), calculated(calculated), distance(distance), maxLevelCreature(maxLevelCreature), pathType(TravelNodePathType(pathType)), swimDistance(swimDistance), pathObject(pathObject) // reorder args - whipowill
|
: extraCost(extraCost), calculated(calculated), distance(distance), maxLevelCreature(maxLevelCreature), swimDistance(swimDistance), pathType(TravelNodePathType(pathType)), pathObject(pathObject) // reorder args - whipowill
|
||||||
{
|
{
|
||||||
if (pathType != (uint8)TravelNodePathType::walk)
|
if (pathType != (uint8)TravelNodePathType::walk)
|
||||||
complete = true;
|
complete = true;
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ class FindItemsToTradeByClassVisitor : public IterateItemsVisitor
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FindItemsToTradeByClassVisitor(uint32 itemClass, uint32 itemSubClass, uint32 count)
|
FindItemsToTradeByClassVisitor(uint32 itemClass, uint32 itemSubClass, uint32 count)
|
||||||
: IterateItemsVisitor(), itemClass(itemClass), count(count), itemSubClass(itemSubClass) { } // reorder args - whipowill
|
: IterateItemsVisitor(), itemClass(itemClass), itemSubClass(itemSubClass), count(count) { } // reorder args - whipowill
|
||||||
|
|
||||||
bool Visit(Item* item) override
|
bool Visit(Item* item) override
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class ActionNodeFactoryInternal : public NamedObjectFactory<ActionNode>
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static ActionNode* melee(PlayerbotAI* botAI)
|
static ActionNode* melee([[maybe_unused]] PlayerbotAI* botAI) // unused param - whipowill
|
||||||
{
|
{
|
||||||
return new ActionNode ("melee",
|
return new ActionNode ("melee",
|
||||||
/*P*/ nullptr,
|
/*P*/ nullptr,
|
||||||
@@ -32,7 +32,7 @@ class ActionNodeFactoryInternal : public NamedObjectFactory<ActionNode>
|
|||||||
/*C*/ nullptr);
|
/*C*/ nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ActionNode* healthstone(PlayerbotAI* botAI)
|
static ActionNode* healthstone([[maybe_unused]] PlayerbotAI* botAI) // unused param - whipowill
|
||||||
{
|
{
|
||||||
return new ActionNode ("healthstone",
|
return new ActionNode ("healthstone",
|
||||||
/*P*/ nullptr,
|
/*P*/ nullptr,
|
||||||
@@ -40,7 +40,7 @@ class ActionNodeFactoryInternal : public NamedObjectFactory<ActionNode>
|
|||||||
/*C*/ nullptr);
|
/*C*/ nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ActionNode* follow_master_random(PlayerbotAI* botAI)
|
static ActionNode* follow_master_random([[maybe_unused]] PlayerbotAI* botAI) // unused param - whipowill
|
||||||
{
|
{
|
||||||
return new ActionNode ("be near",
|
return new ActionNode ("be near",
|
||||||
/*P*/ nullptr,
|
/*P*/ nullptr,
|
||||||
@@ -48,7 +48,7 @@ class ActionNodeFactoryInternal : public NamedObjectFactory<ActionNode>
|
|||||||
/*C*/ nullptr);
|
/*C*/ nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ActionNode* attack_anything(PlayerbotAI* botAI)
|
static ActionNode* attack_anything([[maybe_unused]] PlayerbotAI* botAI) // unused param - whipowill
|
||||||
{
|
{
|
||||||
return new ActionNode ("attack anything",
|
return new ActionNode ("attack anything",
|
||||||
/*P*/ nullptr,
|
/*P*/ nullptr,
|
||||||
@@ -56,7 +56,7 @@ class ActionNodeFactoryInternal : public NamedObjectFactory<ActionNode>
|
|||||||
/*C*/ nullptr);
|
/*C*/ nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ActionNode* move_random(PlayerbotAI* botAI)
|
static ActionNode* move_random([[maybe_unused]] PlayerbotAI* botAI) // unused param - whipowill
|
||||||
{
|
{
|
||||||
return new ActionNode ("move random",
|
return new ActionNode ("move random",
|
||||||
/*P*/ nullptr,
|
/*P*/ nullptr,
|
||||||
@@ -64,7 +64,7 @@ class ActionNodeFactoryInternal : public NamedObjectFactory<ActionNode>
|
|||||||
/*C*/ nullptr);
|
/*C*/ nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ActionNode* move_to_loot(PlayerbotAI* botAI)
|
static ActionNode* move_to_loot([[maybe_unused]] PlayerbotAI* botAI) // unused param - whipowill
|
||||||
{
|
{
|
||||||
return new ActionNode ("move to loot",
|
return new ActionNode ("move to loot",
|
||||||
/*P*/ nullptr,
|
/*P*/ nullptr,
|
||||||
@@ -72,7 +72,7 @@ class ActionNodeFactoryInternal : public NamedObjectFactory<ActionNode>
|
|||||||
/*C*/ nullptr);
|
/*C*/ nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ActionNode* food(PlayerbotAI* botAI)
|
static ActionNode* food([[maybe_unused]] PlayerbotAI* botAI) // unused param - whipowill
|
||||||
{
|
{
|
||||||
return new ActionNode ("food",
|
return new ActionNode ("food",
|
||||||
/*P*/ nullptr,
|
/*P*/ nullptr,
|
||||||
@@ -80,7 +80,7 @@ class ActionNodeFactoryInternal : public NamedObjectFactory<ActionNode>
|
|||||||
/*C*/ nullptr);
|
/*C*/ nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ActionNode* drink(PlayerbotAI* botAI)
|
static ActionNode* drink([[maybe_unused]] PlayerbotAI* botAI) // unused param - whipowill
|
||||||
{
|
{
|
||||||
return new ActionNode ("drink",
|
return new ActionNode ("drink",
|
||||||
/*P*/ nullptr,
|
/*P*/ nullptr,
|
||||||
@@ -88,7 +88,7 @@ class ActionNodeFactoryInternal : public NamedObjectFactory<ActionNode>
|
|||||||
/*C*/ nullptr);
|
/*C*/ nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ActionNode* mana_potion(PlayerbotAI* botAI)
|
static ActionNode* mana_potion([[maybe_unused]] PlayerbotAI* botAI) // unused param - whipowill
|
||||||
{
|
{
|
||||||
return new ActionNode ("mana potion",
|
return new ActionNode ("mana potion",
|
||||||
/*P*/ nullptr,
|
/*P*/ nullptr,
|
||||||
@@ -96,7 +96,7 @@ class ActionNodeFactoryInternal : public NamedObjectFactory<ActionNode>
|
|||||||
/*C*/ nullptr);
|
/*C*/ nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ActionNode* healing_potion(PlayerbotAI* botAI)
|
static ActionNode* healing_potion([[maybe_unused]] PlayerbotAI* botAI) // unused param - whipowill
|
||||||
{
|
{
|
||||||
return new ActionNode ("healing potion",
|
return new ActionNode ("healing potion",
|
||||||
/*P*/ nullptr,
|
/*P*/ nullptr,
|
||||||
@@ -104,7 +104,7 @@ class ActionNodeFactoryInternal : public NamedObjectFactory<ActionNode>
|
|||||||
/*C*/ nullptr);
|
/*C*/ nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ActionNode* flee(PlayerbotAI* botAI)
|
static ActionNode* flee([[maybe_unused]] PlayerbotAI* botAI) // unused param - whipowill
|
||||||
{
|
{
|
||||||
return new ActionNode ("flee",
|
return new ActionNode ("flee",
|
||||||
/*P*/ nullptr,
|
/*P*/ nullptr,
|
||||||
|
|||||||
Reference in New Issue
Block a user