Opening doors
parent
a6b7f8e904
commit
9343b4459e
@ -0,0 +1,16 @@
|
||||
#include "actiondoor.hpp"
|
||||
|
||||
#include "../mwbase/environment.hpp"
|
||||
#include "../mwbase/world.hpp"
|
||||
|
||||
namespace MWWorld
|
||||
{
|
||||
ActionDoor::ActionDoor (const MWWorld::Ptr& object) : Action (false, object)
|
||||
{
|
||||
}
|
||||
|
||||
void ActionDoor::executeImp (const MWWorld::Ptr& actor)
|
||||
{
|
||||
MWBase::Environment::get().getWorld()->activateDoor(getTarget());
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
#ifndef GAME_MWWORLD_ACTIONDOOR_H
|
||||
#define GAME_MWWORLD_ACTIONDOOR_H
|
||||
|
||||
#include "action.hpp"
|
||||
#include "ptr.hpp"
|
||||
|
||||
namespace MWWorld
|
||||
{
|
||||
class ActionDoor : public Action
|
||||
{
|
||||
virtual void executeImp (const MWWorld::Ptr& actor);
|
||||
|
||||
public:
|
||||
ActionDoor (const Ptr& object);
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue