Skip to content
Snippets Groups Projects
CellState.java 405 B
Newer Older
  • Learn to ignore specific revisions
  • package model;
    
    import javafx.scene.paint.Color;
    
    /**
     * {@link CellState} instances represent the possible states of a {@link CellState}.
     */
    public enum CellState {
    
    LABOUREL Arnaud's avatar
    LABOUREL Arnaud committed
        ALIVE(true, Color.RED),
        DEAD(false, Color.WHITE);
    
    
        public final boolean isAlive;
        public final Color color;
    
        CellState(boolean isAlive, Color color) {
            this.isAlive = isAlive;
            this.color = color;
        }
    }