Add methods to GameObjectMap to find line-of-sight between objects. Specifically: #collisions_with, #each_game_object_between, #game_object_between?, #game_object_at, and #grid_spaces_between.
Also another small change to GameObject#load_game_objects to specify the exception that caused the error. I have a further (commented-out) suggestion to re-raise such errors, but that is outside the scope of this branch.
Hi, back from from skiptrip. Looks good.. but could you rename the object_* methods to gameobject* to be more in line with chingus naming? Also some basic tests would be nice :) ..
Add methods to GameObjectMap to find line-of-sight between objects. Specifically: #collisions_with, #each_game_object_between, #game_object_between?, #game_object_at, and #grid_spaces_between.
Here's an example of its use:
Also another small change to GameObject#load_game_objects to specify the exception that caused the error. I have a further (commented-out) suggestion to re-raise such errors, but that is outside the scope of this branch.