Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
amaiorano committed Oct 10, 2017
2 parents e39fa63 + d789904 commit d55d902
Show file tree
Hide file tree
Showing 8 changed files with 165 additions and 591 deletions.
288 changes: 161 additions & 127 deletions include/hsm.h

Large diffs are not rendered by default.

10 changes: 4 additions & 6 deletions samples/hsm_book_samples/source/ch4/state_overrides.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct CharacterStates
if (Owner().mJump)
{
Owner().mJump = false;
return SiblingTransition(GetStateOverride<Jump>(), 20);
return SiblingTransition(GetStateOverride<Jump>());
}

return NoTransition();
Expand All @@ -69,14 +69,13 @@ struct CharacterStates

struct JumpBase
{
virtual void OnEnter(int height) = 0;
virtual void OnEnter() = 0;
};

struct Jump : BaseState, JumpBase
{
void OnEnter(int height) override
void OnEnter() override
{
(void)height;
}

Transition GetTransition() override
Expand Down Expand Up @@ -130,9 +129,8 @@ struct HeroStates

struct Jump : BaseState, CharacterStates::JumpBase
{
void OnEnter(int height) override
void OnEnter() override
{
(void)height;
}

Transition GetTransition() override
Expand Down
276 changes: 0 additions & 276 deletions samples/hsm_sample_1_basic/Player.cpp

This file was deleted.

31 changes: 0 additions & 31 deletions samples/hsm_sample_1_basic/Player.h

This file was deleted.

20 changes: 0 additions & 20 deletions samples/hsm_sample_1_basic/hsm_sample_1_basic.sln

This file was deleted.

Loading

0 comments on commit d55d902

Please sign in to comment.