1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 02:49:55 +00:00
openmw-tes3mp/apps/openmw/mwworld/action.hpp
Douglas Diniz 82e7c04c0a Changing sounds to Action.
Adding onActor to Action to choose between playSound and playSound3D.
2012-08-19 20:11:50 -03:00

34 lines
645 B
C++

#ifndef GAME_MWWORLD_ACTION_H
#define GAME_MWWORLD_ACTION_H
#include <string>
namespace MWWorld
{
class Ptr;
/// \brief Abstract base for actions
class Action
{
std::string mSoundId;
bool onActor;
// not implemented
Action (const Action& action);
Action& operator= (const Action& action);
virtual void executeImp (const Ptr& actor) = 0;
public:
Action();
virtual ~Action();
void execute (const Ptr& actor);
void setSound (const std::string& id, const bool onActor = false);
};
}
#endif