diff --git a/src/tpQU/Event.java b/src/tpQU/Event.java new file mode 100644 index 0000000000000000000000000000000000000000..d6394524cfdfc87526f083489b82d188e42d7520 --- /dev/null +++ b/src/tpQU/Event.java @@ -0,0 +1,45 @@ +package tpQU; + +import java.time.LocalDate; + +import tpOO.tp03.ToDoList; + +/** + * @author Hugo Debuyser + */ + +public class Event { + //Attributes + private String label; + private String place; + private LocalDate start; + private LocalDate end; + private ToDoList tasks; + + //Constructor + Event(String label, String place, LocalDate start, LocalDate end, ToDoList tasks){ + this.label = label; + this.place = place; + this.start = start; + this.end = end; + this.tasks = tasks; + } + + Event(String label, String place, LocalDate start, LocalDate end){ + this.label = label; + this.place = place; + this.start = start; + this.end = end; + } + Event(String label, String place, LocalDate start){ + this.label = label; + this.place = place; + this.start = start; + } + Event(String label, String place){ + this.label = label; + this.place = place; + } + + //methods +} diff --git a/src/tpQU/WarriorCard.java b/src/tpQU/WarriorCard.java index ec96a051ce5e7d1cb32522634186fcaf3fdbaa02..9f5ad8cbb6eba55862a66b8270004e1302ef2288 100644 --- a/src/tpQU/WarriorCard.java +++ b/src/tpQU/WarriorCard.java @@ -1,4 +1,4 @@ -package tp02; +package tpQU; /** *