Skip to content
Snippets Groups Projects
Select Git revision
  • 0fa0c6d4a6b3c178146a04cad2ce2bc4e7f43e55
  • main default protected
  • correction_video
  • going_further
  • ImprovedMouseInteraction
  • final2023
  • template
  • ModifGUI
8 results

CellState.java

  • Forked from YAGOUBI Rim / Game of life Template
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    CellState.java 405 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;
        }
    }