这篇教程C++ stop_displaying_trail函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中stop_displaying_trail函数的典型用法代码示例。如果您正苦于以下问题:C++ stop_displaying_trail函数的具体用法?C++ stop_displaying_trail怎么用?C++ stop_displaying_trail使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了stop_displaying_trail函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: get_animation_direction/** * /brief Starts (or restarts) the "sword" animation of the hero's sprites. */void HeroSprites::set_animation_sword() { int direction = get_animation_direction(); tunic_sprite->set_current_animation("sword"); tunic_sprite->restart_animation(); sword_sprite->set_current_animation("sword"); sword_sprite->set_current_direction(direction); sword_sprite->restart_animation(); sword_stars_sprite->stop_animation(); if (equipment.has_ability("shield")) { if (direction % 2 != 0) { shield_sprite->set_current_animation("sword"); shield_sprite->set_current_direction(direction / 2); shield_sprite->restart_animation(); } else { stop_displaying_shield(); } } stop_displaying_trail();}
开发者ID:Shin-NiL,项目名称:solarus,代码行数:28,
示例2: set_tunic_animation/** * /brief Starts the "hurt" animation of the hero's sprites. */void HeroSprites::set_animation_hurt() { set_tunic_animation("hurt"); stop_displaying_sword(); stop_displaying_shield(); stop_displaying_trail();}
开发者ID:vincent-grosbois,项目名称:solarus,代码行数:10,
示例3: stop_displaying_sword/** * /brief Starts the "hurt" animation of the hero's sprites. */void HeroSprites::set_animation_hurt() { tunic_sprite->set_current_animation("hurt"); stop_displaying_sword(); stop_displaying_shield(); stop_displaying_trail();}
开发者ID:Shin-NiL,项目名称:solarus,代码行数:10,
示例4: set_animation_stopped_common/** * /brief Starts the "stopped" animation with sprites that represent * the hero swimming. */void HeroSprites::set_animation_stopped_swimming() { set_animation_stopped_common(); tunic_sprite->set_current_animation("swimming_stopped"); stop_displaying_sword(); stop_displaying_shield(); stop_displaying_trail();}
开发者ID:Shin-NiL,项目名称:solarus,代码行数:12,
示例5: stop_displaying_sword_stars/** * /brief Starts (or restarts) the "super_spin_attck" animation of the hero's sprites. */void HeroSprites::set_animation_super_spin_attack() { tunic_sprite->set_current_animation("super_spin_attack"); sword_sprite->set_current_animation("super_spin_attack"); stop_displaying_sword_stars(); stop_displaying_shield(); stop_displaying_trail();}
开发者ID:Shin-NiL,项目名称:solarus,代码行数:11,
示例6: set_animation_walking_common/** * /brief Starts the "swimming_fast" animation of the sprites. */void HeroSprites::set_animation_swimming_fast() { set_animation_walking_common(); set_tunic_animation("swimming_fast"); stop_displaying_sword(); stop_displaying_shield(); stop_displaying_trail();}
开发者ID:vincent-grosbois,项目名称:solarus,代码行数:12,
示例7: set_animation_stopped_common/** * /brief Starts the "stopped" animation with sprites that represent * the hero carrying something. * * If the hero actually carries an item, the carried item also takes a "stopped" animation. */void HeroSprites::set_animation_stopped_carrying() { set_animation_stopped_common(); set_tunic_animation("carrying_stopped"); if (lifted_item != nullptr) { lifted_item->set_animation_stopped(); } stop_displaying_trail();}
开发者ID:vincent-grosbois,项目名称:solarus,代码行数:16,
示例8: stop_displaying_shield/** * /brief Starts a custom animation of the hero's sprites. * * The animation of the tunic and the shield (if any) can be specified here. * Other sprites are hidden. Many simple animations can be started with * this function. More complex one have dedicated functions. * * /param tunic_animation name of the animation to give to the tunic sprite * /param shield_animation name of the animation to give to the shield sprite, * or an empty string to hide the shield. */void HeroSprites::set_animation(const std::string& tunic_animation, const std::string& shield_animation) { tunic_sprite->set_current_animation(tunic_animation); if (shield_animation.size() > 0 && equipment.has_ability("shield")) { shield_sprite->set_current_animation(shield_animation); } else { stop_displaying_shield(); } stop_displaying_sword(); stop_displaying_trail();}
开发者ID:Shin-NiL,项目名称:solarus,代码行数:26,
示例9: get_animation_direction/** * /brief Starts (or restarts) the "sword tapping" animation of the hero's sprites. */void HeroSprites::set_animation_sword_tapping() { int direction = get_animation_direction(); set_tunic_animation("sword_tapping"); tunic_sprite->restart_animation(); sword_sprite->set_current_animation("sword_tapping"); sword_sprite->set_current_direction(direction); sword_sprite->restart_animation(); sword_stars_sprite->stop_animation(); if (equipment.has_ability(Ability::SHIELD)) { shield_sprite->set_current_animation("sword_tapping"); shield_sprite->set_current_direction(direction); shield_sprite->restart_animation(); } stop_displaying_trail();}
开发者ID:vincent-grosbois,项目名称:solarus,代码行数:23,
注:本文中的stop_displaying_trail函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ stop_glerror函数代码示例 C++ stop_displaying_shield函数代码示例 |