Skip to content

Commit 3881940

Browse files
authored
PoS Strategies (liyunfan1223#1283)
PoS Strategies
1 parent dc703cc commit 3881940

16 files changed

+571
-10
lines changed

src/strategy/AiObjectContext.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ AiObjectContext::AiObjectContext(PlayerbotAI* botAI) : PlayerbotAIAware(botAI)
7575
actionContexts.Add(new WotlkDungeonUPActionContext());
7676
actionContexts.Add(new WotlkDungeonCoSActionContext());
7777
actionContexts.Add(new WotlkDungeonFoSActionContext());
78+
actionContexts.Add(new WotlkDungeonPoSActionContext());
7879
actionContexts.Add(new WotlkDungeonToCActionContext());
7980

8081
triggerContexts.Add(new TriggerContext());
@@ -102,7 +103,8 @@ AiObjectContext::AiObjectContext(PlayerbotAI* botAI) : PlayerbotAIAware(botAI)
102103
triggerContexts.Add(new WotlkDungeonOccTriggerContext());
103104
triggerContexts.Add(new WotlkDungeonUPTriggerContext());
104105
triggerContexts.Add(new WotlkDungeonCoSTriggerContext());
105-
triggerContexts.Add(new WotlkDungeonFosTriggerContext());
106+
triggerContexts.Add(new WotlkDungeonFoSTriggerContext());
107+
triggerContexts.Add(new WotlkDungeonPoSTriggerContext());
106108
triggerContexts.Add(new WotlkDungeonToCTriggerContext());
107109

108110
valueContexts.Add(new ValueContext());

src/strategy/dungeons/DungeonStrategyContext.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "wotlk/utgardepinnacle/UtgardePinnacleStrategy.h"
1616
#include "wotlk/cullingofstratholme/CullingOfStratholmeStrategy.h"
1717
#include "wotlk/forgeofsouls/ForgeOfSoulsStrategy.h"
18+
#include "wotlk/pitofsaron/PitOfSaronStrategy.h"
1819
#include "wotlk/trialofthechampion/TrialOfTheChampionStrategy.h"
1920

2021
/*
@@ -79,10 +80,11 @@ class DungeonStrategyContext : public NamedObjectContext<Strategy>
7980
static Strategy* wotlk_up(PlayerbotAI* botAI) { return new WotlkDungeonUPStrategy(botAI); }
8081
static Strategy* wotlk_cos(PlayerbotAI* botAI) { return new WotlkDungeonCoSStrategy(botAI); }
8182
static Strategy* wotlk_fos(PlayerbotAI* botAI) { return new WotlkDungeonFoSStrategy(botAI); }
83+
static Strategy* wotlk_pos(PlayerbotAI* botAI) { return new WotlkDungeonPoSStrategy(botAI); }
8284
static Strategy* wotlk_toc(PlayerbotAI* botAI) { return new WotlkDungeonToCStrategy(botAI); }
8385
// NYI from here down
8486
static Strategy* wotlk_hor(PlayerbotAI* botAI) { return new WotlkDungeonUKStrategy(botAI); }
85-
static Strategy* wotlk_pos(PlayerbotAI* botAI) { return new WotlkDungeonUKStrategy(botAI); }
87+
8688

8789
};
8890

src/strategy/dungeons/wotlk/WotlkDungeonActionContext.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
#include "utgardepinnacle/UtgardePinnacleActionContext.h"
1515
#include "cullingofstratholme/CullingOfStratholmeActionContext.h"
1616
#include "forgeofsouls/ForgeOfSoulsActionContext.h"
17+
#include "pitofsaron/PitOfSaronActionContext.h"
1718
#include "trialofthechampion/TrialOfTheChampionActionContext.h"
1819
// #include "hallsofreflection/HallsOfReflectionActionContext.h"
19-
// #include "pitofsaron/PitOfSaronActionContext.h"
2020

2121
#endif

src/strategy/dungeons/wotlk/WotlkDungeonTriggerContext.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
#include "utgardepinnacle/UtgardePinnacleTriggerContext.h"
1515
#include "cullingofstratholme/CullingOfStratholmeTriggerContext.h"
1616
#include "forgeofsouls/ForgeOfSoulsTriggerContext.h"
17+
#include "pitofsaron/PitOfSaronTriggerContext.h"
1718
#include "trialofthechampion/TrialOfTheChampionTriggerContext.h"
1819
// #include "hallsofreflection/HallsOfReflectionTriggerContext.h"
19-
// #include "pitofsaron/PitOfSaronTriggerContext.h"
20+
2021

2122
#endif

src/strategy/dungeons/wotlk/forgeofsouls/ForgeOfSoulsTriggerContext.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
#include "AiObjectContext.h"
66
#include "ForgeOfSoulsTriggers.h"
77

8-
class WotlkDungeonFosTriggerContext : public NamedObjectContext<Trigger>
8+
class WotlkDungeonFoSTriggerContext : public NamedObjectContext<Trigger>
99
{
1010
public:
11-
WotlkDungeonFosTriggerContext()
11+
WotlkDungeonFoSTriggerContext()
1212
{
13-
creators["bronjahm position"] = &WotlkDungeonFosTriggerContext::bronjahm_position;
14-
creators["move from bronjahm"] = &WotlkDungeonFosTriggerContext::move_from_bronjahm;
15-
creators["switch to soul fragment"] = &WotlkDungeonFosTriggerContext::switch_to_soul_fragment;
16-
creators["devourer of souls"] = &WotlkDungeonFosTriggerContext::devourer_of_souls;
13+
creators["bronjahm position"] = &WotlkDungeonFoSTriggerContext::bronjahm_position;
14+
creators["move from bronjahm"] = &WotlkDungeonFoSTriggerContext::move_from_bronjahm;
15+
creators["switch to soul fragment"] = &WotlkDungeonFoSTriggerContext::switch_to_soul_fragment;
16+
creators["devourer of souls"] = &WotlkDungeonFoSTriggerContext::devourer_of_souls;
1717
}
1818

1919
private:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#ifndef _PLAYERBOT_WOTLKDUNGEONPOSACTIONCONTEXT_H
2+
#define _PLAYERBOT_WOTLKDUNGEONPOSACTIONCONTEXT_H
3+
4+
#include "Action.h"
5+
#include "NamedObjectContext.h"
6+
#include "PitOfSaronActions.h"
7+
8+
class WotlkDungeonPoSActionContext : public NamedObjectContext<Action>
9+
{
10+
public:
11+
WotlkDungeonPoSActionContext()
12+
{
13+
creators["ick and krick"] = &WotlkDungeonPoSActionContext::ick_and_krick;
14+
creators["tyrannus"] = &WotlkDungeonPoSActionContext::tyrannus;
15+
}
16+
private:
17+
static Action* ick_and_krick(PlayerbotAI* ai) { return new IckAndKrickAction(ai); }
18+
static Action* tyrannus(PlayerbotAI* ai) { return new TyrannusAction(ai); }
19+
};
20+
21+
#endif

0 commit comments

Comments
 (0)