mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 21:19:57 +00:00
30 lines
687 B
C++
30 lines
687 B
C++
#ifndef OPENMW_MECHANICS_PICKPOCKET_H
|
|
#define OPENMW_MECHANICS_PICKPOCKET_H
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
namespace MWMechanics
|
|
{
|
|
|
|
class Pickpocket
|
|
{
|
|
public:
|
|
Pickpocket (const MWWorld::Ptr& thief, const MWWorld::Ptr& victim);
|
|
|
|
/// Steal some items
|
|
/// @return Was the thief detected?
|
|
bool pick (MWWorld::Ptr item, int count);
|
|
/// End the pickpocketing process
|
|
/// @return Was the thief detected?
|
|
bool finish ();
|
|
|
|
private:
|
|
bool getDetected(float valueTerm);
|
|
float getChanceModifier(const MWWorld::Ptr& ptr, float add=0);
|
|
MWWorld::Ptr mThief;
|
|
MWWorld::Ptr mVictim;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|