forked from liyunfan1223/mod-playerbots
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request liyunfan1223#642 from Bobblybook/master
Oculus implementation
- Loading branch information
Showing
17 changed files
with
949 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef _PLAYERBOT_WOTLKDUNGEONOCCACTIONCONTEXT_H | ||
#define _PLAYERBOT_WOTLKDUNGEONOCCACTIONCONTEXT_H | ||
|
||
#include "Action.h" | ||
#include "NamedObjectContext.h" | ||
#include "OculusActions.h" | ||
|
||
class WotlkDungeonOccActionContext : public NamedObjectContext<Action> | ||
{ | ||
public: | ||
WotlkDungeonOccActionContext() { | ||
creators["avoid unstable sphere"] = &WotlkDungeonOccActionContext::avoid_unstable_sphere; | ||
creators["mount drake"] = &WotlkDungeonOccActionContext::mount_drake; | ||
creators["dismount drake"] = &WotlkDungeonOccActionContext::dismount_drake; | ||
creators["fly drake"] = &WotlkDungeonOccActionContext::fly_drake; | ||
creators["drake attack"] = &WotlkDungeonOccActionContext::drake_attack; | ||
creators["avoid arcane explosion"] = &WotlkDungeonOccActionContext::avoid_arcane_explosion; | ||
creators["time bomb spread"] = &WotlkDungeonOccActionContext::time_bomb_spread; | ||
} | ||
private: | ||
static Action* avoid_unstable_sphere(PlayerbotAI* ai) { return new AvoidUnstableSphereAction(ai); } | ||
static Action* mount_drake(PlayerbotAI* ai) { return new MountDrakeAction(ai); } | ||
static Action* dismount_drake(PlayerbotAI* ai) { return new DismountDrakeAction(ai); } | ||
static Action* fly_drake(PlayerbotAI* ai) { return new FlyDrakeAction(ai); } | ||
static Action* drake_attack(PlayerbotAI* ai) { return new DrakeAttackAction(ai); } | ||
static Action* avoid_arcane_explosion(PlayerbotAI* ai) { return new AvoidArcaneExplosionAction(ai); } | ||
static Action* time_bomb_spread(PlayerbotAI* ai) { return new TimeBombSpreadAction(ai); } | ||
}; | ||
|
||
#endif |
Oops, something went wrong.