Deep-Phield-Softworks / XeroSum

Isometric, Squad-Based, Real-Time Strategy RPG
0 stars 0 forks source link

aoe.py needs more work #41

Closed EricFedrowisch closed 9 years ago

EricFedrowisch commented 9 years ago

-make_n_dimensional method is not intuitive and only works up to 3 dimensions -really need a recursive algorithm to make arbitrary number of dimensions for it to work as advertised -comments are jacked up -probably should require it to only take an iterable as input for the size of the dimensions.

CToups commented 9 years ago

While doing general code cleanup, I will pay special attention to aoe.py and see if I can make things simpler. Though I probably won't be adding your recursive algorithm.

EricFedrowisch commented 9 years ago

Link for future Triangle Shape class: http://totologic.blogspot.fr/2014/01/accurate-point-in-triangle-test.html

EricFedrowisch commented 9 years ago

Done with basic rewrite. Only usable shape written atm is Cuboid. I removed Square and will likely only write 3D shapes in the future as I can't think of a use case for a 2D shape. Probably need another layer that checks LOS to exclude points in a shape that are "underground" or "behind a wall" or whatever. Future shapes: -Sphere -Cone

EricFedrowisch commented 9 years ago

Busting the remaining tasks out to separate issues.