1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 13:49:55 +00:00
openmw-tes3mp/apps/openmw/mwworld/action.hpp

34 lines
591 B
C++
Raw Normal View History

2010-08-03 16:20:15 +00:00
#ifndef GAME_MWWORLD_ACTION_H
#define GAME_MWWORLD_ACTION_H
#include <string>
2010-08-03 16:20:15 +00:00
namespace MWWorld
{
2012-07-27 10:00:10 +00:00
class Ptr;
2010-08-03 16:20:15 +00:00
/// \brief Abstract base for actions
class Action
{
std::string mSoundId;
2010-08-03 16:20:15 +00:00
// not implemented
Action (const Action& action);
Action& operator= (const Action& action);
2012-07-27 10:00:10 +00:00
virtual void executeImp (const Ptr& actor) = 0;
2010-08-03 16:20:15 +00:00
public:
2012-07-27 10:00:10 +00:00
Action();
2010-08-03 16:20:15 +00:00
2012-07-27 10:00:10 +00:00
virtual ~Action();
2010-08-03 16:20:15 +00:00
2012-07-27 10:00:10 +00:00
void execute (const Ptr& actor);
void setSound (const std::string& id);
2010-08-03 16:20:15 +00:00
};
}
#endif