Storing the selected actions and their coordinates, keys, etc. in separate places may lead to synchronization issues later. I suggest creating an Action interface. Then, each action could be its own class and store all of its own data and they could still all be kept in one list.
Storing the selected actions and their coordinates, keys, etc. in separate places may lead to synchronization issues later. I suggest creating an Action interface. Then, each action could be its own class and store all of its own data and they could still all be kept in one list.