|
|
@ -62,6 +62,10 @@ namespace MWClass
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return *this;
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual const CreatureCustomData& asCreatureCustomData() const
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return *this;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CreatureCustomData() : mContainerStore(0) {}
|
|
|
|
CreatureCustomData() : mContainerStore(0) {}
|
|
|
|
virtual ~CreatureCustomData() { delete mContainerStore; }
|
|
|
|
virtual ~CreatureCustomData() { delete mContainerStore; }
|
|
|
@ -510,6 +514,15 @@ namespace MWClass
|
|
|
|
return ptr.getRefData().getCustomData()->asCreatureCustomData().mMovement;
|
|
|
|
return ptr.getRefData().getCustomData()->asCreatureCustomData().mMovement;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool Creature::hasToolTip(const MWWorld::ConstPtr& ptr) const
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!ptr.getRefData().getCustomData())
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const CreatureCustomData& customData = ptr.getRefData().getCustomData()->asCreatureCustomData();
|
|
|
|
|
|
|
|
return !customData.mCreatureStats.getAiSequence().isInCombat() || customData.mCreatureStats.isDead();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
MWGui::ToolTipInfo Creature::getToolTipInfo (const MWWorld::ConstPtr& ptr) const
|
|
|
|
MWGui::ToolTipInfo Creature::getToolTipInfo (const MWWorld::ConstPtr& ptr) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const MWWorld::LiveCellRef<ESM::Creature> *ref = ptr.get<ESM::Creature>();
|
|
|
|
const MWWorld::LiveCellRef<ESM::Creature> *ref = ptr.get<ESM::Creature>();
|
|
|
|