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

Simulation.java

Blame
  • Forked from YAGOUBI Rim / Game of life Template
    9 commits behind the upstream repository.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Simulation.java 621 B
    package controller;
    
    import datastruct.Coordinate;
    import javafx.beans.property.ReadOnlyLongProperty;
    import javafx.scene.paint.Color;
    import model.OnChangeListener;
    
    public interface Simulation extends Iterable<Coordinate> {
    
        int numberOfColumns();
        int numberOfRows();
    
        void updateToNextGeneration();
    
        void next(Coordinate coordinate);
    
        void copy(Coordinate source, Coordinate destination);
    
        Color getColor(Coordinate coordinate);
    
        void setChangeListener(Coordinate coordinate, Runnable listener);
    
        ReadOnlyLongProperty generationNumberProperty();
    
        void reset();
    
        void clear();
    }