Babygogogo/BabyWars — pull request #5 by Babygogogo (2014-11-27 17:13:21+00:00)
Title: Make tiles knowing their neighbors

Actually, the branch name is a bit confusing. Tiles know nothing about their neighbors, while the BWTacticsMap, which is the 2-D container of the Tiles, knows the neighbors of each tile.
No matter what, the goal of the branch is mostly achieved. Once the map is created, all tiles on the map will be notified with its neighbor status (i.e. BWTileNeighborStatus) so that they can update their appearance. All the job are done automatically so that client code don't need to know any details of it. You just need to initialize the BWTacticsMap with its resize and random method, then the view is there for you.
The goal is not completely achieved however. The main reason is that the origin game doesn't have all the textures it should have, so that I just can't get what I need. There's no problem for this code to display some simple maps, but when the map becomes complicated, the appearance will go wrong.