Package horizons :: Package util :: Module tile_orientation
[hide private]
[frames] | no frames]

Module tile_orientation

source code

Functions [hide private]
 
get_tile_alignment_action(origin, is_similar_tile)
ROAD/WALL ORIENTATION CHEATSHEET ================================ a b \ e / a,b,c,d are connections to nearby roads \ / \ / e,f,g,h indicate whether this area occupies more space than h X f a single road would (i.e.
source code
Function Details [hide private]

get_tile_alignment_action(origin, is_similar_tile)

source code 

ROAD/WALL ORIENTATION CHEATSHEET
================================
a       b
 \  e  /     a,b,c,d are connections to nearby roads
  \   /
   \ /       e,f,g,h indicate whether this area occupies more space than
 h  X  f     a single road would (i.e. whether we should fill this three-
   / \       cornered space with graphics that will make it look like a
  /   \      coherent square instead of many short-circuit road circles).
 /  g  \     Note that 'e' can only be placed if both 'a' and 'b' exist.
d       c

SAMPLE ROADS
============
\     \     \..../  \    /    \    /
 \    .\     \../    \  /.     \  /.
  \   ..\     \/      \/..      \/..
  /   ../     /         ..      /\..
 /    ./     /           .     /..\.
/     /     /                 /....
ad    adh   abde   abf (im-   abcdfg
                   possible)