本文整理汇总了C++中MapEntity::notify_collision_with_fire方法的典型用法代码示例。如果您正苦于以下问题:C++ MapEntity::notify_collision_with_fire方法的具体用法?C++ MapEntity::notify_collision_with_fire怎么用?C++ MapEntity::notify_collision_with_fire使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MapEntity
的用法示例。
在下文中一共展示了MapEntity::notify_collision_with_fire方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: notify_collision
/**
* \brief Notifies this entity that a pixel-precise collision was just detected with another sprite.
*
* This function is called by check_collision(MapEntity*, Sprite*) when another entity's
* sprite overlaps a sprite of this detector.
*
* \param other_entity the entity overlapping this detector
* \param other_sprite the sprite of other_entity that is overlapping this detector
* \param this_sprite the sprite of this detector that is overlapping the other entity's sprite
*/
void Fire::notify_collision(MapEntity& other_entity, Sprite& other_sprite, Sprite& this_sprite) {
other_entity.notify_collision_with_fire(*this, other_sprite);
}