Skip to content
Snippets Groups Projects
Element.java 497 B
Newer Older
  • Learn to ignore specific revisions
  • package model;
    
    import util.Position;
    
    import java.util.ArrayList;
    import java.util.List;
    
    public abstract class  Element {
        ModelElement type;
        Behavior behavior;
        List<ModelElement> obstacles;
        public Element(ModelElement type, Behavior behavior, ArrayList<ModelElement> obstacles) {
            this.type = type;
            this.behavior = behavior;
            this.obstacles = obstacles;
        }
        public abstract List<Position> Update(List<Position>[] board,List<Position> modifiedList);
    }