osb/source/game/StarPlatformerAStarTypes.cpp

22 lines
389 B
C++
Raw Permalink Normal View History

2023-06-20 04:33:09 +00:00
#include "StarPlatformerAStarTypes.hpp"
namespace Star {
namespace PlatformerAStar {
EnumMap<Action> const ActionNames{
{Action::Walk, "Walk"},
{Action::Jump, "Jump"},
{Action::Arc, "Arc"},
{Action::Drop, "Drop"},
{Action::Swim, "Swim"},
{Action::Fly, "Fly"},
{Action::Land, "Land"}
};
Node Node::withVelocity(Vec2F velocity) const {
return {position, velocity};
}
}
}