去除不合理的Node::getAction方法
This commit is contained in:
parent
9bd8229b3f
commit
6f8e0a4c3e
|
|
@ -808,19 +808,6 @@ void e2d::Node::stopAction(const String& name)
|
|||
}
|
||||
}
|
||||
|
||||
e2d::Action * e2d::Node::getAction(const String& name)
|
||||
{
|
||||
auto& actions = ActionManager::get(name);
|
||||
for (auto action : actions)
|
||||
{
|
||||
if (action->getTarget() == this)
|
||||
{
|
||||
return action;
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool e2d::Node::containsPoint(const Point& point) const
|
||||
{
|
||||
BOOL ret = 0;
|
||||
|
|
|
|||
|
|
@ -376,11 +376,6 @@ public:
|
|||
const String& name
|
||||
);
|
||||
|
||||
// 获取动作
|
||||
virtual Action * getAction(
|
||||
const String& name
|
||||
);
|
||||
|
||||
// 继续所有暂停动作
|
||||
virtual void resumeAllActions();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue