mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 21:19:57 +00:00
28 lines
767 B
C++
28 lines
767 B
C++
#ifndef GAME_MWMECHANICS_AIBREATHE_H
|
|
#define GAME_MWMECHANICS_AIBREATHE_H
|
|
|
|
#include "aipackage.hpp"
|
|
|
|
namespace MWMechanics
|
|
{
|
|
/// \brief AiPackage to have an actor resurface to breathe
|
|
// The AI will go up if lesser than half breath left
|
|
class AiBreathe : public AiPackage
|
|
{
|
|
public:
|
|
AiBreathe();
|
|
|
|
virtual AiBreathe *clone() const;
|
|
|
|
virtual bool execute (const MWWorld::Ptr& actor, CharacterController& characterController, AiState& state, float duration);
|
|
|
|
virtual int getTypeId() const;
|
|
|
|
virtual unsigned int getPriority() const;
|
|
|
|
virtual bool canCancel() const { return false; }
|
|
virtual bool shouldCancelPreviousAi() const { return false; }
|
|
};
|
|
}
|
|
#endif
|
|
|