Hello, I have android
java game, where I have to deal with many different types of objects and their coordinates (player needs to place object in destination X/Y) But to make it less annoying for player I wanted to let him place object in any possible position (if there is more than one object of same type) I made this logic
test code to sort objects by type, and than "send" all possible coordinates to each object:
My question is, I am not sure if its done right, and maybe there is anything I can do it better? Thank you.