在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → 有限状态机游戏编程.zip

有限状态机游戏编程.zip

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:16.12M
  • 下载次数:3
  • 浏览次数:61
  • 发布时间:2021-12-03
  • 实例类别:一般编程问题
  • 发 布 人:js2021
  • 文件格式:.zip
  • 所需积分:2
 

实例介绍

【实例简介】
1.人物类的实现(以Mao类为例) 2.状态类的实现(以MaoOwnedStates为例) 3.消息系统的添加(以CommandorOwnedStates为例)
【实例截图】
【核心代码】
4744302543390431133.zip
└── 十送红军2.0
├── 2D
│   ├── C2DMatrix.h
│   ├── geometry.h
│   ├── InvertedAABBox2D.h
│   ├── Transformations.h
│   ├── Vector2d.cpp
│   ├── Vector2D.h
│   ├── Wall2D.h
│   └── WallIntersectionTests.h
├── BaseGameEntity.cpp
├── BaseGameEntity.h
├── Commander.cpp
├── Commander.h
├── CommanderOwnedStates.cpp
├── CommanderOwnedStates.h
├── CrudeTimer.cpp
├── CrudeTimer.h
├── Debug
│   ├── RedArmy.exe
│   ├── RedArmy.ilk
│   └── RedArmy.pdb
├── EntityManager.cpp
├── EntityManager.h
├── EntityNames.h
├── FSM
│   ├── State.h
│   └── StateMachine.h
├── fuzzy
│   ├── FuzzyHedges.h
│   ├── FuzzyModule.cpp
│   ├── FuzzyModule.h
│   ├── FuzzyOperators.cpp
│   ├── FuzzyOperators.h
│   ├── FuzzyRule.h
│   ├── FuzzySet.h
│   ├── FuzzySet_LeftShoulder.cpp
│   ├── FuzzySet_LeftShoulder.h
│   ├── FuzzySet_RightShoulder.cpp
│   ├── FuzzySet_RightShoulder.h
│   ├── FuzzySet_Shoulder.h
│   ├── FuzzySet_Singleton.cpp
│   ├── FuzzySet_Singleton.h
│   ├── FuzzySet_Triangle.cpp
│   ├── FuzzySet_Triangle.h
│   ├── FuzzyTerm.h
│   ├── FuzzyVariable.cpp
│   ├── FuzzyVariable.h
│   └── FzSet.h
├── Game
│   ├── BaseGameEntity.cpp
│   ├── BaseGameEntity.h
│   ├── EntityFunctionTemplates.h
│   ├── EntityManager.cpp
│   ├── EntityManager.h
│   ├── MovingEntity.h
│   └── Region.h
├── Goals
│   ├── Goal_Composite.h
│   └── Goal.h
├── Graph
│   ├── AStarHeuristicPolicies.h
│   ├── GraphAlgorithms.h
│   ├── GraphEdgeTypes.h
│   ├── GraphNodeTypes.h
│   ├── HandyGraphFunctions.h
│   ├── NodeTypeEnumerations.h
│   └── SparseGraph.h
├── ipch
│   └── redarmy-fe27b8ba
│   └── redarmy-99d4cf80.ipch
├── Locations.h
├── lua-5.1.3
│   ├── include
│   │   ├── lauxlib.h
│   │   ├── luaconf.h
│   │   ├── lua.h
│   │   ├── luahelperfunctions.h
│   │   ├── lua.hpp
│   │   ├── lualib.h
│   │   └── OpenLuaStates.h
│   └── lua5.1.lib
├── luabind
│   ├── config
│   ├── doc
│   │   ├── adopt.rst
│   │   ├── changes.txt
│   │   ├── copy.rst
│   │   ├── dependency.rst
│   │   ├── discard_result.rst
│   │   ├── docs.html
│   │   ├── docs.rst
│   │   ├── index.html
│   │   ├── luabind-logo-label.ps
│   │   ├── luabind.png
│   │   ├── out_value.rst
│   │   ├── pure_out_value.rst
│   │   ├── raw.rst
│   │   ├── return_reference_to.rst
│   │   ├── return_stl_iterator.rst
│   │   ├── style.css
│   │   └── yield.rst
│   ├── examples
│   │   ├── any_converter
│   │   │   ├── any_converter.cpp
│   │   │   ├── Jamfile
│   │   │   └── makefile
│   │   ├── cln
│   │   │   ├── cln_test.cpp
│   │   │   ├── cln_test.lua
│   │   │   ├── makefile
│   │   │   └── README
│   │   ├── filesystem
│   │   │   ├── directory_iterator.hpp
│   │   │   ├── filesystem.cpp
│   │   │   ├── inspect.lua
│   │   │   ├── Jamfile
│   │   │   └── makefile
│   │   ├── glut
│   │   │   ├── glut_bind.cpp
│   │   │   ├── glut_bindings.lua
│   │   │   ├── Jamfile
│   │   │   └── makefile
│   │   ├── hello_world
│   │   │   ├── hello_world.cpp
│   │   │   ├── Jamfile
│   │   │   ├── project-root.jam
│   │   │   └── README
│   │   ├── intrusive_ptr
│   │   │   ├── intrusive_ptr.cpp
│   │   │   ├── Jamfile
│   │   │   └── makefile
│   │   ├── makefile
│   │   └── regexp
│   │   ├── Jamfile
│   │   ├── makefile
│   │   ├── regex.lua
│   │   └── regex_wrap.cpp
│   ├── INSTALL
│   ├── Jamfile
│   ├── lib
│   │   └── luabind.lib
│   ├── LICENSE
│   ├── luabind
│   │   ├── adopt_policy.hpp
│   │   ├── back_reference_fwd.hpp
│   │   ├── back_reference.hpp
│   │   ├── class.hpp
│   │   ├── class_info.hpp
│   │   ├── config.hpp
│   │   ├── container_policy.hpp
│   │   ├── copy_policy.hpp
│   │   ├── dependency_policy.hpp
│   │   ├── detail
│   │   │   ├── calc_arity.hpp
│   │   │   ├── call_function.hpp
│   │   │   ├── call.hpp
│   │   │   ├── call_member.hpp
│   │   │   ├── call_operator_iterate.hpp
│   │   │   ├── class_cache.hpp
│   │   │   ├── class_registry.hpp
│   │   │   ├── class_rep.hpp
│   │   │   ├── constructor.hpp
│   │   │   ├── construct_rep.hpp
│   │   │   ├── convert_to_lua.hpp
│   │   │   ├── debug.hpp
│   │   │   ├── decorate_type.hpp
│   │   │   ├── enum_maker.hpp
│   │   │   ├── find_best_match.hpp
│   │   │   ├── garbage_collector.hpp
│   │   │   ├── get_overload_signature.hpp
│   │   │   ├── get_signature.hpp
│   │   │   ├── has_get_pointer.hpp
│   │   │   ├── implicit_cast.hpp
│   │   │   ├── is_indirect_const.hpp
│   │   │   ├── link_compatibility.hpp
│   │   │   ├── method_rep.hpp
│   │   │   ├── most_derived.hpp
│   │   │   ├── object_call.hpp
│   │   │   ├── object_funs.hpp
│   │   │   ├── object_rep.hpp
│   │   │   ├── open.hpp
│   │   │   ├── operator_id.hpp
│   │   │   ├── other.hpp
│   │   │   ├── overload_rep_base.hpp
│   │   │   ├── overload_rep.hpp
│   │   │   ├── pcall.hpp
│   │   │   ├── pointee_sizeof.hpp
│   │   │   ├── pointee_typeid.hpp
│   │   │   ├── policy.hpp
│   │   │   ├── primitives.hpp
│   │   │   ├── property.hpp
│   │   │   ├── ref.hpp
│   │   │   ├── signature_match.hpp
│   │   │   ├── stack_utils.hpp
│   │   │   ├── typetraits.hpp
│   │   │   └── yes_no.hpp
│   │   ├── discard_result_policy.hpp
│   │   ├── error.hpp
│   │   ├── from_stack.hpp
│   │   ├── function.hpp
│   │   ├── get_pointer.hpp
│   │   ├── handle.hpp
│   │   ├── iterator_policy.hpp
│   │   ├── luabind.hpp
│   │   ├── lua_include.hpp
│   │   ├── nil.hpp
│   │   ├── object.hpp
│   │   ├── open.hpp
│   │   ├── operator.hpp
│   │   ├── out_value_policy.hpp
│   │   ├── prefix.hpp
│   │   ├── raw_policy.hpp
│   │   ├── return_reference_to_policy.hpp
│   │   ├── scope.hpp
│   │   ├── value_wrapper.hpp
│   │   ├── weak_ref.hpp
│   │   ├── wrapper_base.hpp
│   │   └── yield_policy.hpp
│   ├── makefile
│   ├── src
│   │   ├── class.cpp
│   │   ├── class_info.cpp
│   │   ├── class_registry.cpp
│   │   ├── class_rep.cpp
│   │   ├── create_class.cpp
│   │   ├── error.cpp
│   │   ├── find_best_match.cpp
│   │   ├── function.cpp
│   │   ├── implicit_cast.cpp
│   │   ├── Jamfile
│   │   ├── link_compatibility.cpp
│   │   ├── makefile
│   │   ├── object_rep.cpp
│   │   ├── open.cpp
│   │   ├── overload_rep.cpp
│   │   ├── pcall.cpp
│   │   ├── ref.cpp
│   │   ├── scope.cpp
│   │   ├── stack_content_by_name.cpp
│   │   ├── weak_ref.cpp
│   │   └── wrapper_base.cpp
│   └── test
│   ├── benchmark.cpp
│   ├── Jamfile
│   ├── main.cpp
│   ├── makefile
│   ├── test_abstract_base.cpp
│   ├── test_attributes.cpp
│   ├── test_back_reference.cpp
│   ├── test_const.cpp
│   ├── test_construction.cpp
│   ├── test_def_from_base.cpp
│   ├── test_exceptions.cpp
│   ├── test_free_functions.cpp
│   ├── test_has_get_pointer.cpp
│   ├── test_held_type.cpp
│   ├── test.hpp
│   ├── test_implicit_cast.cpp
│   ├── test_iterator.cpp
│   ├── test_lua_classes.cpp
│   ├── test_null_pointer.cpp
│   ├── test_object.cpp
│   ├── test_operators.cpp
│   ├── test_policies.cpp
│   ├── test_scope.cpp
│   ├── test_separation.cpp
│   ├── test_simple_class.cpp
│   ├── test_typetraits.cpp
│   ├── test_value_wrapper.cpp
│   ├── test_vector_of_object.cpp
│   └── test_yield.cpp
├── main.cpp
├── Mao.cpp
├── Mao.h
├── MaoOwnedStates.cpp
├── MaoOwnedStates.h
├── MessageDispatcher.cpp
├── MessageDispatcher.h
├── MessageTypes.h
├── Messaging
│   ├── MessageDispatcher.cpp
│   ├── MessageDispatcher.h
│   └── Telegram.h
├── misc
│   ├── autolist.h
│   ├── CellSpacePartition.h
│   ├── Cgdi.cpp
│   ├── Cgdi.h
│   ├── ConsoleUtils.h
│   ├── FrameCounter.cpp
│   ├── FrameCounter.h
│   ├── iniFileLoaderBase.cpp
│   ├── iniFileLoaderBase.h
│   ├── PriorityQueue.h
│   ├── Smoother.h
│   ├── Stream_Utility_Functions.h
│   ├── TypeToString.h
│   ├── utils.h
│   ├── WindowUtils.cpp
│   └── WindowUtils.h
├── People.cpp
├── People.h
├── PeopleOwnedStates.cpp
├── PeopleOwnedStates.h
├── RedArmy
│   ├── Debug
│   │   ├── BaseGameEntity.obj
│   │   ├── cl.command.1.tlog
│   │   ├── CL.read.1.tlog
│   │   ├── CL.write.1.tlog
│   │   ├── Commander.obj
│   │   ├── CommanderOwnedStates.obj
│   │   ├── CrudeTimer.obj
│   │   ├── EntityManager.obj
│   │   ├── link.command.1.tlog
│   │   ├── link.read.1.tlog
│   │   ├── link.write.1.tlog
│   │   ├── main.obj
│   │   ├── Mao.obj
│   │   ├── MaoOwnedStates.obj
│   │   ├── MessageDispatcher.obj
│   │   ├── mt.command.1.tlog
│   │   ├── mt.read.1.tlog
│   │   ├── mt.write.1.tlog
│   │   ├── People.obj
│   │   ├── PeopleOwnedStates.obj
│   │   ├── RedArmy.exe.intermediate.manifest
│   │   ├── RedArmy.lastbuildstate
│   │   ├── RedArmy.log
│   │   ├── vc100.idb
│   │   └── vc100.pdb
│   ├── RedArmy.vcxproj
│   ├── RedArmy.vcxproj.filters
│   └── RedArmy.vcxproj.user
├── RedArmy.sln
├── RedArmy.suo
├── script
│   └── Scriptor.h
├── Time
│   ├── CrudeTimer.cpp
│   ├── CrudeTimer.h
│   ├── PrecisionTimer.cpp
│   ├── PrecisionTimer.h
│   └── Regulator.h
├── Triggers
│   ├── Trigger.h
│   ├── Trigger_LimitedLifeTime.h
│   ├── TriggerRegion.h
│   ├── Trigger_Respawning.h
│   └── TriggerSystem.h
└── _UpgradeReport_Files
├── UpgradeReport.css
├── UpgradeReport_Minus.gif
├── UpgradeReport_Plus.gif
└── UpgradeReport.xslt

35 directories, 321 files

标签:

实例下载地址

有限状态机游戏编程.zip

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警