n18tile 0.1.0

Defines 18xx tile elements and track networks.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use cairo::Context;
use n18hex::Hex;

pub trait Draw {
    // NOTE: will be used to determine track / city connectivity using
    // ctx.in_fill(x, y) for (x,y) along track segment
    // --- how will this be handled with translate/rotate stuff?!?
    fn define_boundary(&self, hex: &Hex, ctx: &Context);
    fn draw_bg(&self, hex: &Hex, ctx: &Context);
    fn draw_fg(&self, hex: &Hex, ctx: &Context);
}