Skip to content
Snippets Groups Projects
Select Git revision
  • 31ed353ae60f1d6a39d531ceb5da7a98a6114730
  • main default protected
  • master
3 results

CellState.java

  • Forked from YAGOUBI Rim / agency Template
    17 commits behind the upstream repository.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    CellState.java 401 B
    package model;
    
    import javafx.scene.paint.Color;
    
    /**
     * {@link CellState} instances represent the possible states of a {@link CellState}.
     */
    public enum CellState {
        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;
        }
    }