您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ stop_displaying_shield函数代码示例

51自学网 2021-06-03 08:24:24
  C++
这篇教程C++ stop_displaying_shield函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中stop_displaying_shield函数的典型用法代码示例。如果您正苦于以下问题:C++ stop_displaying_shield函数的具体用法?C++ stop_displaying_shield怎么用?C++ stop_displaying_shield使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了stop_displaying_shield函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: 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,


示例3: 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,


示例4: 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,


示例5: 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,


示例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_walking_common

/** * /brief Starts the "walking" animation with sprites that represent * the hero carrying something. * * If the hero actually carries an item, the carried item also takes a "walking" animation. */void HeroSprites::set_animation_walking_carrying() {  set_animation_walking_common();  tunic_sprite->set_current_animation("carrying_walking");  if (lifted_item != NULL) {    lifted_item->set_animation_walking();  }  stop_displaying_shield();  stop_displaying_trail();}
开发者ID:Shin-NiL,项目名称:solarus,代码行数:18,


示例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,



注:本文中的stop_displaying_shield函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ stop_displaying_trail函数代码示例
C++ stop_data_traffic函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。