documents reformatted

This commit is contained in:
cs-powell
2024-11-25 13:49:01 -05:00
parent cc17797319
commit 88967419c6
12 changed files with 490 additions and 542 deletions

View File

@@ -1,41 +1,36 @@
package ModelFiles;
public abstract class Action {
Integer priority; // Priority of the Task
Integer delay; // Potential Delay before starting the task
String targetDREF;
Integer taskTime; // How long should the task take
boolean taskComplete; // Is the task completed?
ActionType actionType;
public Action(ActionType actionType, int delay) {
this.actionType = actionType;
this.delay = delay;
this.targetDREF = null;
}
Integer priority; //Priority of the Task
Integer delay; //Potential Delay before starting the task
String targetDREF;
Integer taskTime; //How long should the task take
boolean taskComplete; //Is the task completed?
ActionType actionType;
public Action(ActionType actionType, int delay, String target) {
this.actionType = actionType;
this.delay = delay;
targetDREF = target;
}
public ActionType getType() {
return actionType;
}
public Integer getDelay() {
return delay;
}
public String getTarget() {
return targetDREF;
}
public Action(ActionType actionType, int delay){
this.actionType = actionType;
this.delay = delay;
this.targetDREF = null;
}
public Action(ActionType actionType, int delay, String target){
this.actionType = actionType;
this.delay = delay;
targetDREF = target;
}
public ActionType getType(){
return actionType;
}
public Integer getDelay(){
return delay;
}
public String getTarget(){
return targetDREF;
}
}