Parameters in constructors omgedraait.

This commit is contained in:
Bram Veenboer
2011-05-08 16:26:37 +00:00
parent e135ea5a6d
commit 23b54e8403
9 changed files with 42 additions and 40 deletions

View File

@@ -7,13 +7,13 @@ import pm.value.Target;
public class Task extends Event {
protected Action action;
public Task(Action action, Target target) {
public Task(Target target, Action action) {
super(target);
this.action = action;
}
public Task(Action action) {
this(action, Target.SELF);
this(Target.SELF, action);
}
public Action getAction() {