        let k = (half) ? 0.5 : 1;
        ctx.drawImage(movementIconImage, x, y,  movementIcon.width * k, movementIcon.height);
    }
}

export const drawFightIcon = (x: number, y: number, unit: Unit, half: boolean = false) => {
    if(unit.isFighting) {
        let k = (half) ? 0.5 : 1;
        ctx.drawImage(fightIconImage, x, y,  fightIcon.width * k, fightIcon.height);
    }
}

export const drawArrowIcon = (x: number, y: number, half: boolean = false) => {