本文整理汇总了C++中Npc::is_solid方法的典型用法代码示例。如果您正苦于以下问题:C++ Npc::is_solid方法的具体用法?C++ Npc::is_solid怎么用?C++ Npc::is_solid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Npc
的用法示例。
在下文中一共展示了Npc::is_solid方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: is_npc_obstacle
/**
* \brief Returns whether a non-playing character is currently considered as an obstacle for this entity.
* \param npc a non-playing character
* \return true if the NPC is currently an obstacle for this entity
*/
bool Boomerang::is_npc_obstacle(const Npc& npc) const {
return npc.is_solid();
}
示例2: is_npc_obstacle
/**
* \brief Returns whether a non-playing character is currently considered as an obstacle for this entity.
* \param npc a non-playing character
* \return true if the NPC is currently an obstacle for this entity
*/
bool Arrow::is_npc_obstacle(Npc& npc) {
return npc.is_solid();
}
示例3: is_npc_obstacle
/**
* \brief Returns whether a non-playing character is currently considered as an obstacle for this entity.
* \param npc a non-playing character
* \return true if the NPC is currently an obstacle for this entity
*/
bool CarriedItem::is_npc_obstacle(Npc& npc) {
return npc.is_solid();
}
示例4: is_npc_obstacle
/**
* \brief Returns whether a non-playing character is currently considered as an obstacle for this entity.
* \param npc a non-playing character
* \return true if the NPC is currently an obstacle for this entity
*/
bool Boomerang::is_npc_obstacle(Npc& npc) {
return npc.is_solid();
}