Basis gelegd voor Events: Feedback en Task, daartoe aantal dingen hernoemd.
This commit is contained in:
27
java/src/pm/event/Task.java
Normal file
27
java/src/pm/event/Task.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package pm.event;
|
||||
|
||||
import pm.Event;
|
||||
import pm.value.Action;
|
||||
import pm.value.Target;
|
||||
|
||||
public class Task implements Event {
|
||||
protected Action action;
|
||||
protected Target target;
|
||||
|
||||
public Task(Action action, Target target) {
|
||||
this.action = action;
|
||||
this.target = target;
|
||||
}
|
||||
|
||||
public Task(Action action) {
|
||||
this(action, Target.SELF);
|
||||
}
|
||||
|
||||
public Action getAction() {
|
||||
return action;
|
||||
}
|
||||
|
||||
public Target getTarget() {
|
||||
return target;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user