Browse Source

include all action with indices

pull/16/head
sp 10 months ago
parent
commit
7d7649bd06
  1. 1
      util/PrismModulesPrinter.h
  2. 4
      util/PrismPrinter.h

1
util/PrismModulesPrinter.h

@ -109,6 +109,7 @@ namespace prism {
std::vector<Configuration> configuration; std::vector<Configuration> configuration;
std::vector<ViewDirection> viewDirections = {0, 1, 2, 3}; std::vector<ViewDirection> viewDirections = {0, 1, 2, 3};
std::map<ViewDirection, std::string> viewDirectionToString = {{0, "East"}, {1, "South"}, {2, "West"}, {3, "North"}}; std::map<ViewDirection, std::string> viewDirectionToString = {{0, "East"}, {1, "South"}, {2, "West"}, {3, "North"}};
std::vector<std::pair<size_t, std::string>> nonMovementActions = { {PICKUP, "pickup"}, {DROP, "drop"}, {TOGGLE, "toggle"}, {DONE, "done"} };
std::map<AgentName, std::set<std::pair<ActionId, std::string>>> agentNameActionMap; std::map<AgentName, std::set<std::pair<ActionId, std::string>>> agentNameActionMap;
}; };

4
util/PrismPrinter.h

@ -9,6 +9,10 @@
#define LEFT 0 #define LEFT 0
#define RIGHT 1 #define RIGHT 1
#define FORWARD 2 #define FORWARD 2
#define PICKUP 3
#define DROP 4
#define TOGGLE 5
#define DONE 6
typedef std::string AgentName; typedef std::string AgentName;

Loading…
Cancel
Save