Kantele.MiniMap (ExVenture v0.1.0) View Source

Structures and functions for dealing with minimaps of zones and rooms

A MiniMap in the text stream looks like this:

 [ ]
  |

[ ]-[ ]-[ ]-[ ]

          |
         [ ]-[ ]

Link to this section Summary

Functions

Turns a MiniMap struct into an ASCII map

Expand the min/max x/y/z to a Map that contains coordinates for all possible spaces

Fill in the expanded map with characters representing the real room

Get the min and max x,y,z of a map

Zoom the mini_map to visible rooms at the current location

Link to this section Functions

Turns a MiniMap struct into an ASCII map

Link to this function

expand_character_map(arg)

View Source

Expand the min/max x/y/z to a Map that contains coordinates for all possible spaces

The resulting map is a set of coordinates pointing at empty strings to be filled in.

Link to this function

fill_in(expanded_map, mini_map)

View Source

Fill in the expanded map with characters representing the real room

Link to this function

fill_in_direction(expanded_map, arg2, arg3, arg4)

View Source

Get the min and max x,y,z of a map

Zoom the mini_map to visible rooms at the current location