Split Map Generation and Entities generation - check intial position solution
There's two problem with the current project map generation:
- Map contains a list of entities. It think it should be better if instead there were a function GameState spawnEntities(Map m,ListPlayers) which spawns entities on the map m. Players is the list of all player's character's species (to check the initial position).
- Map doesn't check if an entity can spawn at one place.
To solve the second problem, I made one function (as of now returns always true but should change):
- in SpeciesArray: static boolean canSpawn(Point p,String speciesName);
Please use them to check if you can make an entity appears at one part of the map.