2012-08-11 17:30:55 +02:00
|
|
|
#ifndef GAME_MWBASE_MECHANICSMANAGER_H
|
|
|
|
#define GAME_MWBASE_MECHANICSMANAGER_H
|
|
|
|
|
2022-01-22 22:44:02 +01:00
|
|
|
#include <cstdint>
|
2022-06-26 16:42:29 +02:00
|
|
|
#include <map>
|
2016-12-20 12:38:51 +01:00
|
|
|
#include <set>
|
2012-08-11 17:30:55 +02:00
|
|
|
#include <string>
|
2022-08-23 18:25:25 +02:00
|
|
|
#include <string_view>
|
2012-08-11 17:30:55 +02:00
|
|
|
#include <vector>
|
|
|
|
|
2022-06-26 16:42:29 +02:00
|
|
|
#include "../mwmechanics/greetingstate.hpp"
|
2020-05-17 04:06:39 +03:00
|
|
|
|
2017-08-18 17:06:47 +04:00
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
|
2015-06-01 21:41:13 +02:00
|
|
|
namespace osg
|
2012-08-11 17:30:55 +02:00
|
|
|
{
|
2020-05-22 00:11:23 +02:00
|
|
|
class Stats;
|
2015-06-01 21:41:13 +02:00
|
|
|
class Vec3f;
|
2012-08-11 17:30:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
struct Class;
|
2014-06-13 01:24:58 +02:00
|
|
|
|
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
2012-08-11 17:30:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWWorld
|
|
|
|
{
|
|
|
|
class Ptr;
|
|
|
|
class CellStore;
|
2015-07-17 20:30:00 +02:00
|
|
|
class CellRef;
|
2012-08-11 17:30:55 +02:00
|
|
|
}
|
|
|
|
|
2014-06-13 01:24:58 +02:00
|
|
|
namespace Loading
|
|
|
|
{
|
|
|
|
class Listener;
|
|
|
|
}
|
|
|
|
|
2012-08-11 17:30:55 +02:00
|
|
|
namespace MWBase
|
|
|
|
{
|
|
|
|
/// \brief Interface for game mechanics manager (implemented in MWMechanics)
|
|
|
|
class MechanicsManager
|
|
|
|
{
|
|
|
|
MechanicsManager(const MechanicsManager&);
|
|
|
|
///< not implemented
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2012-08-11 17:30:55 +02:00
|
|
|
MechanicsManager& operator=(const MechanicsManager&);
|
|
|
|
///< not implemented
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2012-08-11 17:30:55 +02:00
|
|
|
public:
|
|
|
|
MechanicsManager() {}
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2012-08-11 17:30:55 +02:00
|
|
|
virtual ~MechanicsManager() {}
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2013-01-28 23:39:11 -08:00
|
|
|
virtual void add(const MWWorld::Ptr& ptr) = 0;
|
|
|
|
///< Register an object for management
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2021-08-28 14:36:30 +02:00
|
|
|
virtual void remove(const MWWorld::Ptr& ptr, bool keepActive) = 0;
|
2013-01-28 23:39:11 -08:00
|
|
|
///< Deregister an object for management
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2013-02-25 09:57:34 -08:00
|
|
|
virtual void updateCell(const MWWorld::Ptr& old, const MWWorld::Ptr& ptr) = 0;
|
2013-01-29 00:19:24 -08:00
|
|
|
///< Moves an object to a new cell
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2013-01-28 23:39:11 -08:00
|
|
|
virtual void drop(const MWWorld::CellStore* cellStore) = 0;
|
|
|
|
///< Deregister all objects in the given cell.
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2012-08-11 17:30:55 +02:00
|
|
|
virtual void setPlayerName(const std::string& name) = 0;
|
|
|
|
///< Set player name.
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2012-11-09 14:42:09 +01:00
|
|
|
virtual void setPlayerRace(const std::string& id, bool male, const std::string& head, const std::string& hair)
|
|
|
|
= 0;
|
2012-11-05 11:07:43 +01:00
|
|
|
///< Set player race.
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2012-10-27 11:33:18 +02:00
|
|
|
virtual void setPlayerBirthsign(const std::string& id) = 0;
|
2014-01-07 00:51:09 +01:00
|
|
|
///< Set player birthsign.
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2014-01-07 00:51:09 +01:00
|
|
|
virtual void setPlayerClass(const std::string& id) = 0;
|
|
|
|
///< Set player class to stock class.
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2014-01-07 00:51:09 +01:00
|
|
|
virtual void setPlayerClass(const ESM::Class& class_) = 0;
|
2014-05-06 00:13:31 +02:00
|
|
|
///< Set player class to custom class.
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2014-05-06 00:13:31 +02:00
|
|
|
virtual void restoreDynamicStats(const MWWorld::Ptr& actor, double hours, bool sleep) = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2021-11-25 22:00:52 +01:00
|
|
|
virtual void rest(double hours, bool sleep) = 0;
|
|
|
|
///< If the player is sleeping or waiting, this should be called every hour.
|
|
|
|
/// @param sleep is the player sleeping or waiting?
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2021-11-25 22:00:52 +01:00
|
|
|
virtual int getHoursToRest() const = 0;
|
|
|
|
///< Calculate how many hours the player needs to rest in order to be fully healed
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2021-11-25 22:00:52 +01:00
|
|
|
virtual int getBarterOffer(const MWWorld::Ptr& ptr, int basePrice, bool buying) = 0;
|
2014-01-07 19:49:16 +01:00
|
|
|
///< This is used by every service to determine the price of objects given the trading skills of the player and
|
|
|
|
///< NPC.
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2014-01-07 19:49:16 +01:00
|
|
|
virtual int getDerivedDisposition(const MWWorld::Ptr& ptr, bool clamp = true) = 0;
|
|
|
|
///< Calculate the diposition of an NPC toward the player.
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2014-01-07 19:49:16 +01:00
|
|
|
virtual int countDeaths(const std::string& id) const = 0;
|
|
|
|
///< Return the number of deaths for actors with the given ID.
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2014-12-19 21:45:26 +01:00
|
|
|
/// Check if \a observer is potentially aware of \a ptr. Does not do a line of sight check!
|
2014-09-26 22:08:07 +02:00
|
|
|
virtual bool awarenessCheck(const MWWorld::Ptr& ptr, const MWWorld::Ptr& observer) = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2015-02-03 23:43:56 +01:00
|
|
|
/// Makes \a ptr fight \a target. Also shouts a combat taunt.
|
2019-09-05 17:36:49 +03:00
|
|
|
virtual void startCombat(const MWWorld::Ptr& ptr, const MWWorld::Ptr& target) = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2014-01-08 17:19:43 +01:00
|
|
|
/// Removes an actor and its allies from combat with the actor's targets.
|
|
|
|
virtual void stopCombat(const MWWorld::Ptr& ptr) = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2012-11-09 20:18:38 +01:00
|
|
|
enum OffenseType
|
|
|
|
{
|
|
|
|
OT_Theft, // Taking items owned by an NPC or a faction you are not a member of
|
|
|
|
OT_Assault, // Attacking a peaceful NPC
|
2021-06-24 22:02:52 +02:00
|
|
|
OT_Murder, // Murdering a peaceful NPC
|
|
|
|
OT_Trespassing, // Picking the lock of an owned door/chest
|
|
|
|
OT_SleepingInOwnedBed, // Sleeping in a bed owned by an NPC or a faction you are not a member of
|
|
|
|
OT_Pickpocket // Entering pickpocket mode, leaving it, and being detected. Any items stolen are a separate
|
2013-12-07 13:17:28 +01:00
|
|
|
// crime (Theft)
|
2022-09-22 21:26:05 +03:00
|
|
|
};
|
|
|
|
/**
|
2013-12-07 13:17:28 +01:00
|
|
|
* @note victim may be empty
|
|
|
|
* @param arg Depends on \a type, e.g. for Theft, the value of the item that was stolen.
|
|
|
|
* @param victimAware Is the victim already aware of the crime?
|
|
|
|
* If this parameter is false, it will be determined by a line-of-sight and awareness check.
|
|
|
|
* @return was the crime seen?
|
|
|
|
*/
|
|
|
|
virtual bool commitCrime(const MWWorld::Ptr& ptr, const MWWorld::Ptr& victim, OffenseType type,
|
2016-07-30 19:24:03 +02:00
|
|
|
const std::string& factionId = "", int arg = 0, bool victimAware = false)
|
|
|
|
= 0;
|
2013-12-07 13:17:28 +01:00
|
|
|
/// @return false if the attack was considered a "friendly hit" and forgiven
|
2015-06-01 21:41:13 +02:00
|
|
|
virtual bool actorAttacked(const MWWorld::Ptr& victim, const MWWorld::Ptr& attacker) = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2017-11-11 12:31:18 +04:00
|
|
|
/// Notify that actor was killed, add a murder bounty if applicable
|
2015-12-06 23:32:49 +01:00
|
|
|
/// @note No-op for non-player attackers
|
2022-02-25 04:02:21 +02:00
|
|
|
virtual void actorKilled(const MWWorld::Ptr& victim, const MWWorld::Ptr& attacker) = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2022-02-25 04:02:21 +02:00
|
|
|
/// Utility to check if taking this item is illegal and calling commitCrime if so
|
|
|
|
/// @param container The container the item is in; may be empty for an item in the world
|
|
|
|
virtual void itemTaken(const MWWorld::Ptr& ptr, const MWWorld::Ptr& item, const MWWorld::Ptr& container,
|
|
|
|
int count, bool alarm = true)
|
2022-09-22 21:26:05 +03:00
|
|
|
= 0;
|
2022-02-25 04:02:21 +02:00
|
|
|
/// Utility to check if unlocking this object is illegal and calling commitCrime if so
|
|
|
|
virtual void unlockAttempted(const MWWorld::Ptr& ptr, const MWWorld::Ptr& item) = 0;
|
|
|
|
/// Attempt sleeping in a bed. If this is illegal, call commitCrime.
|
2020-12-25 23:57:01 +01:00
|
|
|
/// @return was it illegal, and someone saw you doing it?
|
|
|
|
virtual bool sleepInBed(const MWWorld::Ptr& ptr, const MWWorld::Ptr& bed) = 0;
|
2014-04-24 22:47:45 -04:00
|
|
|
|
2022-02-25 04:02:21 +02:00
|
|
|
enum PersuasionType
|
2022-09-22 21:26:05 +03:00
|
|
|
{
|
2022-02-25 04:02:21 +02:00
|
|
|
PT_Admire,
|
2012-11-09 20:18:38 +01:00
|
|
|
PT_Intimidate,
|
2022-09-22 21:26:05 +03:00
|
|
|
PT_Taunt,
|
2012-11-09 20:18:38 +01:00
|
|
|
PT_Bribe10,
|
|
|
|
PT_Bribe100,
|
|
|
|
PT_Bribe1000
|
2022-02-25 04:02:21 +02:00
|
|
|
};
|
|
|
|
virtual void getPersuasionDispositionChange(
|
|
|
|
const MWWorld::Ptr& npc, PersuasionType type, bool& success, int& tempChange, int& permChange)
|
|
|
|
= 0;
|
|
|
|
///< Perform a persuasion action on NPC
|
2016-06-07 01:53:16 +02:00
|
|
|
|
2016-12-20 12:38:51 +01:00
|
|
|
virtual void forceStateUpdate(const MWWorld::Ptr& ptr) = 0;
|
|
|
|
///< Forces an object to refresh its animation state.
|
|
|
|
|
2013-12-07 13:17:28 +01:00
|
|
|
virtual bool playAnimationGroup(
|
2014-06-13 01:24:58 +02:00
|
|
|
const MWWorld::Ptr& ptr, std::string_view groupName, int mode, int number = 1, bool persist = false)
|
2022-09-22 21:26:05 +03:00
|
|
|
= 0;
|
2013-12-07 13:17:28 +01:00
|
|
|
///< Run animation for a MW-reference. Calls to this function for references that are currently not
|
|
|
|
/// in the scene should be ignored.
|
2022-09-22 21:26:05 +03:00
|
|
|
///
|
2013-12-07 13:17:28 +01:00
|
|
|
/// \param mode 0 normal, 1 immediate start, 2 immediate loop
|
2014-06-13 01:24:58 +02:00
|
|
|
/// \param count How many times the animation should be run
|
|
|
|
/// \param persist Whether the animation state should be stored in saved games
|
2016-07-30 19:24:03 +02:00
|
|
|
/// and persist after cell unload.
|
2015-07-29 14:15:06 -04:00
|
|
|
/// \return Success or error
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2014-06-13 01:24:58 +02:00
|
|
|
virtual void skipAnimation(const MWWorld::Ptr& ptr) = 0;
|
2013-12-07 13:17:28 +01:00
|
|
|
///< Skip the animation for the given MW-reference for one frame. Calls to this function for
|
|
|
|
/// references that are currently not in the scene should be ignored.
|
2014-06-13 01:24:58 +02:00
|
|
|
|
2022-08-23 18:25:25 +02:00
|
|
|
virtual bool checkAnimationPlaying(const MWWorld::Ptr& ptr, const std::string& groupName) = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2016-07-30 19:24:03 +02:00
|
|
|
/// Save the current animation state of managed references to their RefData.
|
2015-02-04 21:18:43 +01:00
|
|
|
virtual void persistAnimationStates() = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2013-12-07 13:17:28 +01:00
|
|
|
/// Update magic effects for an actor. Usually done automatically once per frame, but if we're currently
|
2014-06-13 01:24:58 +02:00
|
|
|
/// paused we may want to do it manually (after equipping permanent enchantment)
|
2013-12-07 13:17:28 +01:00
|
|
|
virtual void updateMagicEffects(const MWWorld::Ptr& ptr) = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2014-03-26 19:55:52 +01:00
|
|
|
virtual bool toggleAI() = 0;
|
2013-12-07 13:17:28 +01:00
|
|
|
virtual bool isAIActive() = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2015-06-01 21:41:13 +02:00
|
|
|
virtual void getObjectsInRange(const osg::Vec3f& position, float radius, std::vector<MWWorld::Ptr>& objects)
|
2022-09-22 21:26:05 +03:00
|
|
|
= 0;
|
2015-06-01 21:41:13 +02:00
|
|
|
virtual void getActorsInRange(const osg::Vec3f& position, float radius, std::vector<MWWorld::Ptr>& objects) = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2017-09-18 21:46:57 +04:00
|
|
|
/// Check if there are actors in selected range
|
2017-11-11 12:31:18 +04:00
|
|
|
virtual bool isAnyActorInRange(const osg::Vec3f& position, float radius) = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2014-04-24 22:47:45 -04:00
|
|
|
/// Returns the list of actors which are siding with the given actor in fights
|
2015-12-06 23:32:49 +01:00
|
|
|
/**ie AiFollow or AiEscort is active and the target is the actor **/
|
2022-02-25 04:02:21 +02:00
|
|
|
virtual std::vector<MWWorld::Ptr> getActorsSidingWith(const MWWorld::Ptr& actor) = 0;
|
|
|
|
virtual std::vector<MWWorld::Ptr> getActorsFollowing(const MWWorld::Ptr& actor) = 0;
|
|
|
|
virtual std::vector<int> getActorsFollowingIndices(const MWWorld::Ptr& actor) = 0;
|
|
|
|
virtual std::map<int, MWWorld::Ptr> getActorsFollowingByIndex(const MWWorld::Ptr& actor) = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2014-04-24 22:47:45 -04:00
|
|
|
/// Returns a list of actors who are fighting the given actor within the fAlarmDistance
|
|
|
|
/** ie AiCombat is active and the target is the actor **/
|
2022-02-25 04:02:21 +02:00
|
|
|
virtual std::vector<MWWorld::Ptr> getActorsFighting(const MWWorld::Ptr& actor) = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2022-02-25 04:02:21 +02:00
|
|
|
virtual std::vector<MWWorld::Ptr> getEnemiesNearby(const MWWorld::Ptr& actor) = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2016-12-20 12:38:51 +01:00
|
|
|
/// Recursive versions of above methods
|
|
|
|
virtual void getActorsFollowing(const MWWorld::Ptr& actor, std::set<MWWorld::Ptr>& out) = 0;
|
|
|
|
virtual void getActorsSidingWith(const MWWorld::Ptr& actor, std::set<MWWorld::Ptr>& out) = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2015-02-04 21:18:43 +01:00
|
|
|
virtual void playerLoaded() = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2020-05-22 00:11:23 +02:00
|
|
|
virtual int countSavedGameRecords() const = 0;
|
2022-09-22 21:26:05 +03:00
|
|
|
|
2014-06-13 01:24:58 +02:00
|
|
|
virtual void write(ESM::ESMWriter& writer, Loading::Listener& listener) const = 0;
|
|
|
|
|
2015-01-22 19:04:59 +01:00
|
|
|
virtual void readRecord(ESM::ESMReader& reader, uint32_t type) = 0;
|
2014-06-13 01:24:58 +02:00
|
|
|
|
|
|
|
virtual void clear() = 0;
|
2014-06-16 19:34:53 +02:00
|
|
|
|
2014-12-21 02:45:37 +01:00
|
|
|
virtual bool isAggressive(const MWWorld::Ptr& ptr, const MWWorld::Ptr& target) = 0;
|
2014-07-21 20:37:14 +02:00
|
|
|
|
2014-09-05 17:17:45 +02:00
|
|
|
/// Resurrects the player if necessary
|
2019-09-21 20:22:45 +04:00
|
|
|
virtual void resurrect(const MWWorld::Ptr& ptr) = 0;
|
2014-12-12 16:49:22 +01:00
|
|
|
|
2018-06-28 16:58:51 +04:00
|
|
|
virtual bool isCastingSpell(const MWWorld::Ptr& ptr) const = 0;
|
2014-12-12 16:49:22 +01:00
|
|
|
virtual bool isReadyToBlock(const MWWorld::Ptr& ptr) const = 0;
|
2017-08-18 19:24:34 +04:00
|
|
|
virtual bool isAttackingOrSpell(const MWWorld::Ptr& ptr) const = 0;
|
2015-02-04 21:18:43 +01:00
|
|
|
|
2021-06-23 21:56:08 +02:00
|
|
|
virtual void castSpell(const MWWorld::Ptr& ptr, const std::string& spellId, bool manualSpell) = 0;
|
2018-06-28 16:58:51 +04:00
|
|
|
|
2018-09-21 16:34:23 +04:00
|
|
|
virtual void processChangedSettings(const std::set<std::pair<std::string, std::string>>& settings) = 0;
|
|
|
|
|
|
|
|
virtual float getActorsProcessingRange() const = 0;
|
|
|
|
|
2019-08-27 22:42:41 +04:00
|
|
|
virtual void notifyDied(const MWWorld::Ptr& actor) = 0;
|
|
|
|
|
2018-09-22 12:57:50 +04:00
|
|
|
virtual bool onOpen(const MWWorld::Ptr& ptr) = 0;
|
|
|
|
virtual void onClose(const MWWorld::Ptr& ptr) = 0;
|
|
|
|
|
2017-09-18 21:46:57 +04:00
|
|
|
/// Check if the target actor was detected by an observer
|
|
|
|
/// If the observer is a non-NPC, check all actors in AI processing distance as observers
|
|
|
|
virtual bool isActorDetected(const MWWorld::Ptr& actor, const MWWorld::Ptr& observer) = 0;
|
|
|
|
|
2015-02-04 21:18:43 +01:00
|
|
|
virtual void confiscateStolenItems(const MWWorld::Ptr& player, const MWWorld::Ptr& targetContainer) = 0;
|
|
|
|
|
|
|
|
/// List the owners that the player has stolen this item from (the owner can be an NPC or a faction).
|
|
|
|
/// <Owner, item count>
|
|
|
|
virtual std::vector<std::pair<std::string, int>> getStolenItemOwners(const std::string& itemid) = 0;
|
|
|
|
|
|
|
|
/// Has the player stolen this item from the given owner?
|
2018-06-03 09:46:12 +03:00
|
|
|
virtual bool isItemStolenFrom(const std::string& itemid, const MWWorld::Ptr& ptr) = 0;
|
2017-08-16 20:30:47 +04:00
|
|
|
|
2017-11-10 09:43:22 +04:00
|
|
|
virtual bool isBoundItem(const MWWorld::Ptr& item) = 0;
|
2017-09-30 20:22:26 +04:00
|
|
|
virtual bool isAllowedToUse(const MWWorld::Ptr& ptr, const MWWorld::Ptr& target, MWWorld::Ptr& victim) = 0;
|
2015-12-26 18:22:21 +01:00
|
|
|
|
|
|
|
/// Turn actor into werewolf or normal form.
|
|
|
|
virtual void setWerewolf(const MWWorld::Ptr& actor, bool werewolf) = 0;
|
|
|
|
|
|
|
|
/// Sets the NPC's Acrobatics skill to match the fWerewolfAcrobatics GMST.
|
|
|
|
/// It only applies to the current form the NPC is in.
|
|
|
|
virtual void applyWerewolfAcrobatics(const MWWorld::Ptr& actor) = 0;
|
2016-06-12 02:43:33 +02:00
|
|
|
|
|
|
|
virtual void cleanupSummonedCreature(const MWWorld::Ptr& caster, int creatureActorId) = 0;
|
2017-08-14 10:41:37 +04:00
|
|
|
|
|
|
|
virtual void confiscateStolenItemToOwner(
|
|
|
|
const MWWorld::Ptr& player, const MWWorld::Ptr& item, const MWWorld::Ptr& victim, int count)
|
|
|
|
= 0;
|
2018-08-16 17:47:06 +04:00
|
|
|
virtual bool isAttackPreparing(const MWWorld::Ptr& ptr) = 0;
|
2017-08-16 20:30:47 +04:00
|
|
|
virtual bool isRunning(const MWWorld::Ptr& ptr) = 0;
|
|
|
|
virtual bool isSneaking(const MWWorld::Ptr& ptr) = 0;
|
2020-05-22 00:11:23 +02:00
|
|
|
|
|
|
|
virtual void reportStats(unsigned int frameNumber, osg::Stats& stats) const = 0;
|
2020-05-17 04:06:39 +03:00
|
|
|
|
|
|
|
virtual int getGreetingTimer(const MWWorld::Ptr& ptr) const = 0;
|
|
|
|
virtual float getAngleToPlayer(const MWWorld::Ptr& ptr) const = 0;
|
|
|
|
virtual MWMechanics::GreetingState getGreetingState(const MWWorld::Ptr& ptr) const = 0;
|
|
|
|
virtual bool isTurningToPlayer(const MWWorld::Ptr& ptr) const = 0;
|
2012-08-11 17:30:55 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|