Commit 081b8d57 authored by Jakob Schöttl's avatar Jakob Schöttl

Refactoring while searching for bug

parent 5c763675
......@@ -22,7 +22,7 @@ import org.vadere.util.geometry.shapes.VShape;
*/
public final class AgentWrapper implements ScenarioElement {
/** we only need the radius from the attributes. */
private AttributesAgent attributes;
private final AttributesAgent attributes;
/** the wrapped store object. */
private Agent store;
......
......@@ -24,7 +24,7 @@ public class Teleporter implements ScenarioElement {
@Override
public Teleporter clone() {
return new Teleporter(this.attributes);
return new Teleporter(attributes);
}
@Override
......@@ -37,8 +37,9 @@ public class Teleporter implements ScenarioElement {
return -1;
}
@Override
public AttributesTeleporter getAttributes() {
return this.attributes;
return attributes;
}
@Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment