示例#1
0
void CIwGameActionsManager::addActions(CIwGameActions* actions)
{
#if defined(IW_REMOVE_DUPLICATES)
	CIwGameActions* acts = findActions(actions->getNameHash());
	if (acts != NULL)
	{
		CIwGameError::LogError("Warning: Actions already exists, actions list was replaced - ", actions->getName().c_str());
		removeActions(acts);
	}
#endif

	Actions.push_back(actions);
}
示例#2
0
void LayoutManager::removeWindow(IWindow& window)
{
	auto windowId = safe_str(window.id());

	auto windowIt = windows_.find(windowId);
	if (windowIt == windows_.end())
	{
		return;
	}

	removeActions(window);
	removeViews(window);

	windows_.erase(windowId);
}
示例#3
0
void CIwGameActionsManager::removeActions(CIwGameActions* actions)
{
	removeActions(actions->getNameHash());
}
AREXPORT ArActionGroupInput::~ArActionGroupInput()
{
  removeActions();
  deleteActions();
}
AREXPORT ArActionGroupRatioDriveUnsafe::~ArActionGroupRatioDriveUnsafe()
{
  removeActions();
  deleteActions();  
}
// Destructor
AREXPORT ArActionGroupColorFollow::~ArActionGroupColorFollow()
{
  removeActions();
  deleteActions();
}
AREXPORT ArActionGroupWander::~ArActionGroupWander()
{
  removeActions();
  deleteActions();
}
AREXPORT ArActionGroupUnguardedTeleop::~ArActionGroupUnguardedTeleop()
{
  removeActions();
  deleteActions();
}
AREXPORT ArActionGroupTeleop::~ArActionGroupTeleop()
{
  removeActions();
  deleteActions();
}