GithubHelp home page GithubHelp logo

zaichufa / hfsm2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrew-gresyk/hfsm2

0.0 1.0 0.0 1.59 MB

High-Performance Hierarchical Finite State Machine Framework

Home Page: https://hfsm.dev

License: MIT License

CMake 0.35% C++ 99.50% Python 0.12% SCSS 0.02%

hfsm2's Introduction

License: MIT Build status Build Status Language grade: C/C++ Gitter


HFSM2

High-Performance Hierarchical Finite State Machine

Header-only heriarchical FSM framework in C++11, with fully statically-defined structure (no dynamic allocations), built with variadic templates.


Compiler Support

  • Visual Studio 14, 15, 16
  • GCC 5, 6, 7, 8, 9
  • Clang 3.7, 3.8, 3.9, 4, 5, 6, 7, 8, 9, 10

Quick Start


See Also

  • FFSM2: High-Performance Flat Finite State Machine

Documentation


Feature Highlights

  • Permissive MIT License
  • Written in widely-supported modern(ish) C++11
  • Header-only
  • Convenient, minimal boilerplate
  • Fully static, no dynamic allocations
  • Uses inline-friendly compile-time pylymorphism, no virtual methods are used
  • Type-safe transitions: FSM.changeTo<TargetState>() with optional payloads
  • Scaleable, supports robust state re-use via state injections
  • Hierarchical, with a selection of composite (sub-machine) and orthogonal regions
  • Gamedev-friendly, supports explicit State::update()
  • Also supports traditional event-based workflow with State::react()
  • Inspect anything: previous and current transitions, state activation status, and more!
  • Game AI-friendly with dynamic planning support
  • Utility theory support (max score and ranked weighted random)
  • Serializable, with activity and transition history support
  • Debug-assisted, includes automatic structure and activity visualization API with #define HFSM_ENABLE_STRUCTURE_REPORT
  • Built-in logging support

3rd Party Libraries

  • doctest unit testing framework
  • XoShiRo pseuto-random number generators

Receive Updates


Get In Touch


Special Thanks

hfsm2's People

Contributors

andrew-gresyk avatar dibsonmuad avatar donmathi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.