状态模式设计程序:游戏中英雄根据不同的体力值可以进行休息、防御、普通攻击、技能攻击.zip

上传者: sheziqiong | 上传时间: 2022-06-14 16:04:08 | 文件大小: 4.4MB | 文件类型: ZIP
资源包含文件:设计报告word+项目源码及APK文件 我们经常在课余时间玩游戏以放松身心,缓解压力。在很多游戏中英雄根据不同的体力值,可以做出不同的动作来面对敌人。 英雄可以进行休息、防御、普通攻击、技能攻击。而消耗或恢复的体力值是不同的,例如: 休息:恢复体力值至最大,体力值为最大时无需休息; 防御:消耗 10 点体力值,没有体力值无法进行防御; 普通攻击:消耗 15 点体力值,没有体力值无法进行普通攻击; 技能攻击:消耗 20 点体力值,没有体力值无法进行技能攻击; 详细介绍参考:https://blog.csdn.net/newlw/article/details/122907645

文件下载

资源详情

[{"title":"( 58 个子文件 4.4MB ) 状态模式设计程序:游戏中英雄根据不同的体力值可以进行休息、防御、普通攻击、技能攻击.zip","children":[{"title":"state","children":[{"title":"README.md <span style='color:#111;'> 19.25KB </span>","children":null,"spread":false},{"title":"state","children":[{"title":".gitignore <span style='color:#111;'> 203B </span>","children":null,"spread":false},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.jar <span style='color:#111;'> 53.06KB </span>","children":null,"spread":false},{"title":"gradle-wrapper.properties <span style='color:#111;'> 232B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"build.gradle <span style='color:#111;'> 558B </span>","children":null,"spread":false},{"title":"gradlew.bat <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"gradlew <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"app","children":[{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'> 751B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"yuebanquan","children":[{"title":"statepattern","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 388B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 713B </span>","children":null,"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"yuebanquan","children":[{"title":"statepattern","children":[{"title":"Hero.java <span style='color:#111;'> 4.21KB </span>","children":null,"spread":false},{"title":"RestState.java <span style='color:#111;'> 920B </span>","children":null,"spread":false},{"title":"SkillAttackState.java <span style='color:#111;'> 977B </span>","children":null,"spread":false},{"title":"ToastShow.java <span style='color:#111;'> 640B </span>","children":null,"spread":false},{"title":"NormalAttackState.java <span style='color:#111;'> 973B </span>","children":null,"spread":false},{"title":"DefenseState.java <span style='color:#111;'> 919B </span>","children":null,"spread":false},{"title":"State.java <span style='color:#111;'> 103B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"res","children":[{"title":"values","children":[{"title":"styles.xml <span style='color:#111;'> 383B </span>","children":null,"spread":false},{"title":"colors.xml <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 320B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 211B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 10.17KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 6.24KB </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 3.65KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-v24","children":[{"title":"ic_launcher_foreground.xml <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-anydpi-v26","children":[{"title":"ic_launcher.xml <span style='color:#111;'> 272B </span>","children":null,"spread":false},{"title":"ic_launcher_round.xml <span style='color:#111;'> 272B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 6.73KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 4.38KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 4.79KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 2.89KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable","children":[{"title":"normal_attack.gif <span style='color:#111;'> 292.72KB </span>","children":null,"spread":false},{"title":"defense.GIF <span style='color:#111;'> 5.18KB </span>","children":null,"spread":false},{"title":"rest.GIF <span style='color:#111;'> 8.75KB </span>","children":null,"spread":false},{"title":"ic_dashboard_black_24dp.xml <span style='color:#111;'> 352B </span>","children":null,"spread":false},{"title":"ic_notifications_black_24dp.xml <span style='color:#111;'> 464B </span>","children":null,"spread":false},{"title":"ic_home_black_24dp.xml <span style='color:#111;'> 310B </span>","children":null,"spread":false},{"title":"skill_attack.gif <span style='color:#111;'> 202.02KB </span>","children":null,"spread":false},{"title":"ic_launcher_background.xml <span style='color:#111;'> 5.47KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false}],"spread":false},{"title":"menu","children":[{"title":"bottom_nav_menu.xml <span style='color:#111;'> 609B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher_round.png <span style='color:#111;'> 14.78KB </span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'> 8.91KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"yuebanquan","children":[{"title":"statepattern","children":[{"title":"ExampleInstrumentedTest.java <span style='color:#111;'> 738B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"release","children":[{"title":"蔡佳泉大作业(状态模式).apk <span style='color:#111;'> 1.38MB </span>","children":null,"spread":false},{"title":"output.json <span style='color:#111;'> 256B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"gradle.properties <span style='color:#111;'> 728B </span>","children":null,"spread":false},{"title":".idea","children":[{"title":"runConfigurations.xml <span style='color:#111;'> 564B </span>","children":null,"spread":false},{"title":"encodings.xml <span style='color:#111;'> 135B </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 372B </span>","children":null,"spread":false},{"title":"gradle.xml <span style='color:#111;'> 580B </span>","children":null,"spread":false}],"spread":true},{"title":"settings.gradle <span style='color:#111;'> 15B </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"设计报告.docx <span style='color:#111;'> 279.21KB </span>","children":null,"spread":false},{"title":"月半泉大作业(状态模式).apk <span style='color:#111;'> 3.09MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明