Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarPlatformerAStarTypes.cpp
blob: 9c569e0c7a69ed4d71cebf89e94d18d35f9559c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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};
}

}
}