コード例 #1
0
ファイル: Boomerang.cpp プロジェクト: bgalok/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 Boomerang::is_npc_obstacle(const Npc& npc) const {
  return npc.is_solid();
}
コード例 #2
0
ファイル: Arrow.cpp プロジェクト: Arseth/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();
}
コード例 #3
0
ファイル: CarriedItem.cpp プロジェクト: Codex-NG/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 CarriedItem::is_npc_obstacle(Npc& npc) {
  return npc.is_solid();
}
コード例 #4
0
ファイル: Boomerang.cpp プロジェクト: Codex-NG/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 Boomerang::is_npc_obstacle(Npc& npc) {
  return npc.is_solid();
}