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

Coordinate.java

Blame
  • Forked from LABOUREL Arnaud / Game of life Template
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Mountain.java 605 B
    package model;
    
    import util.Position;
    
    public class Mountain extends BoardElement implements Terrain {
    
        public Mountain(Position position) {
            super(position);
        }
    
        @Override
        public String getType() {
            return null;
        }
    
        @Override
        public String toString() {
            return null;
        }
        @Override
        public  boolean isTraversableByFire() {
            return false; // Les montagnes ne sont pas franchissables par le feu
        }
    
        @Override
        public  boolean isTraversableByFirefighter() {
            return false; // Les pompiers ne peuvent pas passer non plus
        }
    }