#textdomain wesnoth

# Convex castle images

#define EVEN
    cut=54,72,126,144
#enddef

#define ODD
    cut=72,108,126,180
#enddef

#define CASTLE_MASKS IMAGESTEM
    [mask]
        name={IMAGESTEM}-ne
        image=mask-castle-ne.png
        shift=18,36
        {EVEN}
    [/mask]

    [mask]
        name={IMAGESTEM}-e
        image=mask-castle-e.png
        shift=36,24
        {ODD}
    [/mask]

    [mask]
        name={IMAGESTEM}-se
        image=mask-castle-se.png
        shift=18,24
        {EVEN}
    [/mask]

    [mask]
        name={IMAGESTEM}-sw
        image=mask-castle-sw.png
        shift=36,24
        {ODD}
    [/mask]

    [mask]
        name={IMAGESTEM}-w
        image=mask-castle-w.png
        shift=18,24
        {EVEN}
    [/mask]

    [mask]
        name={IMAGESTEM}-nw
        image=mask-castle-nw.png
        shift=36,36
        {ODD}
    [/mask]
#enddef

{CASTLE_MASKS castle-convex}
{CASTLE_MASKS castle-concave}
{CASTLE_MASKS wall-convex}
{CASTLE_MASKS wall-concave}

{CASTLE_MASKS castle-wall-convex}
{CASTLE_MASKS castle-wall-concave}
{CASTLE_MASKS castle-wall-cw}
{CASTLE_MASKS castle-wall-ccw}
