package org.academiadecodigo.bootcamp.car;

import org.academiadecodigo.bootcamp.grid.GridColor;

/**
 * Different types of cars
 */
public enum CarType {

    FIAT(GridColor.BLUE),
    MUSTANG(GridColor.GREEN),
    TELEPORTER(GridColor.PINK),
    TANK(GridColor.CYAN),
    HUMAN(GridColor.YELLOW);

    private GridColor color;

    /**
     * Constructor of Car Types
     * @param color The car type color
     */
    CarType(GridColor color) {
        this.color = color;
    }

    /**
     * Obtain the getColor associated with each car type
     *
     * @return the grid getColor
     */
    public GridColor getColor() {

        return this.color;

    }
}
