From 32fb859764725cf042c35bac599893bb24e25cfa Mon Sep 17 00:00:00 2001 From: D4rkr34lm Date: Mon, 6 Nov 2023 00:56:02 +0100 Subject: [PATCH] Finished data part of Trace class --- .../steamwar/bausystem/features/tracer2/Trace.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer2/Trace.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer2/Trace.java index fc32864c..aec31127 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer2/Trace.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer2/Trace.java @@ -25,11 +25,25 @@ import java.util.HashSet; import java.util.Set; public class Trace { + /** + * Region this trace has been recorded in + */ private final Region region; + + /** + * Records of TNTs, making up the trace + */ private final Set records = new HashSet<>(); public Trace (Region region){ this.region = region; } + /** Methode to add a record to the trace + * + * @param record record to add + */ + protected void add (TNTRecord record){ + records.add(record); + } }