OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pickpocket.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_MECHANICS_PICKPOCKET_H
2 #define OPENMW_MECHANICS_PICKPOCKET_H
3 
4 #include "../mwworld/ptr.hpp"
5 
6 namespace MWMechanics
7 {
8 
9  class Pickpocket
10  {
11  public:
12  Pickpocket (const MWWorld::Ptr& thief, const MWWorld::Ptr& victim);
13 
16  bool pick (MWWorld::Ptr item, int count);
19  bool finish ();
20 
21  private:
22  bool getDetected(float valueTerm);
23  float getChanceModifier(const MWWorld::Ptr& ptr, float add=0);
26  };
27 
28 }
29 
30 #endif
bool getDetected(float valueTerm)
Definition: pickpocket.cpp:31
MWWorld::Ptr mThief
Definition: pickpocket.hpp:24
float getChanceModifier(const MWWorld::Ptr &ptr, float add=0)
Definition: pickpocket.cpp:22
void add(CodeContainer &code, char valueType1, char valueType2)
Definition: generator.cpp:442
Pickpocket(const MWWorld::Ptr &thief, const MWWorld::Ptr &victim)
Definition: pickpocket.cpp:16
bool pick(MWWorld::Ptr item, int count)
Definition: pickpocket.cpp:56
Definition: pickpocket.hpp:9
bool finish()
Definition: pickpocket.cpp:66
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
MWWorld::Ptr mVictim
Definition: pickpocket.hpp:25