示例#1
0
/**
 * \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();
}
示例#2
0
文件: Arrow.cpp 项目: ElAleyo/solarus
/**
 * \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();
}