本文整理汇总了C++中Pile::getPileState方法的典型用法代码示例。如果您正苦于以下问题:C++ Pile::getPileState方法的具体用法?C++ Pile::getPileState怎么用?C++ Pile::getPileState使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pile
的用法示例。
在下文中一共展示了Pile::getPileState方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: isSourceValid
bool FileSystemActor::isSourceValid()
{
FileSystemActor *fsData = NULL;
Actor *data = NULL;
for (uint i = 0; i < source.size(); i++)
{
// Check to see if the icon is a filesystem icon
if (source[i]->isBumpObjectType(BumpActor))
{
data = (Actor *) source[i];
if (data->isActorType(FileSystem))
{
fsData = (FileSystemActor *) source[i];
// Exclude Virtual folders
if (fsData->isFileSystemType(Virtual)) return false;
if (fsData->isFileSystemType(LogicalVolume)) return false;
if (fsData == this) return false;
}
else if (data->isActorType(Webpage) && RecycleBin == winOS->GetIconTypeFromFileName(getFullPath()))
return true; // can drop WebActor into Recycling Bin to delete
else
return false;
}else if (source[i]->isBumpObjectType(BumpPile))
{
Pile *pile = (Pile *) source[i];
// Check for any items that cannot be moved (ie. Virtual folders)
for (uint i = 0; i < pile->getNumItems(); i++)
{
if (!(*pile)[i]->isPilable(HardPile))
{
return false;
}
}
// Ignore gridded items because they are on the dynamic plane, above
// all other items on the floor.
if (pile->getPileState() == Grid) return false;
// Allow Piles
return true;
}else{
// Logical items are not allowed
return false;
}
}
return true;
}