Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: MovingPlatformComponent and subcomponents #1421

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
throw away the old impl
  • Loading branch information
EmosewaMC committed Jul 31, 2023
commit 3cf460cc5233d6201202a8a9c17d082c103a6b7c
14 changes: 10 additions & 4 deletions dCommon/dEnums/eMovementPlatformState.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@
#include <cstdint>

/**
* The different types of platform movement state, supposedly a bitmap
* The different types of platform movement state
*/
enum class eMovementPlatformState : uint32_t
{
Moving = 0b00010,
Stationary = 0b11001,
Stopped = 0b01100
Waiting = 1 << 0U,
Travelling = 1 << 1U,
Stopped = 1 << 2U,
ReachedDesiredWaypoint = 1 << 3U,
ReachedFinalWaypoint = 1 << 4U,
};

inline constexpr eMovementPlatformState operator|(eMovementPlatformState a, eMovementPlatformState b) {
return static_cast<eMovementPlatformState>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b));
};

#endif //!__EMOVEMENTPLATFORMSTATE__H__
Loading