OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
nullaction.hpp
Go to the documentation of this file.
1 #ifndef GAME_MWWORLD_NULLACTION_H
2 #define GAME_MWWORLD_NULLACTION_H
3 
4 #include "action.hpp"
5 
6 namespace MWWorld
7 {
9  class NullAction : public Action
10  {
11  virtual void executeImp (const Ptr& actor) {}
12 
13  virtual bool isNullAction() { return true; }
14  };
15 }
16 
17 #endif
Abstract base for actions.
Definition: action.hpp:11
virtual void executeImp(const Ptr &actor)
Definition: nullaction.hpp:11
Action: do nothing.
Definition: nullaction.hpp:9
virtual bool isNullAction()
Is running this action a no-op? (default false)
Definition: nullaction.hpp:13
Pointer to a LiveCellRef.
Definition: ptr.hpp:19